xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/qca_vendor.h (revision 901120c066e139c7f8a2c8e4820561fdd83c67ef)
1 /*
2  * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: declares vendor commands interfacing with linux kernel
22  */
23 
24 
25 #ifndef _WLAN_QCA_VENDOR_H_
26 #define _WLAN_QCA_VENDOR_H_
27 
28 /* Vendor id to be used in vendor specific command and events
29  * to user space.
30  * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
31  * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
32  * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
33  * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
34  */
35 
36 #define QCA_NL80211_VENDOR_ID           0x001374
37 
38 #ifndef BIT
39 #define BIT(x) (1U << (x))
40 #endif
41 
42 /**
43  * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
44  *
45  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
46  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
47  *	Sub commands 2 to 8 are not used
48  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
49  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
50  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
51  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
52  *	NAN Request/Response and NAN Indication messages. These messages are
53  *	interpreted between the framework and the firmware component. While
54  *	sending the command from userspace to the driver, payload is not
55  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
56  *	is used when receiving vendor events in userspace from the driver.
57  * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
58  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
59  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
60  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
61  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
62  *	results
63  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
64  *	results
65  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
66  *	results
67  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
68  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
69  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
70  *	channels
71  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
72  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
73  *	results
74  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
75  *	available. Used when report_threshold is reached in scan cache.
76  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
77  *	result. Used to report scan results when each probe rsp. is received,
78  *	if report_events enabled in wifi_scan_cmd_params.
79  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
80  *	Indicates progress of scanning state-machine.
81  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
82  *	ap found
83  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
84  *	bssid
85  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
86  *	hotlist bssid
87  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
88  *	change
89  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
90  *	significant change
91  *	ap found
92  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
93  *	significant change
94  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
95  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
96  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
97  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
98  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
99  * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
100  * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
101  * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
102  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
103  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
104  * roaming and auth information.
105  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
106  *
107  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
108  *	invoke the ACS function in device and pass selected channels to
109  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
110  *
111  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
112  * driver.
113  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
114  *	started CAC on DFS channel
115  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
116  * 	completed the CAC check on DFS channel
117  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
118  * 	check was aborted by the driver
119  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
120  * 	driver completed NOP
121  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
122  * 	driver detected radar signal on the current operating channel
123  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
124  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
125  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
126  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
127  * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
128  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
129  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
130  *	extscan reset ssid hotlist
131  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
132  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
133  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
134  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
135  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
136  *	reset passpoint list
137  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
138  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
139  *	passpoint network found
140  * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
141  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
142  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
143  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
144  * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
145  * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
146 	list
147  * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
148  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
149  *	to the host driver. This command sets the band through either
150  *	the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
151  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
152  *	refers enum qca_set_band as unsigned integer values and
153  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
154  *	values. Also, the acceptable values for
155  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
156  *	values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
157  *	attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
158  *	recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
159  *	implementations configure using both the attributes, the configurations
160  *	through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
161  *	precedence.
162  * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
163  * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
164  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
165  * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
166  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
167  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
168  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
169  * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
170  * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
171  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
172  *	start the P2P Listen Offload function in device and pass the listen
173  *	channel, period, interval, count, number of device types, device
174  *	types and vendor information elements to device driver and firmware.
175  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
176  *	indicate stop request/response of the P2P Listen Offload function in
177  *	device. As an event, it indicates either the feature stopped after it
178  *	was already running or feature has actually failed to start.
179  * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
180  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
181  *     beaconing, this sub command provides the driver, the frequencies on the
182  *     5 GHz to check for any radar activity. Driver selects one channel from
183  *     this priority list provided through
184  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
185  *     to check for radar activity on it. If no radar activity is detected
186  *     during the channel availability check period, driver internally switches
187  *     to the selected frequency of operation. If the frequency is zero, driver
188  *     internally selects a channel. The status of this conditional switch is
189  *     indicated through an event using the same sub command through
190  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
191  *     listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
192  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
193  *      indication period and threshold for MAC layer counters.
194  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
195  *	in the host driver. The different TDLS configurations are defined
196  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
197  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
198  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
199  *	(SAR) power limits. A critical regulation for FCC compliance, OEMs
200  *	require methods to set SAR limits on TX power of WLAN/WWAN.
201  *	enum qca_vendor_attr_sar_limits attributes are used with this command.
202  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
203  *      configuration of vendor ACS.
204  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
205  *      requisite information leading to a power save failure. The information
206  *      carried as part of this event is represented by the
207  *      enum qca_attr_chip_power_save_failure attributes.
208  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
209  *      collection. Uses attributes defined in enum qca_attr_nud_stats_set.
210  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
211  *      statistics are represented by the enum qca_attr_nud_stats_get
212  *      attributes.
213  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
214  *      the BSS transition status, whether accept or reject, for a list of
215  *      candidate BSSIDs provided by the userspace. This uses the vendor
216  *      attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
217  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
218  *      the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
219  *      array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
220  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
221  *      the driver shall specify array of
222  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
223  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
224  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
225  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
226  *      specific QCA module. The trace levels are represented by
227  *      enum qca_attr_trace_level attributes.
228  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
229  *      Protocol antenna limit in different modes. See enum
230  *      qca_wlan_vendor_attr_brp_ant_limit_mode.
231  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
232  *      parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
233  *      This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
234  *      identifying the operation in success case. In failure cases an
235  *      error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
236  *      describing the reason for the failure is returned.
237  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
238  *      a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
239  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
240  *      be stopped.
241  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
242  *     specific interface. This can be used to modify some of the low level
243  *     scan parameters (off channel dwell time, home channel time) in the
244  *     driver/firmware. These parameters are maintained within the host
245  *     driver.
246  *     This command is valid only when the interface is in the connected
247  *     state.
248  *     These scan parameters shall be reset by the driver/firmware once
249  *     disconnected. The attributes used with this command are defined in
250  *     enum qca_wlan_vendor_attr_active_tos.
251  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
252  *      driver has detected an internal failure. This event carries the
253  *      information indicating the reason that triggered this detection. The
254  *      attributes for this command are defined in
255  *      enum qca_wlan_vendor_attr_hang.
256  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
257  *     of spectral parameters used. The spectral scan parameters are specified
258  *     by enum qca_wlan_vendor_attr_spectral_scan.
259  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
260  *     for spectral scan functionality. The debug stats are specified by
261  *     enum qca_wlan_vendor_attr_spectral_diag_stats.
262  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
263  *     scan system capabilities. The capabilities are specified
264  *     by enum qca_wlan_vendor_attr_spectral_cap.
265  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
266  *     status of spectral scan. The status values are specified
267  *     by enum qca_wlan_vendor_attr_spectral_scan_status.
268  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
269  *     peer pending packets. Specify the peer MAC address in
270  *     QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
271  *     in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
272  *     in enum qca_wlan_vendor_attr_flush_pending.
273  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
274  *     RF Operating Parameter (RROP) information. The attributes for this
275  *     information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
276  *     intended for use by external Auto Channel Selection applications.
277  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
278  *	(SAR) power limits. This is a companion to the command
279  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
280  *	settings currently in use. The attributes returned by this command are
281  *	defined by enum qca_vendor_attr_sar_limits.
282  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
283  *      the WLAN hardware MAC's associated with each WLAN netdev interface.
284  *      This works both as a query (user space asks the current mode) or event
285  *      interface (driver advertizing the current mode to the user space).
286  *      Driver does not trigger this event for temporary hardware mode changes.
287  *      Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
288  *      channel change etc ) are updated with this event. Attributes for this
289  *      interface are defined in enum qca_wlan_vendor_attr_mac.
290  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
291  *	per peer per TID. Attributes for this command are define in
292  *	enum qca_wlan_set_qdepth_thresh_attr
293  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
294  *	guide for WLAN driver. Request to suspend of driver and FW if the
295  *	temperature is higher than the suspend threshold; resume action is
296  *	requested to driver if the temperature is lower than the resume
297  *	threshold. In user poll mode, request temperature data by user. For test
298  *	purpose, getting thermal shutdown configuration parameters is needed.
299  *	Attributes for this interface are defined in
300  *	enum qca_wlan_vendor_attr_thermal_cmd.
301  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
302  *	driver. Thermal temperature and indication of resume completion are
303  *	reported as thermal events. The attributes for this command are defined
304  *	in enum qca_wlan_vendor_attr_thermal_event.
305  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
306  *	test configuration. Attributes for this command are defined in
307  *	enum qca_wlan_vendor_attr_wifi_test_config.
308  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
309  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
310  *	carried a payload which was a binary blob of data. The command was not
311  *	extendable to send more information. The newer version carries the
312  *	legacy blob encapsulated within an attribute and can be extended with
313  *	additional vendor attributes that can enhance the NAN command
314  *	interface.
315  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
316  *	configure parameters per peer to capture Channel Frequency Response
317  *	(CFR) and enable Periodic CFR capture. The attributes for this command
318  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
319  *	can also be used to send CFR data from the driver to userspace when
320  *	netlink events are used to send CFR data.
321  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
322  *	The returned firmware state is specified in the attribute
323  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
324  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
325  *	is used by host driver to flush per-peer cached statistics to user space
326  *	application. This interface is used as an event from host driver to
327  *	user space application. Attributes for this event are specified in
328  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
329  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
330  *	sent as event from host driver.
331  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
332  *	improve the success rate of Zigbee joining network.
333  *	Due to PTA master limitation, zigbee joining network success rate is
334  *	low while wlan is working. Wlan host driver need to configure some
335  *	parameters including Zigbee state and specific WLAN periods to enhance
336  *	PTA master. All this parameters are delivered by the NetLink attributes
337  *	defined in "enum qca_mpta_helper_vendor_attr".
338  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
339  *	implement Beacon frame reporting feature.
340  *
341  *	Userspace can request the driver/firmware to periodically report
342  *	received Beacon frames whose BSSID is same as the current connected
343  *	BSS's MAC address.
344  *
345  *	In case the STA seamlessly (without sending disconnect indication to
346  *	userspace) roams to a different BSS, Beacon frame reporting will be
347  *	automatically enabled for the Beacon frames whose BSSID is same as the
348  *	MAC address of the new BSS. Beacon reporting will be stopped when the
349  *	STA is disconnected (when the disconnect indication is sent to
350  *	userspace) and need to be explicitly enabled by userspace for next
351  *	connection.
352  *
353  *	When a Beacon frame matching configured conditions is received, and if
354  *	userspace has requested to send asynchronous beacon reports, the
355  *	driver/firmware will encapsulate the details of the Beacon frame in an
356  *	event and send it to userspace along with updating the BSS information
357  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
358  *	scan cache with the information from the received Beacon frame but
359  *	will not send any active report to userspace.
360  *
361  *	The userspace can request the driver/firmware to stop reporting Beacon
362  *	frames. If the driver/firmware is not able to receive Beacon frames
363  *	due to other Wi-Fi operations such as off-channel activities, etc.,
364  *	the driver/firmware will send a pause event to userspace and stop
365  *	reporting Beacon frames. Whether the beacon reporting will be
366  *	automatically resumed or not by the driver/firmware later will be
367  *	reported to userspace using the
368  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
369  *	reporting shall be resumed for all the cases except either when
370  *	userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
371  *	in the command which triggered the current beacon reporting or during
372  *	any disconnection case as indicated by setting
373  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
374  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
375  *	driver.
376  *
377  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
378  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
379  *	flag not set, the next first
380  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
381  *	shall be considered as un-pause event.
382  *
383  *	All the attributes used with this command are defined in
384  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
385  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
386  *	interop issues with the DUT. This sub command is used to transfer the
387  *	ap info between driver and user space. This works both as a command
388  *	or event. As a command, it configs the stored list of aps from user
389  *	space to firmware; as an event, it indicates the ap info detected by
390  *	firmware to user space for persistent storage. The attributes defined
391  *	in enum qca_vendor_attr_interop_issues_ap are used to deliver the
392  *	parameters.
393  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
394  *	binary blobs from application/service to firmware. The attributes
395  *	defined in enum qca_wlan_vendor_attr_oem_data_params are used to
396  *	deliver the parameters.
397  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
398  *	to send/receive avoid frequency data using
399  *	enum qca_wlan_vendor_attr_avoid_frequency_ext.
400  *	This new command is alternative to existing command
401  *	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
402  *	is using stream of bytes instead of structured data using vendor
403  *	attributes. User space sends unsafe frequency ranges to the driver using
404  *	a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
405  *	reception of this command, the driver shall check if an interface is
406  *	operating on an unsafe frequency and the driver shall try to move to a
407  *	safe channel when needed. If the driver is not able to find a safe
408  *	channel the interface can keep operating on an unsafe channel with the
409  *	TX power limit derived based on internal configurations	like
410  *	regulatory/SAR rules.
411  *
412  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
413  *	add the STA node details in driver/firmware. Attributes for this event
414  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
415  * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
416  *	coex chain mode from application/service.
417  *	The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
418  *	to deliver the parameters.
419  * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
420  *	get information of a station from driver to userspace. This command can
421  *	be used in both STA and AP modes. For STA mode, it provides information
422  *	of the current association when in connected state or the last
423  *	association when in disconnected state. For AP mode, only information
424  *	of the currently connected stations is available. This command uses
425  *	attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
426  * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
427  *	Host drivers can request the user space entity to set the SAR power
428  *	limits with this event. Accordingly, the user space entity is expected
429  *	to set the SAR power limits. Host drivers can retry this event to the
430  *	user space for the SAR power limits configuration from user space. If
431  *	the driver does not get the SAR power limits from user space for all
432  *	the retried attempts, it can configure a default SAR power limit.
433  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
434  *	is used to update the information about the station from the driver to
435  *	userspace. Uses attributes from enum
436  *	qca_wlan_vendor_attr_update_sta_info.
437  *
438  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
439  *	The host driver initiates the disconnection for scenarios such as beacon
440  *	miss, NUD failure, peer kick out, etc. The disconnection indication
441  *	through cfg80211_disconnected() expects the reason codes from enum
442  *	ieee80211_reasoncode which does not signify these various reasons why
443  *	the driver has triggered the disconnection. This event will be used to
444  *	send the driver specific reason codes by the host driver to userspace.
445  *	Host drivers should trigger this event and pass the respective reason
446  *	code immediately prior to triggering cfg80211_disconnected(). The
447  *	attributes used with this event are defined in enum
448  *	qca_wlan_vendor_attr_driver_disconnect_reason.
449  *
450  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
451  *	add/delete TSPEC for each AC. One command is for one specific AC only.
452  *	This command can only be used in STA mode and the STA must be
453  *	associated with an AP when the command is issued. Uses attributes
454  *	defined in enum qca_wlan_vendor_attr_config_tspec.
455  *
456  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
457  *	Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
458  *
459  * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
460  *	the host driver. The band configurations obtained are referred through
461  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
462  *
463  * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
464  *	assessment.
465  *	Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
466  *
467  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
468  *	used to update SSID information in hostapd when it is updated in the
469  *	driver. Uses the attribute NL80211_ATTR_SSID.
470  *
471  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
472  *	the driver to send opaque data from the firmware to userspace. The
473  *	driver sends an event to userspace whenever such data is received from
474  *	the firmware.
475  *
476  *	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
477  *	send this opaque data for this event.
478  *
479  *	The format of the opaque data is specific to the particular firmware
480  *	version and there is no guarantee of the format remaining same.
481  *
482  * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
483  *	The host driver selects Tx VDEV, and notifies user. The attributes
484  *	used with this event are defined in enum
485  *	qca_wlan_vendor_attr_mbssid_tx_vdev_status.
486  *	This event contains Tx VDEV group information contains other VDEVs
487  *	interface index and status information.
488  *
489  * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
490  *	configure the concurrent session policies when multiple interfaces
491  *	are (getting) active. The attributes used by this command are defined
492  *	in enum qca_wlan_vendor_attr_concurrent_policy.
493  *
494  * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
495  *	to query usable channels for different interface types such as STA,
496  *	AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
497  *	channels in the response based on country code, different static
498  *	configurations, concurrency combinations, etc. The attributes used
499  *	with this command are defined in
500  *	enum qca_wlan_vendor_attr_usable_channels.
501  *
502  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
503  *	to get DFS radar history from the driver to userspace. The driver
504  *	returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
505  *	array of nested entries.
506  * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
507  *	enable/disable mDNS offload to the firmware. The attributes used with
508  *	this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
509  *
510  * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
511  *	important debug events that are required for various issues. The
512  *	attributes used with this command are defined in
513  *	enum qca_wlan_vendor_attr_diag.
514  *	This command is defined for temporary usage until this interface is
515  *	moved to the existing diag infra with cnss diag events. This command
516  *	will be deprecated soon and it is not recommended to do any further
517  *	enhancements to this command.
518  *
519  * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
520  *     to set packet monitor mode that aims to send the specified set of TX and
521  *     RX frames on the current client interface to an active monitor interface.
522  *     If this Monitor mode is set, the driver will send the configured frames,
523  *     from the interface on which the command is issued, to an active monitor
524  *     interface. The attributes used with this command are defined in
525  *     enum qca_wlan_vendor_attr_set_monitor_mode.
526  *
527  *     Though the monitor mode is configured for the respective data/mgmt/ctrl
528  *     frames, it is up to the respective WLAN driver/firmware/hardware designs
529  *     to consider the possibility of sending these frames over the monitor
530  *     interface. For example, the control frames are handled with in the
531  *     hardware and thus passing such frames over the monitor interface is left
532  *     to the respective designs.
533  *
534  *     Also, this monitor mode is governed to behave accordingly in
535  *     suspend/resume states. If the firmware handles any of such frames
536  *     in suspend state without waking up the host and if the monitor mode
537  *     is configured to notify all such frames, then the firmware is expected
538  *     to resume the host and forward the respective frames to the monitor
539  *     interface. Please note that such a request to get the frames over the
540  *     monitor interface will have a definite power implications.
541  *
542  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
543  *     as a request to set the driver/firmware with the parameters to trigger
544  *     the roaming events, and also used by the driver/firmware to pass on the
545  *     various roam events to userspace.
546  *     Applicable only for the STA mode. The attributes used with this command
547  *     are defined in enum qca_wlan_vendor_attr_roam_events.
548  *
549  * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
550  *     rate mask config for a list of phy types. Userspace shall provide
551  *     an array of the vendor attributes defined in
552  *     enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
553  *
554  * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
555  *	when two interfaces are active on the same band, using two different
556  *	home channels, and only supported by a single radio. In this scenario
557  *	the device must split the use of the radio between the two interfaces.
558  *	The percentage of time allocated to a given interface is the quota.
559  *	Depending on the configuration, the quota can either be fixed or
560  *	dynamic.
561  *
562  *	When used as an event, the device will report the quota type, and for
563  *	all interfaces operating in MCC it will report the current quota.
564  *	When used as a command, the device can be configured for a specific
565  *	quota type, and in the case of a fixed quota, the quota to apply to one
566  *	of the interfaces.
567  *
568  *	Applications can use the event to do TX bitrate control based on the
569  *	information, and can use the command to explicitly set the quota to
570  *	enhance performance in specific scenarios.
571  *
572  *	The attributes used with this command are defined in
573  *	enum qca_wlan_vendor_attr_mcc_quota.
574  *
575  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
576  *	user space that the driver is ready for operations again after
577  *	recovering from internal failures. This occurs following a failure
578  *	that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
579  *
580  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
581  *	get the WLAN radio combinations matrix supported by the device which
582  *	provides the device simultaneous radio configurations such as
583  *	standalone, dual band simultaneous, and single band simultaneous.
584  *
585  *	The attributes used with this command are defined in
586  *	enum qca_wlan_vendor_attr_radio_combination_matrix.
587  *
588  * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
589  *	security negotiation and key generation to user space.
590  *
591  *	When used as an event, the driver requests userspace to trigger the PASN
592  *	authentication or dropping of a PTKSA for the indicated peer devices.
593  *	When used as a command response, userspace indicates a consolidated
594  *	status report for all the peers that were requested for.
595  *
596  *	The attributes used with this command are defined in
597  *	enum qca_wlan_vendor_attr_pasn.
598  *
599  * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
600  *	secure ranging context such as TK and LTF keyseed for each peer
601  *	requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
602  *
603  *	The attributes used with this command are defined in
604  *	enum qca_wlan_vendor_attr_secure_ranging_ctx.
605  *
606  * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
607  *	enable/disable offload processing in firmware during system/runtime
608  *	suspend for CoAP messages (see RFC7252: The Constrained Application
609  *	Protocol) and fetch information of the CoAP messages cached during
610  *	offload processing.
611  *
612  *	The attributes used with this command are defined in
613  *	enum qca_wlan_vendor_attr_coap_offload.
614  *
615  * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
616  *	(add, remove, or change) a Stream Classification Service (SCS) rule.
617  *
618  *	The attributes used with this event are defined in
619  *	enum qca_wlan_vendor_attr_scs_rule_config.
620  *
621  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
622  *	supported by the WLAN firmware.
623  *
624  *	The attributes used with this command are defined in
625  *	enum qca_wlan_vendor_attr_sar_capability.
626  *
627  * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
628  *	(SR) feature. This command is used by userspace to configure SR
629  *	parameters to the driver and to get the SR related parameters and
630  *	statistics with synchronous responses from the driver.
631  *	The driver also uses this command to send asynchronous events to
632  *	userspace to indicate suspend/resume of SR feature and changes
633  *	in SR parameters.
634  *
635  *	The attributes used with this command are defined in
636  *	enum qca_wlan_vendor_attr_sr.
637  */
638 
639 enum qca_nl80211_vendor_subcmds {
640 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
641 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
642 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
643 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
644 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
645 	QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
646 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
647 
648 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
649 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
650 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
651 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
652 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
653 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
654 
655 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
656 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
657 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
658 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
659 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
660 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
661 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
662 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
663 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
664 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
665 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
666 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
667 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
668 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
669 
670 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
671 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
672 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
673 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
674 
675 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
676 
677 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
678 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
679 
680 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
681 
682 	/* Get Concurrency Matrix */
683 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
684 
685 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
686 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
687 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
688 
689 	/* Deprecated */
690 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
691 
692 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
693 
694 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
695 
696 	/* Off loaded DFS events */
697 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
698 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
699 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
700 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
701 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
702 
703 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
704 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
705 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
706 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
707 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
708 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
709 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
710 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
711 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
712 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
713 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
714 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
715 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
716 
717 	/* Wi-Fi Configuration subcommands */
718 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
719 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
720 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
721 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
722 
723 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
724 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
725 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
726 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
727 
728 	/* NS Offload enable/disable cmd */
729 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
730 
731 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
732 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
733 
734 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
735 
736 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
737 	/* OCB commands */
738 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
739 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
740 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
741 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
742 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
743 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
744 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
745 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
746 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
747 
748 	/* subcommand to get link properties */
749 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
750 	/* LFR Subnet Detection */
751 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
752 
753 	/* DBS subcommands */
754 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
755 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
756 
757 	/* Vendor setband command */
758 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
759 
760 	/* Vendor scan commands */
761 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
762 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
763 
764 	/* OTA test subcommand */
765 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
766 	/* Tx power scaling subcommands */
767 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
768 	/* Tx power scaling in db subcommands */
769 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
770 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
771 	QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
772 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG  = 118,
773 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
774 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
775 	QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
776 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
777 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
778 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
779 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
780 
781 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
782 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
783 	/* FTM/indoor location subcommands */
784 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
785 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
786 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
787 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
788 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
789 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
790 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
791 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
792 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
793 
794 	/* Encrypt/Decrypt command */
795 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
796 
797 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
798 	/* DMG low level RF sector operations */
799 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
800 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
801 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
802 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
803 
804 	/* Configure the TDLS mode from user space */
805 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
806 
807 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
808 
809 	/* Vendor abort scan command */
810 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
811 
812 	/* Set Specific Absorption Rate(SAR) Power Limits */
813 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
814 
815 	/* External Auto channel configuration setting */
816 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
817 
818 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
819 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
820 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
821 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
822 
823 	/* Set the trace level for QDF */
824 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
825 
826 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
827 
828 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
829 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
830 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
831 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
832 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
833 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
834 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
835 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
836 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
837 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
838 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
839 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
840 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
841 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
842 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
843 	/* Wi-Fi test configuration subcommand */
844 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
845 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
846 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
847 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
848 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
849 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
850 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
851 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
852 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
853 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
854 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
855 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
856 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
857 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
858 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
859 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
860 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
861 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
862 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
863 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
864 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
865 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
866 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
867 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
868 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
869 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
870 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
871 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
872 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
873 	QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
874 	QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
875 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
876 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
877 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
878 	/* 206..212 - reserved for QCA */
879 	QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
880 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
881 	QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
882 	QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
883 	QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
884 	QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
885 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
886 	QCA_NL80211_VENDOR_SUBCMD_SR = 220,
887 };
888 
889 enum qca_wlan_vendor_tos {
890 	QCA_WLAN_VENDOR_TOS_BK = 0,
891 	QCA_WLAN_VENDOR_TOS_BE = 1,
892 	QCA_WLAN_VENDOR_TOS_VI = 2,
893 	QCA_WLAN_VENDOR_TOS_VO = 3,
894 };
895 
896 /**
897  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
898  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
899  */
900 enum qca_wlan_vendor_attr_active_tos {
901 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
902 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
903 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
904 	/* Flag attribute representing the start (attribute included) or stop
905 	 * (attribute not included) of the respective TOS.
906 	 */
907 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
908 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
909 };
910 
911 enum qca_wlan_vendor_hang_reason {
912 	/* Unspecified reason */
913 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
914 	/* No Map for the MAC entry for the received frame */
915 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
916 	/* peer deletion timeout happened */
917 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
918 	/* peer unmap timeout */
919 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
920 	/* Scan request timed out */
921 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
922 	/* Consecutive Scan attempt failures */
923 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
924 	/* Unable to get the message buffer */
925 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
926 	/* Current command processing is timedout */
927 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
928 	/* Timeout for an ACK from FW for suspend request */
929 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
930 	/* Timeout for an ACK from FW for resume request */
931 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
932 	/* Transmission timeout for consecutive data frames */
933 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
934 	/* Timeout for the TX completion status of data frame */
935 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
936 	/* DXE failure for tx/Rx, DXE resource unavailability */
937 	QCA_WLAN_HANG_DXE_FAILURE = 12,
938 	/* WMI pending commands exceed the maximum count */
939 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
940 	/* Timeout for peer STA connection accept command's response from the
941 	 * FW in AP mode. This command is triggered when a STA (peer) connects
942 	 * to AP (DUT).
943 	 */
944 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
945 	/* Timeout for the AP connection accept command's response from the FW
946 	 * in STA mode. This command is triggered when the STA (DUT) connects
947 	 * to an AP (peer).
948 	 */
949 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
950 	/* Timeout waiting for the response to the MAC HW mode change command
951 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
952 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
953 	 * Channel Concurrency) mode.
954 	 */
955 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
956 	/* Timeout waiting for the response from FW to configure the MAC HW's
957 	 * mode. This operation is to configure the single/two MACs in either
958 	 * SCC/MCC/DBS mode.
959 	 */
960 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
961 	/* Timeout waiting for response of VDEV start command from the FW */
962 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
963 	/* Timeout waiting for response of VDEV restart command from the FW */
964 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
965 	/* Timeout waiting for response of VDEV stop command from the FW */
966 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
967 	/* Timeout waiting for response of VDEV delete command from the FW */
968 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
969 	/* Timeout waiting for response of peer all delete request command to
970 	 * the FW on a specific VDEV.
971 	 */
972 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
973 	/* WMI sequence mismatch between WMI command and Tx completion */
974 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
975 	/* Write to Device HAL register failed */
976 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
977 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
978 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
979 	/* Bus failure */
980 	QCA_WLAN_HANG_BUS_FAILURE = 26,
981 	/* tasklet/credit latency found */
982 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
983 };
984 
985 /**
986  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
987  * QCA_NL80211_VENDOR_SUBCMD_HANG.
988  */
989 enum qca_wlan_vendor_attr_hang {
990 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
991 	/*
992 	 * Reason for the Hang - Represented by enum
993 	 * qca_wlan_vendor_hang_reason.
994 	 */
995 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
996 	/* The binary blob data associated with the hang reason specified by
997 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
998 	 * contain the required dump to analyze the reason for the hang.
999 	 * NLA_BINARY attribute, the max size is 1024 bytes.
1000 	 */
1001 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
1002 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
1003 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
1004 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
1005 };
1006 
1007 /**
1008  * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
1009  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
1010  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
1011  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
1012     level needs to be updated.
1013  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
1014  * to be set.
1015  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
1016  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
1017  */
1018 enum qca_vendor_attr_set_trace_level {
1019 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
1020 	/*
1021 	* Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
1022 	* attributes.
1023 	*/
1024 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
1025 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
1026 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
1027 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
1028 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
1029 		QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
1030 };
1031 
1032 /**
1033  * enum qca_wlan_vendor_attr_get_station - Sub commands used by
1034  * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
1035  * station information. The information obtained through these
1036  * commands signify the current info in connected state and
1037  * latest cached information during the connected state , if queried
1038  * when in disconnected state.
1039  *
1040  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
1041  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
1042  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
1043  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
1044  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
1045  */
1046 enum qca_wlan_vendor_attr_get_station {
1047 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
1048 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
1049 	QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
1050 	QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
1051 
1052 	/* keep last */
1053 	QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
1054 	QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
1055 		QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
1056 };
1057 
1058 /**
1059  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
1060  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
1061  *
1062  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
1063  * Used in STA mode. This attribute represents the list of channel center
1064  * frequencies in MHz (u32) the station has learnt during the last connection
1065  * or roaming attempt. This information shall not signify the channels for
1066  * an explicit scan request from the user space. Host drivers can update this
1067  * information to the user space in both connected and disconnected state.
1068  * In the disconnected state this information shall signify the channels
1069  * scanned in the last connection/roam attempt that lead to the disconnection.
1070  */
1071 enum qca_wlan_vendor_attr_update_sta_info {
1072 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
1073 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
1074 
1075 	/* keep last */
1076 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
1077 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
1078 		QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
1079 };
1080 
1081 /**
1082  * enum qca_wlan_802_11_mode - dot11 mode
1083  * @QCA_WLAN_802_11_MODE_11B: mode B
1084  * @QCA_WLAN_802_11_MODE_11G: mode G
1085  * @QCA_WLAN_802_11_MODE_11N: mode N
1086  * @QCA_WLAN_802_11_MODE_11A: mode A
1087  * @QCA_WLAN_802_11_MODE_11AC: mode AC
1088  * @QCA_WLAN_802_11_MODE_11AX: mode AX
1089  * @QCA_WLAN_802_11_MODE_11BE: mode BE
1090  * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
1091  */
1092 enum qca_wlan_802_11_mode {
1093 	QCA_WLAN_802_11_MODE_11B,
1094 	QCA_WLAN_802_11_MODE_11G,
1095 	QCA_WLAN_802_11_MODE_11N,
1096 	QCA_WLAN_802_11_MODE_11A,
1097 	QCA_WLAN_802_11_MODE_11AC,
1098 	QCA_WLAN_802_11_MODE_11AX,
1099 	QCA_WLAN_802_11_MODE_11BE,
1100 	QCA_WLAN_802_11_MODE_INVALID,
1101 };
1102 
1103 /**
1104  * enum qca_wlan_auth_type - Authentication key management type
1105  * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
1106  * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
1107  * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
1108  * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
1109  * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
1110  * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
1111  * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
1112  * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
1113  * @QCA_WLAN_AUTH_TYPE_FT: ft key
1114  * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
1115  * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
1116  * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
1117  * @QCA_WLAN_AUTH_TYPE_WAI: wai key
1118  * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
1119  * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
1120  * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
1121  * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
1122  * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
1123  * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
1124  * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
1125  * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
1126  * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
1127  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
1128  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
1129  * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
1130  * @QCA_WLAN_AUTH_TYPE_OWE: owe key
1131  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
1132  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
1133  */
1134 enum qca_wlan_auth_type {
1135 	QCA_WLAN_AUTH_TYPE_INVALID,
1136 	QCA_WLAN_AUTH_TYPE_OPEN,
1137 	QCA_WLAN_AUTH_TYPE_SHARED,
1138 	QCA_WLAN_AUTH_TYPE_WPA,
1139 	QCA_WLAN_AUTH_TYPE_WPA_PSK,
1140 	QCA_WLAN_AUTH_TYPE_WPA_NONE,
1141 	QCA_WLAN_AUTH_TYPE_RSN,
1142 	QCA_WLAN_AUTH_TYPE_RSN_PSK,
1143 	QCA_WLAN_AUTH_TYPE_FT,
1144 	QCA_WLAN_AUTH_TYPE_FT_PSK,
1145 	QCA_WLAN_AUTH_TYPE_SHA256,
1146 	QCA_WLAN_AUTH_TYPE_SHA256_PSK,
1147 	QCA_WLAN_AUTH_TYPE_WAI,
1148 	QCA_WLAN_AUTH_TYPE_WAI_PSK,
1149 	QCA_WLAN_AUTH_TYPE_CCKM_WPA,
1150 	QCA_WLAN_AUTH_TYPE_CCKM_RSN,
1151 	QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
1152 	QCA_WLAN_AUTH_TYPE_FT_SAE,
1153 	QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
1154 	QCA_WLAN_AUTH_TYPE_SAE,
1155 	QCA_WLAN_AUTH_TYPE_FILS_SHA256,
1156 	QCA_WLAN_AUTH_TYPE_FILS_SHA384,
1157 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
1158 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
1159 	QCA_WLAN_AUTH_TYPE_DPP_RSN,
1160 	QCA_WLAN_AUTH_TYPE_OWE,
1161 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
1162 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
1163 };
1164 
1165 /**
1166  * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
1167  * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
1168  *
1169  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
1170  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
1171  *  Get the standard NL attributes Nested with this attribute.
1172  *  Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
1173  *  NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
1174  *  NL80211_ATTR_STA_INFO
1175  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
1176  *  Get the standard NL attributes Nested with this attribute.
1177  *  Ex : Query HT/VHT Capability advertized by the AP.
1178  *  NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
1179  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
1180  *  Number of successful Roam attempts before a
1181  *  disconnect, Unsigned 32 bit value
1182  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
1183  *  Authentication Key Management Type used for the connected session.
1184  *  Signified by enum qca_wlan_auth_type
1185  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
1186  *  connected Session, signified by enum qca_wlan_802_11_mode
1187  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
1188  *  HS20 Indication Element
1189  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
1190  *  Status Code Corresponding to the Association Failure.
1191  *  Unsigned 32 bit value.
1192  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
1193  *  Max phy rate of remote station
1194  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
1195  *  TX packets to remote station
1196  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
1197  *  TX bytes to remote station
1198  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
1199  *  RX packets from remote station
1200  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
1201  *  RX bytes from remote station
1202  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
1203  *  Last TX rate with remote station
1204  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
1205  *  Last RX rate with remote station
1206  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
1207  *  Remote station enable/disable WMM
1208  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
1209  *  Remote station connection mode
1210  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
1211  *  Remote station AMPDU enable/disable
1212  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
1213  *  Remote station TX Space-time block coding enable/disable
1214  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
1215  *  Remote station RX Space-time block coding enable/disable
1216  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
1217  *  Remote station channel width
1218  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
1219  *  Remote station short GI enable/disable
1220  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
1221  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
1222  *  containing the raw information elements from Beacon frames. Represents
1223  *  the Beacon frames of the current BSS in the connected state. When queried
1224  *  in the disconnected state, these IEs correspond to the last connected BSSID.
1225  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
1226  *  disconnect reason for the last disconnection if the disconnection is
1227  *  triggered from the host driver. The values are referred from
1228  *  enum qca_disconnect_reason_codes. If the disconnect is from
1229  *  peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
1230  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
1231  *  Applicable in AP mode only. It contains the raw information elements
1232  *  from assoc request frame of the given peer station. User queries with the
1233  *  mac address of peer station when it disconnects. Host driver sends
1234  *  assoc request frame of the given station. Host driver doesn't provide
1235  *  the IEs when the peer station is still in connected state.
1236  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
1237  * sending HE operation info.
1238  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
1239  *
1240  */
1241 enum qca_wlan_vendor_attr_get_station_info {
1242 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
1243 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
1244 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
1245 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
1246 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
1247 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
1248 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
1249 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
1250 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
1251 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
1252 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
1253 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
1254 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
1255 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
1256 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
1257 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
1258 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
1259 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
1260 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
1261 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
1262 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
1263 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
1264 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
1265 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
1266 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
1267 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
1268 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
1269 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
1270 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
1271 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
1272 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
1273 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
1274 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
1275 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
1276 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
1277 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
1278 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
1279 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
1280 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
1281 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
1282 
1283 	/* keep last */
1284 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
1285 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
1286 		QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
1287 };
1288 
1289 /**
1290  * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
1291  *
1292  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
1293  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
1294  *	value
1295  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
1296  *	keep as unsigned for now
1297  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
1298  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
1299  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
1300  *	in KBPS
1301  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
1302  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
1303  */
1304 enum qca_wlan_vendor_attr_tdls_enable {
1305 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
1306 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
1307 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
1308 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
1309 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
1310 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
1311 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
1312 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
1313 		QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
1314 };
1315 
1316 /**
1317  * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
1318  *
1319  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
1320  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
1321  *	8-bit value
1322  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
1323  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
1324  */
1325 enum qca_wlan_vendor_attr_tdls_disable {
1326 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
1327 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
1328 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
1329 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
1330 		QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
1331 };
1332 
1333 /**
1334  * qca_chip_power_save_failure_reason: Power save failure reason
1335  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1336  * due to protocol/module.
1337  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1338  * due to hardware
1339  */
1340 enum qca_chip_power_save_failure_reason {
1341 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1342 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1343 };
1344 
1345 /**
1346  * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1347  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1348  * information leading to the power save failure.
1349  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1350  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1351  * represented by enum qca_chip_power_save_failure_reason
1352  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1353  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1354  */
1355 enum qca_attr_chip_power_save_failure {
1356 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1357 
1358 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1359 
1360 	/* keep last */
1361 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1362 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1363 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1364 };
1365 
1366 
1367 /**
1368  * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
1369  *
1370  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
1371  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
1372  *	8-bit value
1373  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
1374  *	unsigned 32-bit value
1375  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
1376  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
1377  *	unsigned 32-bit value
1378  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
1379  *	class, unsigned 32-bit value
1380  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
1381  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
1382  */
1383 enum qca_wlan_vendor_attr_tdls_get_status {
1384 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
1385 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
1386 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
1387 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
1388 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
1389 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
1390 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
1391 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
1392 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
1393 };
1394 
1395 /**
1396  * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
1397  *
1398  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
1399  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
1400  *	8-bit value
1401  * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
1402  *	unsigned 32-bit value
1403  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
1404  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
1405  *	unsigned 32-bit value
1406  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
1407  *	operating class, unsigned 32-bit value
1408  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
1409  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
1410  */
1411 enum qca_wlan_vendor_attr_tdls_state {
1412 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
1413 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
1414 	QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
1415 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
1416 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
1417 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
1418 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
1419 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
1420 		QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
1421 };
1422 
1423 /* enum's to provide TDLS capabilities */
1424 enum qca_wlan_vendor_attr_get_tdls_capabilities {
1425 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1426 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1427 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1428 
1429 	/* keep last */
1430 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1431 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1432 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1433 };
1434 
1435 /* Compatibility defines for previously used subcmd names.
1436  * These values should not be used in any new implementation.
1437  */
1438 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1439 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1440 
1441 enum qca_wlan_vendor_attr {
1442 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1443 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1444 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1445 	/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1446 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1447 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1448 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1449 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1450 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1451 	/*
1452 	 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1453 	 * by enum qca_roaming_policy.
1454 	 */
1455 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1456 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1457 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1458 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1459 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1460 	/*
1461 	 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1462 	 * Unsigned 32-bit value.
1463 	 */
1464 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1465 	/* Unsigned 32-bit value */
1466 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1467 	/* Unsigned 32-bit value */
1468 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1469 	/* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
1470 	 * value for this attribute are only till QCA_SETBAND_2G. This attribute
1471 	 * is deprecated. Recommendation is to use
1472 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
1473 	 * using both the attributes, the ones configured through
1474 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
1475 	 */
1476 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1477 	/* Dummy (NOP) attribute for 64 bit padding */
1478 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1479 	/*
1480 	 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1481 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1482 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1483 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1484 	 */
1485 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1486 	/*
1487 	 * Indoor location capabilities, returned by
1488 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1489 	 * see enum qca_wlan_vendor_attr_loc_capa.
1490 	 */
1491 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1492 	/*
1493 	 * Array of nested attributes containing information about each peer
1494 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1495 	 * for supported attributes for each peer.
1496 	 */
1497 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1498 	/*
1499 	 * Array of nested attributes containing measurement results for
1500 	 * one or more peers, reported by the
1501 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1502 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1503 	 * attributes.
1504 	 */
1505 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1506 	/* Flag attribute for enabling or disabling responder functionality. */
1507 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1508 	/*
1509 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1510 	 * command to specify the LCI report that will be sent by
1511 	 * the responder during a measurement exchange. The format is
1512 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1513 	 */
1514 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1515 	/*
1516 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1517 	 * command to specify the location civic report that will
1518 	 * be sent by the responder during a measurement exchange.
1519 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1520 	 */
1521 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1522 	/*
1523 	 * Session/measurement completion status code,
1524 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1525 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1526 	 * see enum qca_vendor_attr_loc_session_status.
1527 	 */
1528 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1529 	/*
1530 	 * Initial dialog token used by responder (0 if not specified),
1531 	 * unsigned 8 bit value.
1532 	 */
1533 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1534 	/*
1535 	 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1536 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1537 	 * AOA measurements are needed as part of an FTM session.
1538 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1539 	 * enum qca_wlan_vendor_attr_aoa_type.
1540 	 */
1541 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1542 	/*
1543 	 * A bit mask (unsigned 32 bit value) of antenna arrays used
1544 	 * by indoor location measurements. Refers to the antenna
1545 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1546 	 */
1547 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1548 	/*
1549 	 * AOA measurement data. Its contents depends on the AOA measurement
1550 	 * type and antenna array mask:
1551 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1552 	 * phase of the strongest CIR path for each antenna in the measured
1553 	 * array(s).
1554 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1555 	 * values, phase and amplitude of the strongest CIR path for each
1556 	 * antenna in the measured array(s).
1557 	 */
1558 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1559 	/*
1560 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1561 	 * to specify the chain number (unsigned 32 bit value) to inquire
1562 	 * the corresponding antenna RSSI value */
1563 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1564 	/*
1565 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1566 	 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1567 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1568 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1569 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1570 	/*
1571 	 *  TSF timer value, unsigned 64 bit value.
1572 	 * May be returned by various commands.
1573 	 */
1574 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1575 	/*
1576 	 * DMG RF sector index, unsigned 16 bit number. Valid values are
1577 	 * 0..127 for sector indices or 65535 as special value used to
1578 	 * unlock sector selection in
1579 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1580 	 */
1581 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1582 	/*
1583 	 * DMG RF sector type, unsigned 8 bit value. One of the values
1584 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1585 	 */
1586 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1587 	/*
1588 	 * Bitmask of DMG RF modules for which information is requested. Each
1589 	 * bit corresponds to an RF module with the same index as the bit
1590 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1591 	 * all DMG chips currently have up to 8 RF modules.
1592 	 */
1593 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1594 	/*
1595 	 * Array of nested attributes where each entry is DMG RF sector
1596 	 * configuration for a single RF module.
1597 	 * Attributes for each entry are taken from enum
1598 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1599 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1600 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1601 	 */
1602 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1603 	/*
1604 	 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1605 	 * to report frame aggregation statistics to userspace.
1606 	 */
1607 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1608 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1609 	/*
1610 	 * Unsigned 8-bit value representing MBO transition reason code as
1611 	 * provided by the AP used by subcommand
1612 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1613 	 * specified by the userspace in the request to the driver.
1614 	 */
1615 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1616 	/*
1617 	 * Array of nested attributes, BSSID and status code, used by subcommand
1618 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1619 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1620 	 * The userspace space specifies the list/array of candidate BSSIDs in
1621 	 * the order of preference in the request. The driver specifies the
1622 	 * status code, for each BSSID in the list, in the response. The
1623 	 * acceptable candidates are listed in the order preferred by the
1624 	 * driver.
1625 	 */
1626 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1627 	/*
1628 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1629 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1630 	 */
1631 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1632 	/*
1633 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1634 	 * to define the number of antennas to use for BRP.
1635 	 * different purpose in each ANT_LIMIT_MODE:
1636 	 * DISABLE - ignored
1637 	 * EFFECTIVE - upper limit to number of antennas to be used
1638 	 * FORCE - exact number of antennas to be used
1639 	 * unsigned 8 bit value
1640 	 */
1641 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1642 	/*
1643 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1644 	 * to report the corresponding antenna index to the chain RSSI value
1645 	 */
1646 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1647 	/*
1648 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1649 	 * to report the specific antenna EVM value (unsigned 32 bit value).
1650 	 * With a determinate group of antennas, the driver specifies the
1651 	 * EVM value for each antenna ID, and application extract them
1652 	 * in user space.
1653 	 */
1654 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1655 	/*
1656 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1657 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1658 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1659 	 */
1660 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1661 
1662 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1663 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
1664 	 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
1665 	 * This attribute shall consider the bitmask combinations to define
1666 	 * the respective Band combinations and always takes precedence over
1667 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
1668 	 */
1669 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1670 
1671 	/* keep last */
1672 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1673 	QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1674 };
1675 
1676 enum qca_wlan_vendor_attr_extscan_config_params {
1677 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1678 
1679 	/* Unsigned 32-bit value */
1680 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
1681 
1682 	/*
1683 	 * Attributes for data used by
1684 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1685 	 */
1686 
1687 	/* Unsigned 32-bit value */
1688 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1689 	= 2,
1690 	/* Unsigned 32-bit value */
1691 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1692 	= 3,
1693 
1694 	/*
1695 	 * Attributes for input params used by
1696 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1697 	 */
1698 
1699 	/* Unsigned 32-bit value; channel frequency */
1700 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1701 	/* Unsigned 32-bit value; dwell time in ms. */
1702 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1703 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1704 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1705 	/* Unsigned 8-bit value; channel class */
1706 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
1707 
1708 	/* Unsigned 8-bit value; bucket index, 0 based */
1709 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1710 	/* Unsigned 8-bit value; band. */
1711 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1712 	/* Unsigned 32-bit value; desired period, in ms. */
1713 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1714 	/* Unsigned 8-bit value; report events semantics. */
1715 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1716 	/*
1717 	 * Unsigned 32-bit value. Followed by a nested array of
1718 	 * EXTSCAN_CHANNEL_SPEC_* attributes.
1719 	 */
1720 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
1721 
1722 	/*
1723 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1724 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1725 	 */
1726 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
1727 
1728 	/* Unsigned 32-bit value; base timer period in ms. */
1729 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1730 	/*
1731 	 * Unsigned 32-bit value; number of APs to store in each scan in the
1732 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1733 	 */
1734 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1735 	/*
1736 	 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1737 	 * up AP.
1738 	 */
1739 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1740 	= 16,
1741 
1742 	/*
1743 	 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1744 	 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1745 	 * of the array is determined by NUM_BUCKETS.
1746 	 */
1747 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
1748 
1749 	/*
1750 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1751 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1752 	 */
1753 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
1754 
1755 	/* Unsigned 8-bit value */
1756 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1757 	= 19,
1758 	/* Unsigned 32-bit value; maximum number of results to be returned. */
1759 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1760 	= 20,
1761 
1762 	/* An array of 6 x unsigned 8-bit value */
1763 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1764 	/* Signed 32-bit value */
1765 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1766 	/* Signed 32-bit value */
1767 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1768 	/* Unsigned 32-bit value */
1769 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
1770 
1771 	/*
1772 	 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1773 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1774 	 * array is determined by NUM_AP.
1775 	 */
1776 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
1777 
1778 	/*
1779 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1780 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1781 	 */
1782 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
1783 
1784 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
1785 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1786 	= 27,
1787 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1788 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1789 	= 28,
1790 	/* Unsigned 32-bit value; number of APs breaching threshold. */
1791 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1792 	/*
1793 	 * Unsigned 32-bit value; number of APs. Followed by an array of
1794 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1795 	 */
1796 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1797 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1798 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1799 	= 31,
1800 	/*
1801 	 * Unsigned 32-bit value. If max_period is non zero or different than
1802 	 * period, then this bucket is an exponential backoff bucket.
1803 	 */
1804 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1805 	/* Unsigned 32-bit value. */
1806 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1807 	/*
1808 	 * Unsigned 32-bit value. For exponential back off bucket, number of
1809 	 * scans to perform for a given period.
1810 	 */
1811 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1812 	/*
1813 	 * Unsigned 8-bit value; in number of scans, wake up AP after these
1814 	 * many scans.
1815 	 */
1816 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1817 	= 35,
1818 
1819 	/*
1820 	 * Attributes for data used by
1821 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1822 	 */
1823 
1824 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1825 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1826 	= 36,
1827 	/*
1828 	 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1829 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1830 	 * size of the array is determined by NUM_SSID.
1831 	 */
1832 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1833 	/*
1834 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1835 	 * attributes.
1836 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1837 	 */
1838 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1839 
1840 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1841 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1842 	/* Unsigned 8-bit value */
1843 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1844 	/* Signed 32-bit value */
1845 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1846 	/* Signed 32-bit value */
1847 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1848 	/* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1849 	 */
1850 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1851 
1852 	/* keep last */
1853 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1854 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
1855 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
1856 };
1857 
1858 enum qca_wlan_vendor_attr_extscan_results {
1859 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1860 
1861 	/*
1862 	 * Unsigned 32-bit value; must match the request Id supplied by
1863 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
1864 	 */
1865 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
1866 
1867 	/*
1868 	 * Unsigned 32-bit value; used to indicate the status response from
1869 	 * firmware/driver for the vendor sub-command.
1870 	 */
1871 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
1872 
1873 	/*
1874 	 * EXTSCAN Valid Channels attributes */
1875 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
1876 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
1877 	/*
1878 	 * An array of NUM_CHANNELS x unsigned 32-bit value integers
1879 	 * representing channel numbers.
1880 	 */
1881 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
1882 
1883 	/* EXTSCAN Capabilities attributes */
1884 
1885 	/* Unsigned 32-bit value */
1886 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
1887 	/* Unsigned 32-bit value */
1888 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
1889 	/* Unsigned 32-bit value */
1890 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
1891 	= 7,
1892 	/* Unsigned 32-bit value */
1893 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
1894 	= 8,
1895 	/* Signed 32-bit value */
1896 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
1897 	= 9,
1898 	/* Unsigned 32-bit value */
1899 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
1900 	/* Unsigned 32-bit value */
1901 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
1902 	= 11,
1903 	/* Unsigned 32-bit value */
1904 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
1905 	= 12,
1906 
1907 	/*
1908 	 * EXTSCAN Attributes used with
1909 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
1910 	 */
1911 
1912 	/* Unsigned 32-bit value */
1913 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
1914 
1915 	/*
1916 	 * EXTSCAN attributes used with
1917 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
1918 	 */
1919 
1920 	/*
1921 	 * An array of NUM_RESULTS_AVAILABLE x
1922 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
1923 	 */
1924 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
1925 
1926 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
1927 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
1928 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
1929 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
1930 	/* An array of 6 x unsigned 8-bit value */
1931 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
1932 	/* Unsigned 32-bit value; channel frequency in MHz */
1933 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
1934 	/* Signed 32-bit value */
1935 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
1936 	/* Unsigned 32-bit value */
1937 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
1938 	/* Unsigned 32-bit value */
1939 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
1940 	/* Unsigned 16-bit value */
1941 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
1942 	/* Unsigned 16-bit value */
1943 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
1944 	/* Unsigned 32-bit value; size of the IE DATA blob */
1945 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
1946 	/*
1947 	 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
1948 	 * information elements found in the beacon; this data should be a
1949 	 * packed list of wifi_information_element objects, one after the
1950 	 * other.
1951 	 */
1952 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
1953 
1954 	/*
1955 	 * Unsigned 8-bit value; set by driver to indicate more scan results are
1956 	 * available.
1957 	 */
1958 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
1959 
1960 	/*
1961 	 * EXTSCAN attributes for
1962 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
1963 	 */
1964 	/* Unsigned 8-bit value */
1965 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
1966 	/* Unsigned 32-bit value */
1967 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
1968 
1969 	/*
1970 	 * EXTSCAN attributes for
1971 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
1972 	 */
1973 	/*
1974 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1975 	 * to indicate number of results.
1976 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
1977 	 * list of results.
1978 	 */
1979 
1980 	/*
1981 	 * EXTSCAN attributes for
1982 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
1983 	 */
1984 	/* An array of 6 x unsigned 8-bit value */
1985 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
1986 	/* Unsigned 32-bit value */
1987 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
1988 	= 30,
1989 	/* Unsigned 32-bit value. */
1990 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
1991 	= 31,
1992 	/*
1993 	 * A nested array of signed 32-bit RSSI values. Size of the array is
1994 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
1995 	 */
1996 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
1997 	= 32,
1998 
1999 	/*
2000 	 * EXTSCAN attributes used with
2001 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
2002 	 */
2003 	/*
2004 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2005 	 * to indicate number of extscan cached results returned.
2006 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
2007 	 *  the list of extscan cached results.
2008 	 */
2009 
2010 	/*
2011 	 * An array of NUM_RESULTS_AVAILABLE x
2012 	 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
2013 	 */
2014 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
2015 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
2016 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
2017 	/*
2018 	 * Unsigned 32-bit value; a bitmask w/additional information about scan.
2019 	 */
2020 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
2021 	/*
2022 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2023 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
2024 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2025 	 * list of wifi scan results returned for each cached result block.
2026 	 */
2027 
2028 	/*
2029 	 * EXTSCAN attributes for
2030 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
2031 	 */
2032 	/*
2033 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
2034 	 * number of results.
2035 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2036 	 * list of wifi scan results returned for each
2037 	 * wifi_passpoint_match_result block.
2038 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
2039 	 */
2040 
2041 	/*
2042 	 * EXTSCAN attributes for
2043 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
2044 	 */
2045 	/* Unsigned 32-bit value */
2046 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
2047 	= 36,
2048 	/*
2049 	 * A nested array of
2050 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
2051 	 * attributes. Array size =
2052 	 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
2053 	 */
2054 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
2055 
2056 	/* Unsigned 32-bit value; network block id for the matched network */
2057 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
2058 	/*
2059 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2060 	 * list of wifi scan results returned for each
2061 	 * wifi_passpoint_match_result block.
2062 	 */
2063 	/* Unsigned 32-bit value */
2064 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
2065 	/*
2066 	 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
2067 	 * ANQP data in the information_element format.
2068 	 */
2069 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
2070 
2071 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2072 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
2073 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2074 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
2075 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2076 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
2077 	= 43,
2078 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2079 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
2080 	= 44,
2081 
2082 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
2083 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
2084 
2085 	/* keep last */
2086 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
2087 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
2088 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
2089 };
2090 
2091 /**
2092  * enum qca_vendor_interop_issues_ap_type - interop issues type
2093  * This enum defines the valid set of values of interop issues type. These
2094  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
2095  *
2096  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
2097  * when the STA's Qpower feature is enabled.
2098  */
2099 enum qca_vendor_interop_issues_ap_type {
2100 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
2101 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
2102 };
2103 
2104 /**
2105  * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
2106  * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
2107  *
2108  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
2109  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
2110  * 32-bit unsigned value, The type defined in enum
2111  * qca_vendor_interop_issues_ap_type are used.
2112  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
2113  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
2114  * it is present and mandatory for the command but is not used for
2115  * the event since only a single BSSID is reported in an event.
2116  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
2117  * 6-byte MAC address. It is used within the nested
2118  * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
2119  * and without such encapsulation in the event case.
2120  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
2121  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
2122  */
2123 enum qca_vendor_attr_interop_issues_ap {
2124 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
2125 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
2126 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
2127 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
2128 	/* keep last */
2129 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
2130 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
2131 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
2132 };
2133 
2134 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
2135 
2136 /**
2137  * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
2138  *
2139  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
2140  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
2141  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
2142  *	Aggressive stats gathering
2143  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
2144  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
2145  */
2146 enum qca_wlan_vendor_attr_ll_stats_set {
2147 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2148 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2149 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
2150 	/* keep last */
2151 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2152 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2153 		QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
2154 };
2155 
2156 /**
2157  * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
2158  *
2159  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
2160  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
2161  *	provided by the caller issuing the GET stats command. When reporting
2162  *	the stats results, the driver uses the same value to indicate which
2163  *	GET request the results correspond to.
2164  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
2165  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2166  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2167  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
2168  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
2169  */
2170 enum qca_wlan_vendor_attr_ll_stats_get {
2171 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2172 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
2173 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
2174 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2175 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2176 		QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
2177 };
2178 
2179 /**
2180  * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
2181  *
2182  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
2183  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
2184  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
2185  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2186  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2187  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
2188  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
2189  */
2190 enum qca_wlan_vendor_attr_ll_stats_clr {
2191 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2192 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
2193 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
2194 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
2195 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
2196 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2197 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2198 		QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
2199 };
2200 
2201 /**
2202  * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
2203  *
2204  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
2205  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
2206  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
2207  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
2208  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
2209  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
2210  */
2211 enum qca_wlan_vendor_attr_ll_stats_results_type {
2212 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
2213 
2214 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
2215 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
2216 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
2217 
2218 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
2219 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
2220 		QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
2221 };
2222 
2223 enum qca_wlan_vendor_attr_ll_stats_results {
2224 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2225 	/* Unsigned 32bit value. Used by the driver; must match the request id
2226 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2227 	 */
2228 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2229 
2230 	/* Unsigned 32 bit value */
2231 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2232 	/* Unsigned 32 bit value */
2233 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2234 	/* Unsigned 32 bit value */
2235 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2236 	/* Unsigned 32 bit value */
2237 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2238 	/* Signed 32 bit value */
2239 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2240 	/* Signed 32 bit value */
2241 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2242 	/* Signed 32 bit value */
2243 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2244 
2245 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2246 	 * nested within the interface stats.
2247 	 */
2248 
2249 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2250 	 * Type = enum wifi_interface_mode.
2251 	 */
2252 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2253 	/* Interface MAC address. An array of 6 Unsigned int8 */
2254 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2255 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2256 	 * AUTHENTICATING, etc. valid for STA, CLI only.
2257 	 */
2258 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2259 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2260 	 */
2261 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2262 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2263 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2264 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2265 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2266 	/* BSSID. An array of 6 unsigned 8 bit values */
2267 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2268 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
2269 	 * values.
2270 	 */
2271 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2272 	/* Country string for this association. An array of 3 unsigned 8 bit
2273 	 * values.
2274 	 */
2275 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2276 
2277 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2278 	 * be nested within the interface stats.
2279 	 */
2280 
2281 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2282 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2283 	/* Unsigned int 32 value corresponding to respective AC */
2284 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2285 	/* Unsigned int 32 value corresponding to respective AC */
2286 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2287 	/* Unsigned int 32 value corresponding to respective AC */
2288 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2289 	/* Unsigned int 32 value corresponding to respective AC */
2290 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2291 	/* Unsigned int 32 value corresponding to respective AC */
2292 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2293 	/* Unsigned int 32 value corresponding to respective AC */
2294 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2295 	/* Unsigned int 32 value corresponding to respective AC */
2296 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2297 	/* Unsigned int 32 value corresponding to respective AC */
2298 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2299 	/* Unsigned int 32 value corresponding to respective AC  */
2300 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2301 	/* Unsigned int 32 values corresponding to respective AC */
2302 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2303 	/* Unsigned int 32 values corresponding to respective AC */
2304 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2305 	/* Unsigned int 32 values corresponding to respective AC */
2306 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2307 	/* Unsigned int 32 values corresponding to respective AC */
2308 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2309 	/* Unsigned int 32 values corresponding to respective AC */
2310 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2311 	/* Unsigned 32 bit value. Number of peers */
2312 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2313 
2314 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2315 	 * nested within the interface stats.
2316 	 */
2317 
2318 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2319 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2320 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
2321 	 * 8 bit values.
2322 	 */
2323 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2324 	/* Unsigned int 32 bit value representing capabilities corresponding
2325 	 * to respective peer.
2326 	 */
2327 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2328 	/* Unsigned 32 bit value. Number of rates */
2329 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2330 
2331 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2332 	 * are nested within the rate stat.
2333 	 */
2334 
2335 	/* Wi-Fi Rate - separate attributes defined for individual fields */
2336 
2337 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2338 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2339 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2340 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2341 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2342 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2343 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2344 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2345 	 */
2346 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2347 
2348 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2349 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2350 
2351 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2352 	 * nested within the peer info stats.
2353 	 */
2354 
2355 	/* Unsigned int 32 bit value. Number of successfully transmitted data
2356 	 * packets, i.e., with ACK received corresponding to the respective
2357 	 * rate.
2358 	 */
2359 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2360 	/* Unsigned int 32 bit value. Number of received data packets
2361 	 * corresponding to the respective rate.
2362 	 */
2363 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2364 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2365 	 * received corresponding to the respective rate.
2366 	 */
2367 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2368 	/* Unsigned int 32 bit value. Total number of data packet retries for
2369 	 * the respective rate.
2370 	 */
2371 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2372 	/* Unsigned int 32 bit value. Total number of short data packet retries
2373 	 * for the respective rate.
2374 	 */
2375 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2376 	/* Unsigned int 32 bit value. Total number of long data packet retries
2377 	 * for the respective rate.
2378 	 */
2379 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2380 
2381 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2382 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
2383 	 * accruing over time.
2384 	 */
2385 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2386 	/* Unsigned 32 bit value. Total number of msecs the radio is
2387 	 * transmitting accruing over time.
2388 	 */
2389 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2390 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
2391 	 * receive accruing over time.
2392 	 */
2393 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2394 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2395 	 * to all scan accruing over time.
2396 	 */
2397 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2398 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2399 	 * to NAN accruing over time.
2400 	 */
2401 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2402 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2403 	 * to GSCAN accruing over time.
2404 	 */
2405 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2406 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2407 	 * to roam scan accruing over time.
2408 	 */
2409 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2410 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2411 	 * to PNO scan accruing over time.
2412 	 */
2413 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2414 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2415 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2416 	 */
2417 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2418 	/* Unsigned 32 bit value. Number of channels. */
2419 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2420 
2421 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2422 	 * be nested within the channel stats.
2423 	 */
2424 
2425 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2426 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2427 	/* Unsigned 32 bit value. Primary 20 MHz channel. */
2428 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2429 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2430 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2431 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2432 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2433 
2434 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2435 	 * nested within the radio stats.
2436 	 */
2437 
2438 	/* Unsigned int 32 bit value representing total number of msecs the
2439 	 * radio is awake on that channel accruing over time, corresponding to
2440 	 * the respective channel.
2441 	 */
2442 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2443 	/* Unsigned int 32 bit value representing total number of msecs the CCA
2444 	 * register is busy accruing over time corresponding to the respective
2445 	 * channel.
2446 	 */
2447 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2448 
2449 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2450 
2451 	/* Signifies the nested list of channel attributes
2452 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
2453 	 */
2454 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2455 
2456 	/* Signifies the nested list of peer info attributes
2457 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2458 	 */
2459 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2460 
2461 	/* Signifies the nested list of rate info attributes
2462 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2463 	 */
2464 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2465 
2466 	/* Signifies the nested list of wmm info attributes
2467 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2468 	 */
2469 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2470 
2471 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2472 	 * that more stats, e.g., peers or radio, are to follow in the next
2473 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2474 	 * Otherwise, it is set to 0.
2475 	 */
2476 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2477 
2478 	/* Unsigned 64 bit value */
2479 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2480 
2481 	/* Unsigned 32 bit value */
2482 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2483 
2484 	/* Unsigned 32 bit value */
2485 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2486 
2487 	/* Unsigned 32 bit value */
2488 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2489 
2490 	/* Unsigned 32 bit value */
2491 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2492 
2493 	/* Unsigned 32 bit value */
2494 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2495 
2496 	/* Number of msecs the radio spent in transmitting for each power level
2497 	 */
2498 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2499 
2500 	/* Unsigned 32 bit value */
2501 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2502 	/* Unsigned 32 bit value */
2503 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2504 	/* Unsigned 32 bit value */
2505 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2506 	/* Unsigned 32 bit value */
2507 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2508 
2509 	/* Unsigned int 32 value.
2510 	 * Pending MSDUs corresponding to respective AC.
2511 	 */
2512 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2513 
2514 	/* u32 value representing total time in milliseconds for which the radio
2515 	 * is transmitting on this channel. This attribute will be nested
2516 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2517 	 */
2518 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
2519 	/* u32 value representing total time in milliseconds for which the radio
2520 	 * is receiving all 802.11 frames intended for this device on this
2521 	 * channel. This attribute will be nested within
2522 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2523 	 */
2524 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
2525 	/* u8 value representing the channel load percentage. Possible values
2526 	 * are 0-100.
2527 	 */
2528 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
2529 	/* u8 value representing the time slicing duty cycle percentage.
2530 	 * Possible values are 0-100.
2531 	 */
2532 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
2533 	/* Unsigned 32 bit value. The number of Beacon frames which are received
2534 	 * from the associated AP and indicate buffered unicast frame(s) for us
2535 	 * in the TIM element.
2536 	 */
2537 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
2538 	/* Unsigned 32 bit value. The total number of Beacon frames received
2539 	 * from the associated AP that have wrongly indicated buffered unicast
2540 	 * traffic in the TIM element for us.
2541 	 * Below scenarios will be considered as wrong TIM element beacon:
2542 	 * 1) The related TIM element is set in the beacon for STA but STA
2543 	 *    doesn’t receive any unicast data after this beacon.
2544 	 * 2) The related TIM element is still set in the beacon for STA
2545 	 *    after STA has indicated power save exit by QoS Null Data frame.
2546 	 */
2547 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
2548 
2549 	/* keep last */
2550 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2551 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2552 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2553 };
2554 
2555 enum qca_wlan_vendor_attr_ll_stats_type {
2556 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2557 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2558 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2559 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2560 
2561 	/* keep last */
2562 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2563 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2564 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2565 };
2566 
2567 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2568 
2569 /**
2570  * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2571  *
2572  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2573  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2574  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2575  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2576  */
2577 enum qca_wlan_vendor_attr_get_supported_features {
2578 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2579 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2580 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2581 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2582 		QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2583 };
2584 
2585 /**
2586  * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2587  *
2588  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2589  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2590  *	value
2591  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2592  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2593  */
2594 enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2595 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2596 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2597 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2598 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2599 		QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2600 };
2601 
2602 /**
2603  * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2604  * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2605  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2606  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2607  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2608  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2609  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2610  */
2611 enum qca_wlan_vendor_scan_priority {
2612 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2613 	QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2614 	QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2615 	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2616 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2617 };
2618 
2619 /**
2620  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2621  *
2622  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2623  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2624  *	with frequencies to be scanned (in MHz)
2625  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2626  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2627  *	rates to be included
2628  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2629  *	at non CCK rate in 2GHz band
2630  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2631  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2632  *	driver for the specific scan request
2633  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2634  *	request decoded as in enum scan_status
2635  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2636  *	scan flag is set
2637  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2638  *	randomisation
2639  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2640  *	specific BSSID to scan for.
2641  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2642  *	microseconds. This is a common value which applies across all
2643  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
2644  * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2645  *      other scan requests. It is a u32 attribute and takes values from enum
2646  *      qca_wlan_vendor_scan_priority. This is an optional attribute.
2647  *      If this attribute is not configured, the driver shall use
2648  *      QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
2649  */
2650 enum qca_wlan_vendor_attr_scan {
2651 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2652 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2653 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2654 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2655 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2656 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2657 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2658 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2659 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2660 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2661 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2662 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
2663 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
2664 	QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
2665 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2666 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2667 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2668 };
2669 
2670 /**
2671  * enum scan_status - Specifies the valid values the vendor scan attribute
2672  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2673  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2674  *	new scan results
2675  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2676  */
2677 enum scan_status {
2678 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2679 	VENDOR_SCAN_STATUS_ABORTED,
2680 	VENDOR_SCAN_STATUS_MAX,
2681 };
2682 
2683 /**
2684  * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2685  *
2686  * NL attributes for data used by
2687  * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2688  *
2689  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2690  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2691  *	Unsigned 32-bit value
2692  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
2693  *	Unsigned 32-bit value
2694  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
2695  *	array of SET_SIZE x Unsigned 32bit values representing concurrency
2696  *	combinations
2697  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
2698  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
2699  */
2700 enum qca_wlan_vendor_attr_get_concurrency_matrix {
2701 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
2702 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
2703 									= 1,
2704 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
2705 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
2706 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
2707 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
2708 		QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
2709 };
2710 
2711 /**
2712  * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
2713  *
2714  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
2715  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
2716  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
2717  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
2718  */
2719 enum qca_wlan_vendor_attr_set_no_dfs_flag {
2720 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
2721 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
2722 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
2723 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
2724 		QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
2725 };
2726 
2727 /**
2728  * enum qca_vendor_attr_wisa_cmd
2729  * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
2730  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
2731  * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
2732  * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
2733  * WISA setup vendor commands
2734  */
2735 enum qca_vendor_attr_wisa_cmd {
2736 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2737 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2738 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2739 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2740 		QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2741 };
2742 
2743 enum qca_roaming_policy {
2744 	QCA_ROAMING_NOT_ALLOWED,
2745 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
2746 };
2747 
2748 /**
2749  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
2750  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
2751  *
2752  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
2753  * reasons.
2754  *
2755  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
2756  * the configured threshold.
2757  *
2758  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
2759  * beacon misses from the then connected AP.
2760  *
2761  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
2762  * by the connected AP.
2763  *
2764  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
2765  * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
2766  * not poor.
2767  *
2768  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
2769  * or environment being very noisy / congested.
2770  *
2771  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
2772  * from the user (user space).
2773  *
2774  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
2775  * connected AP.
2776  *
2777  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
2778  * breaching out the configured threshold.
2779  *
2780  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
2781  * transition request.
2782  *
2783  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
2784  * there is no data activity with the AP and the current rssi falls below a
2785  * certain threshold.
2786  *
2787  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
2788  * deauthentication or disassociation frames received from the connected AP.
2789  *
2790  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
2791  * scan that happens when there is no candidate AP found during the poor
2792  * RSSI scan trigger.
2793  *
2794  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
2795  * results obtained from an external scan (not aimed at roaming).
2796  *
2797  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
2798  * connection is established when the station is connected in 2.4 Ghz band.
2799  */
2800 enum qca_roam_reason {
2801 	QCA_ROAM_REASON_UNKNOWN,
2802 	QCA_ROAM_REASON_PER,
2803 	QCA_ROAM_REASON_BEACON_MISS,
2804 	QCA_ROAM_REASON_POOR_RSSI,
2805 	QCA_ROAM_REASON_BETTER_RSSI,
2806 	QCA_ROAM_REASON_CONGESTION,
2807 	QCA_ROAM_REASON_USER_TRIGGER,
2808 	QCA_ROAM_REASON_BTM,
2809 	QCA_ROAM_REASON_BSS_LOAD,
2810 	QCA_ROAM_REASON_WTC,
2811 	QCA_ROAM_REASON_IDLE,
2812 	QCA_ROAM_REASON_DISCONNECTION,
2813 	QCA_ROAM_REASON_PERIODIC_TIMER,
2814 	QCA_ROAM_REASON_BACKGROUND_SCAN,
2815 	QCA_ROAM_REASON_BT_ACTIVITY,
2816 };
2817 
2818 /**
2819  * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
2820  *
2821  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
2822  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
2823  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
2824  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
2825  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
2826  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
2827  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
2828  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
2829  * Indicates the status of re-association requested by user space for
2830  * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
2831  * Type u16.
2832  * Represents the status code from AP. Use
2833  * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
2834  * real status code for failures.
2835  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
2836  * This attribute indicates that the old association was maintained when
2837  * a re-association is requested by user space and that re-association
2838  * attempt fails (i.e., cannot connect to the requested BSS, but can
2839  * remain associated with the BSS with which the association was in
2840  * place when being requested to roam). Used along with
2841  * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
2842  * re-association status. Type flag.
2843  * This attribute is applicable only for re-association failure cases.
2844  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
2845  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
2846  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
2847  * seq number
2848  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
2849  * representing the reasons for the roaming. Defined by enum
2850  * qca_roam_reason.
2851  */
2852 enum qca_wlan_vendor_attr_roam_auth {
2853 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
2854 	/* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
2855 	 * of the roamed AP for MLO roaming.
2856 	 */
2857 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
2858 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
2859 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
2860 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
2861 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
2862 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
2863 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
2864 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
2865 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
2866 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
2867 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
2868 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
2869 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
2870 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
2871 	/* A nested attribute containing per-link information of all the links
2872 	 * of MLO connection done while roaming. The attributes used inside this
2873 	 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
2874 	 */
2875 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
2876 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
2877 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
2878 		QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
2879 };
2880 
2881 /**
2882  * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
2883  * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
2884  *
2885  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
2886  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
2887  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
2888  */
2889 enum qca_wlan_vendor_attr_mlo_links {
2890 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
2891 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
2892 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
2893 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
2894 
2895 	/* Keep last */
2896 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
2897 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
2898 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
2899 };
2900 
2901 /**
2902  * enum qca_wlan_vendor_attr_wifi_config - wifi config
2903  *
2904  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
2905  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
2906  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
2907  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
2908  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
2909  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
2910  */
2911 enum qca_wlan_vendor_attr_wifi_config {
2912 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
2913 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
2914 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
2915 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
2916 
2917 	/* keep last */
2918 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
2919 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
2920 		QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
2921 };
2922 
2923 /**
2924  * enum qca_wlan_epno_type - the type of request to the EPNO command
2925  * @QCA_WLAN_EPNO: epno type request
2926  * @QCA_WLAN_PNO: pno type request
2927  */
2928 enum qca_wlan_epno_type {
2929 	QCA_WLAN_EPNO,
2930 	QCA_WLAN_PNO
2931 };
2932 
2933 /**
2934  * enum qca_wlan_vendor_attr_pno_config_params - pno config params
2935  *
2936  * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
2937  *
2938  *	NL attributes for data used by
2939  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
2940  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
2941  *	Unsigned 32-bit value; pno passpoint number of networks
2942  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
2943  *	Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
2944  *	attributes. Array size =
2945  *	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
2946  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
2947  *	Unsigned 32-bit value; network id
2948  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
2949  *	An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
2950  *	realm, 0 if unspecified.
2951  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
2952  *	An array of 16 x Unsigned 32-bit value; roaming consortium ids
2953  *	to match, 0 if unspecified.
2954  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
2955  *	An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
2956  *	unspecified.
2957  *
2958  *	NL attributes for data used by
2959  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
2960  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
2961  *	Unsigned 32-bit value; set pno number of networks
2962  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
2963  *	Array of nested
2964  *	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
2965  *	attributes. Array size =
2966  *		QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
2967  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
2968  *	An array of 33 x Unsigned 8-bit value; NULL terminated SSID
2969  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
2970  *	Signed 8-bit value; threshold for considering this SSID as found,
2971  *	required granularity for this threshold is 4dBm to 8dBm
2972  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
2973  *	Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
2974  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
2975  *	Unsigned 8-bit value; auth bit field for matching WPA IE
2976  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
2977  *	Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
2978  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
2979  *	Nested attribute to send the channel list
2980  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
2981  *	Unsigned 32-bit value; indicates the Interval between PNO scan
2982  *	cycles in msec
2983  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
2984  *	Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
2985  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
2986  *	Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
2987  *	This attribute is obsolete now.
2988  *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
2989  *	Signed 32-bit value; the maximum score that a network
2990  *	can have before bonuses
2991  *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
2992  *	Signed 32-bit value; only report when there is a network's
2993  *	score this much higher han the current connection
2994  *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
2995  *	Signed 32-bit value; score bonus for all networks with
2996  *	the same network flag
2997  *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
2998  *	Signed 32-bit value; score bonus for networks that are not open
2999  *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
3000  *	Signed 32-bit value; 5GHz RSSI score bonus applied to all
3001  *	5GHz networks
3002  *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
3003  *	Unsigned 32-bit value, representing the PNO Request ID
3004  * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
3005  * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
3006  */
3007 enum qca_wlan_vendor_attr_pno_config_params {
3008 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
3009 
3010 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
3011 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
3012 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
3013 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
3014 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
3015 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
3016 
3017 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3018 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3019 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3020 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
3021 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3022 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3023 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3024 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3025 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3026 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3027 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3028 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3029 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3030 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3031 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3032 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
3033 
3034 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
3035 	/* keep last */
3036 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3037 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3038 		QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3039 };
3040 
3041 /**
3042  * enum qca_scan_freq_list_type: Frequency list types
3043  *
3044  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
3045  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3046  *	a preferred frequency list for roaming.
3047  *
3048  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
3049  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3050  *	a specific frequency list for roaming.
3051  */
3052 enum qca_scan_freq_list_type {
3053 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
3054 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
3055 };
3056 
3057 /**
3058  * enum qca_roam_scan_scheme: scan scheme
3059  *
3060  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
3061  *	Indicates the driver to not scan on a Roam Trigger scenario, but
3062  *	Disconnect.e.g., On a BTM request from the AP driver/firmware shall
3063  *	disconnect from the current connected AP by notifying a failure
3064  *	code in the BTM response.
3065  *
3066  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
3067  *	trigger partial frequency scans. These frequencies are the ones learnt
3068  *	or maintained by the driver based on the probability of finding the
3069  *	BSSID's in the ESS for which the roaming is triggered.
3070  *
3071  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
3072  *	trigger the scan on all the valid frequencies to find the better
3073  *	candidates to roam.
3074  */
3075 enum qca_roam_scan_scheme {
3076 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
3077 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
3078 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
3079 };
3080 
3081 /**
3082  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
3083  *
3084  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
3085  *	List of frequencies in MHz to be considered for a roam scan.
3086  *
3087  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
3088  *	Type of frequency list scheme being configured/gotten as defined by the
3089  *	enum qca_scan_freq_list_type.
3090  */
3091 enum qca_vendor_attr_scan_freq_list_scheme {
3092 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
3093 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
3094 
3095 	/* keep last */
3096 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
3097 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
3098 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
3099 };
3100 
3101 /*
3102  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
3103  *
3104  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
3105  *	a bad packet error rates (PER).
3106  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
3107  *	based on beacon misses from the connected AP.
3108  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
3109  *	due to poor RSSI of the connected AP.
3110  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
3111  *	upon finding a BSSID with a better RSSI than the connected BSSID.
3112  *	Here the RSSI of the current BSSID need not be poor.
3113  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
3114  *	by triggering a periodic scan to find a better AP to roam.
3115  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
3116  *	when the connected channel environment is too noisy/congested.
3117  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
3118  *	when BTM Request frame is received from the connected AP.
3119  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
3120  *	when the channel utilization is goes above the configured threshold.
3121  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
3122  *	based on the request from the user (space).
3123  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
3124  *	device receives Deauthentication/Disassociation frame from connected
3125  *	AP.
3126  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
3127  *	DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
3128  *	is determined to be a poor one.
3129  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
3130  *	based on continuous TX Data Frame failures to the connected AP.
3131  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
3132  *	based on the scan results obtained from an external scan (not
3133  *	triggered to aim roaming)
3134  *
3135  * Set the corresponding roam trigger reason bit to consider it for roam
3136  * trigger.
3137  * Userspace can set multiple bits and send to the driver. The driver shall
3138  * consider all of them to trigger/initiate a roam scan.
3139  */
3140 enum qca_vendor_roam_triggers {
3141 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
3142 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
3143 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
3144 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
3145 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
3146 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
3147 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
3148 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
3149 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
3150 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
3151 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
3152 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
3153 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
3154 };
3155 
3156 /*
3157  * enum qca_vendor_roam_fail_reasons: Defines the various roam
3158  * fail reasons. This enum value is used in
3159  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
3160  *
3161  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
3162  * able to trigger the scan.
3163  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
3164  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
3165  * scan.
3166  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
3167  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
3168  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
3169  * status code.
3170  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
3171  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
3172  * frame.
3173  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
3174  * with error status code.
3175  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
3176  * received.
3177  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
3178  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
3179  * frame.
3180  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
3181  * internally before transmission.
3182  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
3183  * Request frame.
3184  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
3185  * dropped internally.
3186  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
3187  * times out.
3188  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
3189  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
3190  * internally.
3191  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
3192  * M2 frame.
3193  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
3194  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
3195  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
3196  * internally.
3197  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
3198  * frame.
3199  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
3200  * started for final beacon miss case.
3201  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
3202  * received from the AP during roaming handoff.
3203  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
3204  * or host is suspended and gives the indication of the last roamed AP only
3205  * when the Apps is resumed. If the Apps is resumed while the roaming is in
3206  * progress, this ongoing roaming is aborted and the last roamed AP is
3207  * indicated to host.
3208  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
3209  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
3210  * out.
3211  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
3212  */
3213 enum qca_vendor_roam_fail_reasons {
3214 	QCA_ROAM_FAIL_REASON_NONE = 0,
3215 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
3216 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
3217 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
3218 	QCA_ROAM_FAIL_REASON_HOST = 4,
3219 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
3220 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
3221 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
3222 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
3223 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
3224 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
3225 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
3226 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
3227 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
3228 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
3229 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
3230 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
3231 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
3232 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
3233 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
3234 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
3235 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
3236 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
3237 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
3238 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
3239 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
3240 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
3241 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
3242 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
3243 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
3244 };
3245 
3246 /*
3247  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
3248  * invoke fail reasons. This enum value is used in
3249  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
3250  *
3251  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
3252  * in roam invoke command.
3253  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
3254  * enabled.
3255  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
3256  * length is invalid.
3257  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
3258  * in progress.
3259  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
3260  * of the AP in the roam invoke command to firmware. This reason is sent by the
3261  * firmware when the given AP is configured to be ignored or SSID/security
3262  * does not match.
3263  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
3264  * firmware internal reasons.
3265  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
3266  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
3267  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
3268  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
3269  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
3270  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
3271  */
3272 enum qca_vendor_roam_invoke_fail_reasons {
3273 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
3274 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
3275 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
3276 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
3277 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
3278 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
3279 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
3280 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
3281 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
3282 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
3283 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
3284 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
3285 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
3286 
3287 };
3288 
3289 /**
3290  * enum qca_vendor_attr_roam_candidate_selection_criteria:
3291  *
3292  * Each attribute carries a weightage in percentage (%).
3293  *
3294  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
3295  *	Represents the weightage to be given for the RSSI selection
3296  *	criteria among other parameters.
3297  *
3298  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
3299  *	Represents the weightage to be given for the rate selection
3300  *	criteria among other parameters.
3301  *
3302  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
3303  *	Represents the weightage to be given for the band width selection
3304  *	criteria among other parameters.
3305  *
3306  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
3307  *	Represents the weightage to be given for the band selection
3308  *	criteria among other parameters.
3309  *
3310  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
3311  *	Represents the weightage to be given for the NSS selection
3312  *	criteria among other parameters.
3313  *
3314  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
3315  *	Represents the weightage to be given for the channel congestion
3316  *	selection criteria among other parameters.
3317  *
3318  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
3319  *	Represents the weightage to be given for the beamforming selection
3320  *	criteria among other parameters.
3321  *
3322  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
3323  *	Represents the weightage to be given for the OCE selection
3324  *	criteria among other parameters.
3325  */
3326 enum qca_vendor_attr_roam_candidate_selection_criteria {
3327 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
3328 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
3329 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
3330 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
3331 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
3332 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
3333 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
3334 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
3335 
3336 	/* keep last */
3337 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
3338 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
3339 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
3340 };
3341 
3342 /**
3343  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
3344  *	The following attributes are used to set/get/clear the respective
3345  *	configurations to/from the driver.
3346  *	For the get, the attribute for the configuration to be queried shall
3347  *	carry any of its acceptable values to the driver. In return, the driver
3348  *	shall send the configured values within the same attribute to the user
3349  *	space.
3350  *
3351  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
3352  *	Signifies to enable/disable roam control in driver.
3353  *	1-enable, 0-disable
3354  *	Enable: Mandates the driver to do the further roams using the
3355  *	configuration parameters set through
3356  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
3357  *	Disable: Disables the driver/firmware roaming triggered through
3358  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
3359  *	expected to continue with the default configurations.
3360  *
3361  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
3362  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
3363  *	Roam control status is obtained through this attribute.
3364  *
3365  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
3366  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
3367  *	is to be cleared in the driver.
3368  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
3369  *	and shall be ignored if used with other sub commands.
3370  *	If this attribute is specified along with subcmd
3371  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
3372  *	all other attributes, if there are any.
3373  *	If this attribute is not specified when the subcmd
3374  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
3375  *	clear the data corresponding to the attributes specified.
3376  *
3377  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
3378  *	list of frequencies and its type, represented by
3379  *	enum qca_vendor_attr_scan_freq_list_scheme.
3380  *	Frequency list and its type are mandatory for this attribute to set
3381  *	the frequencies.
3382  *	Frequency type is mandatory for this attribute to get the frequencies
3383  *	and the frequency list is obtained through
3384  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
3385  *	Frequency list type is mandatory for this attribute to clear the
3386  *	frequencies.
3387  *
3388  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
3389  *	Carries the value of scan period in seconds to set.
3390  *	The value of scan period is obtained with the same attribute for get.
3391  *	Clears the scan period in the driver when specified with clear command.
3392  *	Scan period is the idle time in seconds between each subsequent
3393  *	channel scans.
3394  *
3395  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
3396  *	Carries the value of full scan period in seconds to set.
3397  *	The value of full scan period is obtained with the same attribute for
3398  *	get.
3399  *	Clears the full scan period in the driver when specified with clear
3400  *	command. Full scan period is the idle period in seconds between two
3401  *	successive full channel roam scans.
3402  *
3403  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
3404  *	Carries a bitmap of the roam triggers specified in
3405  *	enum qca_vendor_roam_triggers.
3406  *	The driver shall enable roaming by enabling corresponding roam triggers
3407  *	based on the trigger bits sent with this attribute.
3408  *	If this attribute is not configured, the driver shall proceed with
3409  *	default behavior.
3410  *	The bitmap configured is obtained with the same attribute for get.
3411  *	Clears the bitmap configured in driver when specified with clear
3412  *	command.
3413  *
3414  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
3415  *	weightage in percentage (%) to be given for each selection criteria.
3416  *	Different roam candidate selection criteria are represented by
3417  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
3418  *	The driver shall select the roam candidate based on corresponding
3419  *	candidate selection scores sent.
3420  *
3421  *	An empty nested attribute is used to indicate that no specific
3422  *	preference score/criteria is configured (i.e., to disable this mechanism
3423  *	in the set case and to show that the mechanism is disabled in the get
3424  *	case).
3425  *
3426  *	Userspace can send multiple attributes out of this enum to the driver.
3427  *	Since this attribute represents the weight/percentage of preference for
3428  *	the respective selection criteria, it is preferred to configure 100%
3429  *	total weightage. The value in each attribute or cumulative weight of the
3430  *	values in all the nested attributes should not exceed 100%. The driver
3431  *	shall reject such configuration.
3432  *
3433  *	If the weights configured through this attribute are less than 100%,
3434  *	the driver shall honor the weights (x%) passed for the corresponding
3435  *	selection criteria and choose/distribute rest of the weight (100-x)%
3436  *	for the other selection criteria, based on its internal logic.
3437  *
3438  *	The selection criteria configured is obtained with the same
3439  *	attribute for get.
3440  *
3441  *	Clears the selection criteria configured in the driver when specified
3442  *	with clear command.
3443  *
3444  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
3445  *	Represents value of scan frequency scheme from
3446  *      enum qca_roam_scan_scheme.
3447  *
3448  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3449  *	signifying the RSSI threshold of the current connected AP, indicating
3450  *	the driver to trigger roam only when the current connected AP's RSSI
3451  *	is lesser than this threshold.
3452  *
3453  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3454  *	signifying the RSSI threshold of the candidate AP, indicating
3455  *	the driver to trigger roam only to the candidate AP with RSSI
3456  *	better than this threshold. If RSSI thresholds for candidate APs found
3457  *	in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
3458  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
3459  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
3460  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
3461  *	will take precedence over the value configured using
3462  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
3463  *
3464  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
3465  *	user triggered reason code to be sent to the AP in response to AP's
3466  *	request to trigger the roam if the roaming cannot be triggered.
3467  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
3468  *
3469  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
3470  *	Carries a bitmap of the roam triggers specified in
3471  *	enum qca_vendor_roam_triggers.
3472  *	Represents the roam triggers for which the specific scan scheme from
3473  *	enum qca_roam_scan_scheme has to be applied.
3474  *	It's an optional attribute. If this attribute is not configured, but
3475  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
3476  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
3477  *	all the roams.
3478  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
3479  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
3480  *	driver shall proceed with the default behavior.
3481  *
3482  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
3483  *	in dBm, signifying the RSSI threshold of the candidate AP found in
3484  *	2.4GHz band. The driver/firmware shall trigger roaming to the candidate
3485  *	AP found in 2.4GHz band only if it's RSSI value is better than this
3486  *	threshold. Optional attribute. If this attribute is not included, then
3487  *	threshold value specified by the
3488  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3489  *
3490  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
3491  *	dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
3492  *	band. The driver/firmware shall trigger roaming to the candidate AP
3493  *	found in 5GHz band only if it's RSSI value is better than this
3494  *	threshold. Optional attribute. If this attribute is not included, then
3495  *	threshold value specified by the
3496  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3497  *
3498  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
3499  *	dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
3500  *	band. The driver/firmware shall trigger roaming to the candidate AP
3501  *	found in 6GHz band only if it's RSSI value is better than this
3502  *	threshold. Optional attribute. If this attribute is not included, then
3503  *	threshold value specified by the
3504  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3505  *
3506  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
3507  *	Carries bitmask value of bits from &enum qca_set_band and represents
3508  *	all the bands in which roaming is allowed. The configuration is valid
3509  *	until next disconnection. If this attribute is not present, the
3510  *	existing configuration shall be used. By default, roaming is allowed
3511  *	on all bands supported by local device. When the value is set to
3512  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
3513  *
3514  * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
3515  *	Optional parameter. RX link speed threshold to disable roaming.
3516  *	If the current RX link speed is above the threshold, roaming is not
3517  *	needed. If this attribute is not configured, or if it is set to 0, the
3518  *	driver will not consider the RX link speed in the roaming decision.
3519  */
3520 enum qca_vendor_attr_roam_control {
3521 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
3522 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
3523 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
3524 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
3525 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
3526 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
3527 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
3528 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
3529 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
3530 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
3531 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
3532 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
3533 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
3534 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
3535 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
3536 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
3537 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
3538 	QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
3539 
3540 	/* keep last */
3541 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
3542 	QCA_ATTR_ROAM_CONTROL_MAX =
3543 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
3544 };
3545 
3546 /**
3547  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
3548  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3549  *
3550  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
3551  *	Represents the different roam sub commands referred by
3552  *	enum qca_wlan_vendor_roaming_subcmd.
3553  *
3554  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
3555  *	Represents the Request ID for the specific set of commands.
3556  *	This also helps to map specific set of commands to the respective
3557  *	ID / client. e.g., helps to identify the user entity configuring the
3558  *	Blacklist BSSID and accordingly clear the respective ones with the
3559  *	matching ID.
3560  *
3561  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
3562  *	32-bit value.Represents the number of whitelist SSIDs configured.
3563  *
3564  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
3565  *	to carry the list of Whitelist SSIDs.
3566  *
3567  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
3568  *	0..32 octets). Represents the white list SSID. Whitelist SSIDs
3569  *	represent the list of SSIDs to which the firmware/driver can consider
3570  *	to roam to.
3571  *
3572  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
3573  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
3574  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
3575  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
3576  *
3577  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
3578  *	value, RSSI threshold above which 5GHz RSSI is favored.
3579  *
3580  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
3581  *	value, RSSI threshold below which 5GHz RSSI is penalized.
3582  *
3583  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
3584  *	value, factor by which 5GHz RSSI is boosted.
3585  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
3586  *
3587  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
3588  *	value, factor by which 5GHz RSSI is penalized.
3589  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3590  *
3591  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3592  *	value, maximum boost that can be applied to a 5GHz RSSI.
3593  *
3594  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3595  *	value, boost applied to current BSSID to ensure the currently
3596  *	associated BSSID is favored so as to prevent ping-pong situations.
3597  *
3598  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3599  *	value, RSSI below which "Alert" roam is enabled.
3600  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3601  *	because the RSSI is low, or because many successive beacons have been
3602  *	lost or other bad link conditions.
3603  *
3604  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3605  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3606  *	firmware is hunting for a better BSSID or white listed SSID even though
3607  *	the RSSI of the link is good. The parameters enabling the roaming are
3608  *	configured through the PARAM_A_BAND_XX attrbutes.
3609  *
3610  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3611  *	represents the BSSIDs preferred over others while evaluating them
3612  *	for the roaming.
3613  *
3614  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3615  *	32-bit value. Represents the number of preferred BSSIDs set.
3616  *
3617  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3618  *	address representing the BSSID to be preferred.
3619  *
3620  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3621  *	32-bit value, representing the modifier to be applied to the RSSI of
3622  *	the BSSID for the purpose of comparing it with other roam candidate.
3623  *
3624  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3625  *	represents the BSSIDs to get blacklisted for roaming.
3626  *
3627  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3628  *	32-bit value, represents the number of blacklisted BSSIDs.
3629  *
3630  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3631  *	address representing the Blacklisted BSSID.
3632  *
3633  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3634  *	indicates this BSSID blacklist as a hint to the driver. The driver can
3635  *	select this BSSID in the worst case (when no other BSSIDs are better).
3636  *
3637  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3638  *	set/get/clear the roam control config as
3639  *	defined @enum qca_vendor_attr_roam_control.
3640  *
3641  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
3642  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
3643  */
3644 enum qca_wlan_vendor_attr_roaming_config_params {
3645 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3646 
3647 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3648 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3649 
3650 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3651 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3652 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3653 
3654 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3655 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3656 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3657 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3658 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3659 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3660 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3661 
3662 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3663 
3664 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3665 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3666 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3667 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3668 
3669 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3670 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3671 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
3672 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
3673 
3674 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
3675 
3676 	/* keep last */
3677 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3678 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3679 		QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3680 };
3681 
3682 /**
3683  * enum qca_wlan_vendor_roaming_subcmd: Referred by
3684  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
3685  *
3686  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
3687  *	configure the white list SSIDs. These are configured through
3688  *	the following attributes.
3689  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3690  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3691  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3692  *
3693  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
3694  *	configure the Roam params. These parameters are evaluated on the extscan
3695  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
3696  *	params.
3697  *
3698  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
3699  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3700  *	to enable/disable Lazy roam.
3701  *
3702  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
3703  *	preference. Contains the attribute
3704  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
3705  *	preference.
3706  *
3707  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
3708  *
3709  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
3710  *	BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
3711  *	set the same.
3712  *
3713  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
3714  *	roam control config to the driver with the attribute
3715  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3716  *
3717  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
3718  *	roam control config from driver with the attribute
3719  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3720  *	For the get, the attribute for the configuration to be queried shall
3721  *	carry any of its acceptable value to the driver. In return, the driver
3722  *	shall send the configured values within the same attribute to the user
3723  *	space.
3724  *
3725  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
3726  *	roam control config in the driver with the attribute
3727  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3728  *	The driver shall continue with its default roaming behavior when data
3729  *	corresponding to an attribute is cleared.
3730  */
3731 enum qca_wlan_vendor_roaming_subcmd {
3732 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
3733 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
3734 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
3735 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
3736 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
3737 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
3738 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
3739 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
3740 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
3741 };
3742 
3743 /**
3744  * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
3745  *
3746  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
3747  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
3748  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
3749  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
3750  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
3751  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
3752  */
3753 enum qca_wlan_vendor_attr_get_wifi_info {
3754 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3755 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION     = 1,
3756 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION   = 2,
3757 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX        = 3,
3758 
3759 	/* KEEP LAST */
3760 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3761 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX  =
3762 		QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3763 };
3764 
3765 enum qca_wlan_vendor_attr_logger_results {
3766 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3767 
3768 	/*
3769 	 * Unsigned 32-bit value; must match the request Id supplied by
3770 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
3771 	 */
3772 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3773 
3774 	/*
3775 	 * Unsigned 32-bit value; used to indicate the size of memory
3776 	 * dump to be allocated.
3777 	 */
3778 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3779 
3780 	/* keep last */
3781 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3782 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3783 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3784 };
3785 
3786 /**
3787  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3788  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3789  */
3790 enum qca_wlan_vendor_channel_prop_flags {
3791 	/* Bits 0, 1, 2, and 3 are reserved */
3792 
3793 	/* Turbo channel */
3794 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
3795 	/* CCK channel */
3796 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
3797 	/* OFDM channel */
3798 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
3799 	/* 2.4 GHz spectrum channel. */
3800 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
3801 	/* 5 GHz spectrum channel */
3802 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
3803 	/* Only passive scan allowed */
3804 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
3805 	/* Dynamic CCK-OFDM channel */
3806 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
3807 	/* GFSK channel (FHSS PHY) */
3808 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
3809 	/* Radar found on channel */
3810 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
3811 	/* 11a static turbo channel only */
3812 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
3813 	/* Half rate channel */
3814 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
3815 	/* Quarter rate channel */
3816 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
3817 	/* HT 20 channel */
3818 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
3819 	/* HT 40 with extension channel above */
3820 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
3821 	/* HT 40 with extension channel below */
3822 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
3823 	/* HT 40 intolerant */
3824 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
3825 	/* VHT 20 channel */
3826 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
3827 	/* VHT 40 with extension channel above */
3828 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
3829 	/* VHT 40 with extension channel below */
3830 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
3831 	/* VHT 80 channel */
3832 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
3833 	/* HT 40 intolerant mark bit for ACS use */
3834 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3835 	/* Channel temporarily blocked due to noise */
3836 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
3837 	/* VHT 160 channel */
3838 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
3839 	/* VHT 80+80 channel */
3840 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
3841 	/* HE 20 channel */
3842 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
3843 	/* HE 40 with extension channel above */
3844 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
3845 	/* HE 40 with extension channel below */
3846 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
3847 	/* HE 40 intolerant */
3848 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1U << 31,
3849 };
3850 
3851 /**
3852  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3853  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3854  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3855  */
3856 enum qca_wlan_vendor_channel_prop_flags_2 {
3857 	/* HE 40 intolerant mark bit for ACS use */
3858 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3859 	/* HE 80 channel */
3860 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
3861 	/* HE 160 channel */
3862 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
3863 	/* HE 80+80 channel */
3864 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
3865 };
3866 
3867 /**
3868  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3869  * each channel. This is used by
3870  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3871  */
3872 enum qca_wlan_vendor_channel_prop_flags_ext {
3873 	/* Radar found on channel */
3874 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
3875 	/* DFS required on channel */
3876 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
3877 	/* DFS required on channel for 2nd band of 80+80 */
3878 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
3879 	/* If channel has been checked for DFS */
3880 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
3881 	/* Excluded in 802.11d */
3882 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
3883 	/* Channel Switch Announcement received on this channel */
3884 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
3885 	/* Ad-hoc is not allowed */
3886 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
3887 	/* Station only channel */
3888 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3889 	/* DFS radar history for slave device (STA mode) */
3890 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
3891 	/* DFS CAC valid for slave device (STA mode) */
3892 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
3893 };
3894 
3895 /**
3896  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3897  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3898  * information to start/stop the NUD statistics collection.
3899  */
3900 enum qca_attr_nud_stats_set {
3901 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
3902 
3903 	/*
3904 	 * Flag to start/stop the NUD statistics collection.
3905 	 * Start - If included, Stop - If not included
3906 	 */
3907 	QCA_ATTR_NUD_STATS_SET_START = 1,
3908 	/* IPv4 address of the default gateway (in network byte order) */
3909 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
3910 	/*
3911 	 * Represents the data packet type to be monitored.
3912 	 * Host driver tracks the stats corresponding to each data frame
3913 	 * represented by these flags.
3914 	 * These data packets are represented by
3915 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
3916 	 */
3917 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
3918 	/* keep last */
3919 	QCA_ATTR_NUD_STATS_SET_LAST,
3920 	QCA_ATTR_NUD_STATS_SET_MAX =
3921 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
3922 };
3923 
3924 /**
3925  * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
3926  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3927  *	information to start / stop the NUD stats collection.
3928  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
3929  *	Bitmap to Flag to Start / Stop the NUD stats collection
3930  *	Start - If included , Stop - If not included
3931  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
3932  *	IPv4 address of Default Gateway (in network byte order)
3933  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3934  *	information to start / stop the NUD stats collection.
3935  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
3936  *	Flag to Start / Stop the NUD stats collection
3937  *	Start - If included , Stop - If not included
3938  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
3939  *	IPv4 address of Default Gateway (in network byte order)
3940  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3941  *	information to start / stop the NUD stats collection.
3942  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
3943  *	Flag to Start / Stop the NUD stats collection
3944  *	Start - If included , Stop - If not included
3945  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
3946  *	IPv4 address of Default Gateway (in network byte order)
3947  */
3948 enum qca_attr_connectivity_check_stats_set {
3949 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
3950 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
3951 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
3952 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
3953 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
3954 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
3955 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
3956 	/* keep last */
3957 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
3958 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
3959 		QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
3960 };
3961 
3962 /**
3963  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
3964  * data types for which the stats have to get collected.
3965  */
3966 enum qca_wlan_vendor_connectivity_check_pkt_flags {
3967 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
3968 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
3969 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
3970 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
3971 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
3972 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
3973 	 * to represent the stats of respective data type.
3974 	 */
3975 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
3976 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
3977 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
3978 };
3979 
3980 enum qca_attr_connectivity_check_stats {
3981 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
3982 	/* Data packet type for which the stats are collected.
3983 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
3984 	 */
3985 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
3986 	/* ID corresponding to the DNS frame for which the respective DNS stats
3987 	 * are monitored (u32).
3988 	 */
3989 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
3990 	/* source / destination port on which the respective proto stats are
3991 	 * collected (u32).
3992 	 */
3993 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
3994 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
3995 	/* IPv4/IPv6 address for which the destined data packets are
3996 	 * monitored. (in network byte order)
3997 	 */
3998 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
3999 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
4000 	/* Data packet Request count received from netdev */
4001 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
4002 	/* Data packet Request count sent to lower MAC from upper MAC */
4003 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
4004 	/* Data packet Request count received by lower MAC from upper MAC */
4005 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
4006 	/* Data packet Request count successfully transmitted by the device */
4007 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
4008 	/* Data packet Response count received by lower MAC */
4009 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
4010 	/* Data packet Response count received by upper MAC */
4011 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
4012 	/* Data packet Response count delivered to netdev */
4013 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
4014 	/* Data Packet Response count that are dropped out of order */
4015 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
4016 
4017 	/* keep last */
4018 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
4019 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
4020 		QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
4021 };
4022 
4023 /**
4024  * qca_attr_nud_stats_get: Attributes to vendor subcmd
4025  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
4026  * NUD statistics collected when queried.
4027  */
4028 enum qca_attr_nud_stats_get {
4029 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
4030 	/* ARP Request count from netdev */
4031 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
4032 	/* ARP Request count sent to lower MAC from upper MAC */
4033 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
4034 	/* ARP Request count received by lower MAC from upper MAC */
4035 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
4036 	/* ARP Request count successfully transmitted by the device */
4037 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
4038 	/* ARP Response count received by lower MAC */
4039 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
4040 	/* ARP Response count received by upper MAC */
4041 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
4042 	/* ARP Response count delivered to netdev */
4043 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
4044 	/* ARP Response count delivered to netdev */
4045 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
4046 	/*
4047 	 * Flag indicating if the station's link to the AP is active.
4048 	 * Active Link - If included, Inactive link - If not included
4049 	 */
4050 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
4051 	/*
4052 	 * Flag indicating if there is any duplicate address detected (DAD).
4053 	 * Yes - If detected, No - If not detected.
4054 	 */
4055 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
4056 	/*
4057 	 * List of Data types for which the stats are requested.
4058 	 * This list does not carry ARP stats as they are done by the
4059 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
4060 	 */
4061 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
4062 	/* keep last */
4063 	QCA_ATTR_NUD_STATS_GET_LAST,
4064 	QCA_ATTR_NUD_STATS_GET_MAX =
4065 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
4066 };
4067 
4068 enum qca_wlan_btm_candidate_status {
4069 	QCA_STATUS_ACCEPT = 0,
4070 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
4071 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
4072 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
4073 	QCA_STATUS_REJECT_LOW_RSSI = 4,
4074 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
4075 	QCA_STATUS_REJECT_UNKNOWN = 6,
4076 };
4077 
4078 enum qca_wlan_vendor_attr_btm_candidate_info {
4079 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
4080 
4081 	/* 6-byte MAC address representing the BSSID of transition candidate */
4082 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
4083 	/*
4084 	 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4085 	 * returned by the driver. It says whether the BSSID provided in
4086 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4087 	 * the driver, if not it specifies the reason for rejection.
4088 	 * Note that the user-space can overwrite the transition reject reason
4089 	 * codes provided by driver based on more information.
4090 	 */
4091 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
4092 
4093 	/* keep last */
4094 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
4095 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
4096 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
4097 };
4098 
4099 enum qca_attr_trace_level {
4100 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
4101 	/*
4102 	 * Nested array of the following attributes:
4103 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
4104 	 * QCA_ATTR_TRACE_LEVEL_MASK.
4105 	 */
4106 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
4107 	/*
4108 	 * Specific QCA host driver module. Please refer to the QCA host
4109 	 * driver implementation to get the specific module ID.
4110 	 */
4111 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
4112 	/* Different trace level masks represented in the QCA host driver. */
4113 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
4114 
4115 	/* keep last */
4116 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
4117 	QCA_ATTR_TRACE_LEVEL_MAX =
4118 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
4119 };
4120 
4121 /**
4122  * enum qca_wlan_vendor_attr_get_logger_features - value for logger
4123  *                                                 supported features
4124  * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
4125  * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
4126  * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
4127  * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
4128  *
4129  * enum values are used for NL attributes for data used by
4130  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
4131  */
4132 enum qca_wlan_vendor_attr_get_logger_features {
4133 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
4134 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
4135 
4136 	/* keep last */
4137 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
4138 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
4139 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
4140 };
4141 
4142 /**
4143  * enum qca_wlan_vendor_attr_link_properties - link properties
4144  *
4145  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
4146  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
4147  *	specify the number of spatial streams negotiated
4148  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
4149  *	to specify negotiated rate flags i.e. ht, vht and channel width
4150  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
4151  *	specify the operating frequency
4152  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
4153  * (STA / AP ) for the connected link.
4154  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
4155  * &struct nl80211_sta_flag_update for the respective connected link. MAC
4156  * address of the peer represented by
4157  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
4158  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
4159  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
4160  */
4161 enum qca_wlan_vendor_attr_link_properties {
4162 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
4163 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
4164 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
4165 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
4166 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR  = 4,
4167 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS  = 5,
4168 
4169 	/* KEEP LAST */
4170 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
4171 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
4172 		QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
4173 };
4174 
4175 /**
4176  * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
4177  *
4178  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
4179  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
4180  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
4181  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
4182  *
4183  * enum values are used for NL attributes for data used by
4184  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
4185  */
4186 enum qca_wlan_vendor_attr_nd_offload {
4187 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
4188 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
4189 
4190 	/* Keep last */
4191 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
4192 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
4193 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
4194 };
4195 
4196 /**
4197  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
4198  *
4199  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
4200  *	management offload, a mechanism where the station's firmware
4201  *	does the exchange with the AP to establish the temporal keys
4202  *	after roaming, rather than having the user space wpa_supplicant do it.
4203  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
4204  *	band selection based on channel selection results.
4205  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
4206  *	simultaneous off-channel operations.
4207  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
4208  *	Listen offload; a mechanism where the station's firmware takes care of
4209  *	responding to incoming Probe Request frames received from other P2P
4210  *	Devices whilst in Listen state, rather than having the user space
4211  *	wpa_supplicant do it. Information from received P2P requests are
4212  *	forwarded from firmware to host whenever the host processor wakes up.
4213  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
4214  *	specific features.
4215  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
4216  *	features.
4217  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
4218  *	specific features only. If a Device sets this bit but not the
4219  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
4220  *	this Device may not support all OCE AP functionalities but can support
4221  *	only OCE STA-CFON functionalities.
4222  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
4223  *	managed regulatory.
4224  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
4225  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
4226  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
4227  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
4228  *	and applying thermal configuration through
4229  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
4230  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
4231  *	userspace.
4232  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
4233  *	With Adaptive 11r feature, access points advertise the vendor
4234  *	specific IEs and MDE but do not include FT AKM in the RSNE.
4235  *	The Adaptive 11r supported stations are expected to identify
4236  *	such vendor specific IEs and connect to the AP in FT mode though
4237  *	the profile is configured in non-FT mode.
4238  *	The driver-based SME cases also need to have this support for
4239  *	Adaptive 11r to handle the connection and roaming scenarios.
4240  *	This flag indicates the support for the same to the user space.
4241  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
4242  *	concurrent network sessions on different Wi-Fi Bands. This feature
4243  *	capability is attributed to the hardware's capability to support
4244  *	the same (e.g., DBS).
4245  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
4246  *	responses for the respective TWT operations are asynchronous (separate)
4247  *	event message) from the driver. If not specified, the responses are
4248  *	synchronous (in vendor command reply) to the request. Each TWT
4249  *	operation is specifically mentioned (against its respective)
4250  *	documentation) to support either of these or both modes.
4251  * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
4252  * 	that the driver requires add/del virtual interface path using the
4253  *	generic nl80211 commands for NDP interface create/delete and to
4254  *	register/unregister the netdev instead of creating/deleting the NDP
4255  *	interface using the vendor commands
4256  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
4257  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
4258  * 	(5.12 version onward), interface creation/deletion is not allowed using
4259  * 	vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
4260  * 	during the register/unregister of netdev. Create and delete NDP
4261  * 	interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
4262  * 	commands respectively if the driver advertises this capability set.
4263  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
4264  *	station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
4265  *	set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
4266  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
4267  *	mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
4268  *	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
4269  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
4270  *	station mode supports secure RTT measurement exchange. If
4271  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4272  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
4273  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
4274  *	mode supports secure RTT measurement exchange. If
4275  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4276  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
4277  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
4278  *	the device in station mode supports protection of range negotiation and
4279  *	measurement management frames. If
4280  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4281  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
4282  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
4283  *	the device in AP mode supports protection of range negotiation and
4284  *	measurement management frames. If
4285  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4286  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
4287  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
4288  */
4289 enum qca_wlan_vendor_features {
4290 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
4291 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
4292 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
4293 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
4294 	QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
4295 	QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
4296 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
4297 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
4298 	QCA_WLAN_VENDOR_FEATURE_TWT = 8,
4299 	QCA_WLAN_VENDOR_FEATURE_11AX = 9,
4300 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
4301 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
4302 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
4303 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
4304 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
4305 	QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
4306 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA		= 16,
4307 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP		= 17,
4308 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA		= 18,
4309 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP		= 19,
4310 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
4311 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
4312 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
4313 };
4314 
4315 /**
4316  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
4317  *     conditional channel switch
4318  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
4319  *     value
4320  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
4321  * frequency list (an array of u32 values in host byte order)
4322  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
4323  *     conditional switch (u32)- 0: Success, Non-zero: Failure
4324  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
4325  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
4326  */
4327 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
4328 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
4329 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
4330 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
4331 
4332 	/* Keep Last */
4333 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
4334 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
4335 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
4336 };
4337 
4338 /**
4339  * enum wifi_logger_supported_features - values for supported logger features
4340  * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
4341  * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
4342  * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
4343  * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
4344  * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
4345  * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
4346  * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
4347  * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
4348  */
4349 enum wifi_logger_supported_features {
4350 	WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
4351 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
4352 	WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
4353 	WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
4354 	WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
4355 	WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
4356 	WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
4357 	WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
4358 	WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
4359 };
4360 
4361 /**
4362  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
4363  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4364  *
4365  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
4366  * Used with event to notify the primary channel number selected in ACS
4367  * operation.
4368  * Note: If both the driver and user-space application supports the 6 GHz band,
4369  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
4370  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
4371  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4372  * is still used if either of the driver or user space application doesn't
4373  * support the 6 GHz band.
4374  *
4375  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
4376  * Used with event to notify the secondary channel number selected in ACS
4377  * operation.
4378  * Note: If both the driver and user-space application supports the 6 GHz band,
4379  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
4380  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
4381  * To maintain backward compatibility,
4382  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
4383  * the driver or user space application doesn't support 6 GHz band.
4384  *
4385  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
4386  * (a) Used with command to configure hw_mode from
4387  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
4388  * (b) Also used with event to notify the hw_mode of selected primary channel
4389  * in ACS operation.
4390  *
4391  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
4392  * Used with command to configure ACS operation for HT mode.
4393  * Disable (flag attribute not present) - HT disabled and
4394  * Enable (flag attribute present) - HT enabled.
4395  *
4396  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
4397  * Used with command to configure ACS operation for HT40 mode.
4398  * Disable (flag attribute not present) - HT40 disabled and
4399  * Enable (flag attribute present) - HT40 enabled.
4400  *
4401  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
4402  * Used with command to configure ACS operation for VHT mode.
4403  * Disable (flag attribute not present) - VHT disabled and
4404  * Enable (flag attribute present) - VHT enabled.
4405  *
4406  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
4407  * mandatory with event.
4408  * If specified in command path, ACS operation is configured with the given
4409  * channel width (in MHz).
4410  * In event path, specifies the channel width of the primary channel selected.
4411  *
4412  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
4413  * Used with command to configure channel list using an array of
4414  * channel numbers (u8).
4415  * Note: If both the driver and user-space application supports the 6 GHz band,
4416  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
4417  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
4418  *
4419  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
4420  * Used with event to notify the VHT segment 0 center channel number selected in
4421  * ACS operation.
4422  * Note: If both the driver and user-space application supports the 6 GHz band,
4423  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
4424  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
4425  * To maintain backward compatibility,
4426  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
4427  * the driver or user space application doesn't support the 6 GHz band.
4428  *
4429  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
4430  * Used with event to notify the VHT segment 1 center channel number selected in
4431  * ACS operation.
4432  * Note: If both the driver and user-space application supports the 6 GHz band,
4433  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
4434  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
4435  * To maintain backward compatibility,
4436  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
4437  * the driver or user space application doesn't support the 6 GHz band.
4438  *
4439  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
4440  * Used with command to configure the channel list using an array of channel
4441  * center frequencies in MHz (u32).
4442  * Note: If both the driver and user-space application supports the 6 GHz band,
4443  * the driver first parses the frequency list and if it fails to get a frequency
4444  * list, parses the channel list specified using
4445  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
4446  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
4447  *
4448  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
4449  * Used with event to notify the primary channel center frequency (MHz) selected
4450  * in ACS operation.
4451  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4452  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
4453  *
4454  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
4455  * Used with event to notify the secondary channel center frequency (MHz)
4456  * selected in ACS operation.
4457  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4458  * includes this attribute along with
4459  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
4460  *
4461  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
4462  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
4463  * selected in ACS operation.
4464  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4465  * includes this attribute along with
4466  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
4467  *
4468  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
4469  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
4470  * selected in ACS operation.
4471  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4472  * includes this attribute along with
4473  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
4474  *
4475  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
4476  * Used with command to notify the driver of EDMG request for ACS
4477  * operation.
4478  *
4479  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
4480  * Used with event to notify the EDMG channel number selected in ACS
4481  * operation.
4482  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4483  *
4484  * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
4485  * Used with event to notify the puncture pattern selected in ACS operation.
4486  * Encoding for this attribute will follow the convention used in the Disabled
4487  * Subchannel Bitmap field of the EHT Operation IE.
4488  *
4489  * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
4490  * Used with command to configure ACS operation for EHT mode.
4491  * Disable (flag attribute not present) - EHT disabled and
4492  * Enable (flag attribute present) - EHT enabled.
4493  *
4494  * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
4495  * Used with command to configure how older scan can be considered for ACS
4496  * scoring. In case scan was performed on partial set of channels configured
4497  * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
4498  * (in ms), then scan only remaining channels.
4499  */
4500 enum qca_wlan_vendor_attr_acs_offload {
4501 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
4502 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
4503 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
4504 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
4505 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
4506 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
4507 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
4508 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
4509 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
4510 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
4511 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
4512 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
4513 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
4514 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
4515 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
4516 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
4517 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
4518 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
4519 	QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
4520 	QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
4521 	QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
4522 
4523 	/* keep last */
4524 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
4525 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
4526 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
4527 };
4528 
4529 /**
4530  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
4531  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4532  *
4533  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
4534  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
4535  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
4536  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
4537  * @QCA_ACS_MODE_IEEE80211ANY: all modes
4538  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
4539  */
4540 enum qca_wlan_vendor_acs_hw_mode {
4541 	QCA_ACS_MODE_IEEE80211B,
4542 	QCA_ACS_MODE_IEEE80211G,
4543 	QCA_ACS_MODE_IEEE80211A,
4544 	QCA_ACS_MODE_IEEE80211AD,
4545 	QCA_ACS_MODE_IEEE80211ANY,
4546 	QCA_ACS_MODE_IEEE80211AX,
4547 };
4548 
4549 /**
4550  * enum qca_access_policy - access control policy
4551  *
4552  * Access control policy is applied on the configured IE
4553  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
4554  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
4555  *
4556  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
4557  *»       with the specific configuration (IE) set, i.e. allow all the
4558  *»       connections which do not match the configuration.
4559  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
4560  *»       with the specific configuration (IE) set, i.e. deny all the
4561  *»       connections which do not match the configuration.
4562  */
4563 enum qca_access_policy {
4564 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
4565 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
4566 };
4567 
4568 /**
4569  * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
4570  *
4571  * The valid values for the ignore assoc disallowed
4572  *
4573  * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
4574  * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
4575  *
4576  */
4577 enum qca_ignore_assoc_disallowed {
4578 	QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
4579 	QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
4580 };
4581 
4582 /* Attributes for data used by
4583  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
4584  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
4585  */
4586 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
4587 		QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
4588 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
4589 		QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
4590 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
4591 		QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
4592 enum qca_wlan_vendor_attr_config {
4593 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
4594 	/*
4595 	 * Unsigned 32-bit value to set the DTIM period.
4596 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
4597 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
4598 	 * DTIM beacons.
4599 	 */
4600 	QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
4601 	/*
4602 	 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
4603 	 * used to calculate statistics like average the TSF offset or average
4604 	 * number of frame leaked.
4605 	 * For instance, upon Beacon frame reception:
4606 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
4607 	 * For instance, when evaluating leaky APs:
4608 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
4609 	 */
4610 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
4611 	/*
4612 	 * Unsigned 32-bit value to configure guard time, i.e., when
4613 	 * implementing IEEE power management based on frame control PM bit, how
4614 	 * long the driver waits before shutting down the radio and after
4615 	 * receiving an ACK frame for a Data frame with PM bit set.
4616 	 */
4617 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
4618 	/* Unsigned 32-bit value to change the FTM capability dynamically */
4619 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
4620 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
4621 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
4622 	/*
4623 	 * Unsigned 32-bit value to configure the number of continuous
4624 	 * Beacon Miss which shall be used by the firmware to penalize
4625 	 * the RSSI.
4626 	 */
4627 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
4628 	/*
4629 	 * Unsigned 8-bit value to configure the channel avoidance indication
4630 	 * behavior. Firmware to send only one indication and ignore duplicate
4631 	 * indications when set to avoid multiple Apps wakeups.
4632 	 */
4633 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
4634 	/*
4635 	 * 8-bit unsigned value to configure the maximum TX MPDU for
4636 	 * aggregation.
4637 	 */
4638 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
4639 	/*
4640 	 * 8-bit unsigned value to configure the maximum RX MPDU for
4641 	 * aggregation.
4642 	 */
4643 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
4644 	/*
4645 	 * 8-bit unsigned value to configure the Non aggregrate/11g sw
4646 	 * retry threshold (0 disable, 31 max).
4647 	 */
4648 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
4649 	/*
4650 	 * 8-bit unsigned value to configure the aggregrate sw
4651 	 * retry threshold (0 disable, 31 max).
4652 	 */
4653 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
4654 	/*
4655 	 * 8-bit unsigned value to configure the MGMT frame
4656 	 * retry threshold (0 disable, 31 max).
4657 	 */
4658 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
4659 	/*
4660 	 * 8-bit unsigned value to configure the CTRL frame
4661 	 * retry threshold (0 disable, 31 max).
4662 	 */
4663 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
4664 	/*
4665 	 * 8-bit unsigned value to configure the propagation delay for
4666 	 * 2G/5G band (0~63, units in us)
4667 	 */
4668 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
4669 	/*
4670 	 * Unsigned 32-bit value to configure the number of unicast TX fail
4671 	 * packet count. The peer is disconnected once this threshold is
4672 	 * reached.
4673 	 */
4674 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
4675 	/*
4676 	 * Attribute used to set scan default IEs to the driver.
4677 	 *
4678 	 * These IEs can be used by scan operations that will be initiated by
4679 	 * the driver/firmware.
4680 	 *
4681 	 * For further scan requests coming to the driver, these IEs should be
4682 	 * merged with the IEs received along with scan request coming to the
4683 	 * driver. If a particular IE is present in the scan default IEs but not
4684 	 * present in the scan request, then that IE should be added to the IEs
4685 	 * sent in the Probe Request frames for that scan request.
4686 	 */
4687 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
4688 	/* Unsigned 32-bit attribute for generic commands */
4689 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
4690 	/* Unsigned 32-bit value attribute for generic commands */
4691 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
4692 	/* Unsigned 32-bit data attribute for generic command response */
4693 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
4694 	/*
4695 	 * Unsigned 32-bit length attribute for
4696 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4697 	 */
4698 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
4699 	/*
4700 	 * Unsigned 32-bit flags attribute for
4701 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4702 	 */
4703 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
4704 	/*
4705 	 * Unsigned 32-bit, defining the access policy.
4706 	 * See enum qca_access_policy. Used with
4707 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
4708 	 */
4709 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
4710 	/*
4711 	 * Sets the list of full set of IEs for which a specific access policy
4712 	 * has to be applied. Used along with
4713 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
4714 	 * Zero length payload can be used to clear this access constraint.
4715 	 */
4716 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
4717 	/*
4718 	 * Unsigned 32-bit, specifies the interface index (netdev) for which the
4719 	 * corresponding configurations are applied. If the interface index is
4720 	 * not specified, the configurations are attributed to the respective
4721 	 * wiphy.
4722 	 */
4723 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
4724 	/*
4725 	 * 8-bit unsigned value to trigger QPower:
4726 	 * 1-Enable, 0-Disable
4727 	 */
4728 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
4729 	/*
4730 	 * 8-bit unsigned value to configure the driver and below layers to
4731 	 * ignore the assoc disallowed set by APs while connecting
4732 	 * 1-Ignore, 0-Don't ignore
4733 	 */
4734 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
4735 	/*
4736 	 * 32-bit unsigned value to trigger antenna diversity features:
4737 	 * 1-Enable, 0-Disable
4738 	 */
4739 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
4740 	/* 32-bit unsigned value to configure specific chain antenna */
4741 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
4742 	/*
4743 	 * 32-bit unsigned value to trigger cycle selftest
4744 	 * 1-Enable, 0-Disable
4745 	 */
4746 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
4747 	/*
4748 	 * 32-bit unsigned to configure the cycle time of selftest
4749 	 * the unit is micro-second
4750 	 */
4751 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
4752 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
4753 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
4754 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
4755 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
4756 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
4757 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
4758 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
4759 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
4760 	/* 6-byte MAC address to point out the specific peer */
4761 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
4762 	/* 32-bit unsigned value to set window size for specific peer */
4763 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
4764 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
4765 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
4766 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
4767 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
4768 	/*
4769 	 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
4770 	 * station device while in disconnect state. The attribute use the
4771 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
4772 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
4773 	 * 10 MHz channel width, the station will not connect to a BSS using 20
4774 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
4775 	 * clear this constraint.
4776 	 */
4777 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
4778 	/*
4779 	 * 32-bit unsigned value to configure the propagation absolute delay
4780 	 * for 2G/5G band (units in us)
4781 	 */
4782 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
4783 	/* 32-bit unsigned value to set probe period */
4784 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
4785 	/* 32-bit unsigned value to set stay period */
4786 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
4787 	/* 32-bit unsigned value to set snr diff */
4788 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
4789 	/* 32-bit unsigned value to set probe dwell time */
4790 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
4791 	/* 32-bit unsigned value to set mgmt snr weight */
4792 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
4793 	/* 32-bit unsigned value to set data snr weight */
4794 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
4795 	/* 32-bit unsigned value to set ack snr weight */
4796 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
4797 	/*
4798 	 * 32-bit unsigned value to configure the listen interval.
4799 	 * This is in units of beacon intervals. This configuration alters
4800 	 * the negotiated listen interval with the AP during the connection.
4801 	 * It is highly recommended to configure a value less than or equal to
4802 	 * the one negotiated during the association. Configuring any greater
4803 	 * value can have adverse effects (frame loss, AP disassociating STA,
4804 	 * etc.).
4805 	 */
4806 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
4807 	/*
4808 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
4809 	 * disable operations that would cause the AP/GO to leave its operating
4810 	 * channel.
4811 	 *
4812 	 * This will restrict the scans to the AP/GO operating channel and the
4813 	 * channels of the other band, if DBS is supported.A STA/CLI interface
4814 	 * brought up after this setting is enabled, will be restricted to
4815 	 * connecting to devices only on the AP/GO interface's operating channel
4816 	 * or on the other band in DBS case. P2P supported channel list is
4817 	 * modified, to only include AP interface's operating-channel and the
4818 	 * channels of the other band if DBS is supported.
4819 	 *
4820 	 * These restrictions are only applicable as long as the AP/GO interface
4821 	 * is alive. If the AP/GO interface is brought down then this
4822 	 * setting/restriction is forgotten.
4823 	 *
4824 	 * If this variable is set on an AP/GO interface while a multi-channel
4825 	 * concurrent session is active, it has no effect on the operation of
4826 	 * the current interfaces, other than restricting the scan to the AP/GO
4827 	 * operating channel and the other band channels if DBS is supported.
4828 	 * However, if the STA is brought down and restarted then the new STA
4829 	 * connection will either be formed on the AP/GO channel or on the
4830 	 * other band in a DBS case. This is because of the scan being
4831 	 * restricted on these channels as mentioned above.
4832 	 *
4833 	 * 1-Disable offchannel operations, 0-Enable offchannel operations.
4834 	 */
4835 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
4836 
4837 	/*
4838 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
4839 	 * on an interface.
4840 	 * 1 - Enable , 0 - Disable.
4841 	 */
4842 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
4843 
4844 	/*
4845 	 * 8 bit unsigned value to globally enable/disable scan
4846 	 * 1 - Enable, 0 - Disable.
4847 	 */
4848 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
4849 
4850 	/* 8-bit unsigned value to set the total beacon miss count */
4851 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
4852 
4853 	/*
4854 	 * Unsigned 32-bit value to configure the number of continuous
4855 	 * Beacon Miss which shall be used by the firmware to penalize
4856 	 * the RSSI for BTC.
4857 	 */
4858 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
4859 
4860 	/*
4861 	 * 8-bit unsigned value to configure the driver and below layers to
4862 	 * enable/disable all fils features.
4863 	 * 0-enable, 1-disable
4864 	 */
4865 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
4866 
4867 	/* 16-bit unsigned value to configure the level of WLAN latency
4868 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
4869 	 */
4870 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
4871 
4872 	/*
4873 	 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
4874 	 * the connect interface. Exclusively used for the scenarios where the
4875 	 * device is used as a test bed device with special functionality and
4876 	 * not recommended for production. This helps driver to not validate the
4877 	 * RSNE passed from user space and thus allow arbitrary IE data to be
4878 	 * used for testing purposes.
4879 	 * 1-enable, 0-disable.
4880 	 * Applications set/reset this configuration. If not reset, this
4881 	 * parameter remains in use until the driver is unloaded.
4882 	 */
4883 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
4884 
4885 	/*
4886 	 * 8-bit unsigned value to trigger green Tx power saving.
4887 	 * 1-Enable, 0-Disable
4888 	 */
4889 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
4890 
4891 	/*
4892 	 * Attribute to configure disconnect IEs to the driver.
4893 	 * This carries an array of unsigned 8-bit characters.
4894 	 *
4895 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
4896 	 * frame.
4897 	 * These IEs are expected to be considered only for the next
4898 	 * immediate disconnection (disassoc/deauth frame) originated by
4899 	 * the DUT, irrespective of the entity (user space/driver/firmware)
4900 	 * triggering the disconnection.
4901 	 * The host drivers are not expected to use the IEs set through
4902 	 * this interface for further disconnections after the first immediate
4903 	 * disconnection initiated post the configuration.
4904 	 * If the IEs are also updated through cfg80211 interface (after the
4905 	 * enhancement to cfg80211_disconnect), host driver is expected to
4906 	 * take the union of IEs from both of these interfaces and send in
4907 	 * further disassoc/deauth frames.
4908 	 */
4909 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
4910 
4911 	/* 8-bit unsigned value for ELNA bypass.
4912 	 * 0 - Disable eLNA bypass.
4913 	 * 1 - Enable eLNA bypass.
4914 	 * 2 - Reset eLNA bypass configuration, the driver should
4915 	 *	revert to the default configuration of eLNA bypass.
4916 	 */
4917 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
4918 
4919 	/* 8-bit unsigned value. This attribute enables/disables the host driver
4920 	 * to send the Beacon Report response with failure reason for the
4921 	 * scenarios where STA cannot honor the Beacon report request from AP.
4922 	 * 1-Enable, 0-Disable.
4923 	 */
4924 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
4925 
4926 	/* 8-bit unsigned value. This attribute enables/disables the host driver
4927 	 * to send roam reason information in the reassociation request to the
4928 	 * AP. 1-Enable, 0-Disable.
4929 	 */
4930 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
4931 
4932 	/* 32-bit unsigned value to configure different PHY modes to the
4933 	 * driver/firmware. The possible values are defined in
4934 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
4935 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
4936 	 * the driver.
4937 	 */
4938 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
4939 
4940 	/* 8-bit unsigned value to configure the maximum supported channel width
4941 	 * for STA mode. If this value is configured when STA is in connected
4942 	 * state, it should not exceed the negotiated channel width. If it is
4943 	 * configured when STA is in disconnected state, the configured value
4944 	 * will take effect for the next immediate connection.
4945 	 * Possible values are:
4946 	 *   NL80211_CHAN_WIDTH_20
4947 	 *   NL80211_CHAN_WIDTH_40
4948 	 *   NL80211_CHAN_WIDTH_80
4949 	 *   NL80211_CHAN_WIDTH_80P80
4950 	 *   NL80211_CHAN_WIDTH_160
4951 	 */
4952 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
4953 
4954 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
4955 	 * This attribute is only applicable for STA mode. When dynamic
4956 	 * bandwidth adjustment is disabled, STA will use static channel width
4957 	 * the value of which is negotiated during connection.
4958 	 * 1-enable (default), 0-disable
4959 	 */
4960 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
4961 
4962 	/* 8-bit unsigned value to configure the maximum number of subframes of
4963 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
4964 	 * it is decided by hardware.
4965 	 */
4966 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
4967 
4968 	/* 8-bit unsigned value to configure the maximum number of subframes of
4969 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
4970 	 * it is decided by hardware.
4971 	 */
4972 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
4973 
4974 	/* 8-bit unsigned value. This attribute is used to dynamically
4975 	 * enable/disable the LDPC capability of the device. When configured in
4976 	 * the disconnected state, the updated configuration will be considered
4977 	 * for the immediately following connection attempt. If this
4978 	 * configuration is modified while the device is in the connected state,
4979 	 * the LDPC TX will be updated with this configuration immediately,
4980 	 * while the LDPC RX configuration update will take place starting from
4981 	 * the subsequent association attempt.
4982 	 * 1-Enable, 0-Disable.
4983 	 */
4984 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
4985 
4986 	/* 8-bit unsigned value. This attribute is used to dynamically
4987 	 * enable/disable the TX STBC capability of the device. When configured
4988 	 * in the disconnected state, the updated configuration will be
4989 	 * considered for the immediately following connection attempt. If the
4990 	 * connection is formed with TX STBC enabled and if this configuration
4991 	 * is disabled during that association, the TX will be impacted
4992 	 * immediately. Further connection attempts will disable TX STBC.
4993 	 * However, enabling the TX STBC for a connected session with disabled
4994 	 * capability is not allowed and will fail.
4995 	 * 1-Enable, 0-Disable.
4996 	 */
4997 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
4998 
4999 	/* 8-bit unsigned value. This attribute is used to dynamically
5000 	 * enable/disable the RX STBC capability of the device. When configured
5001 	 * in the disconnected state, the updated configuration will be
5002 	 * considered for the immediately following connection attempt. If the
5003 	 * configuration is modified in the connected state, there will be no
5004 	 * impact for the current association, but further connection attempts
5005 	 * will use the updated configuration.
5006 	 * 1-Enable, 0-Disable.
5007 	 */
5008 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
5009 
5010 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5011 	 * the number of spatial streams. When configured in the disconnected
5012 	 * state, the updated configuration will be considered for the
5013 	 * immediately following connection attempt. If the NSS is updated after
5014 	 * the connection, the updated NSS value is notified to the peer using
5015 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
5016 	 * frame. The updated NSS value after the connection shall not be
5017 	 * greater than the one negotiated during the connection. Any such
5018 	 * higher value configuration shall be returned with a failure.
5019 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
5020 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
5021 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
5022 	 * configure the asymmetric NSS configuration (such as 1X2).
5023 	 */
5024 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
5025 
5026 	/*
5027 	 * 8-bit unsigned value to trigger Optimized Power Management:
5028 	 * 1-Enable, 0-Disable
5029 	 */
5030 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
5031 
5032 	/* 8-bit unsigned value. This attribute takes the QOS/access category
5033 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5034 	 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
5035 	 * is invalid for this attribute. This will override the DSCP value
5036 	 * configured in the frame with the intention to only upgrade the QOS.
5037 	 * That said, it is not intended to downgrade the QOS for the frames.
5038 	 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
5039 	 * to disable.
5040 	 */
5041 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
5042 
5043 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5044 	 * the number of chains to be used for transmitting data. This
5045 	 * configuration is allowed only when in connected state and will be
5046 	 * effective until disconnected. The driver rejects this configuration
5047 	 * if the number of spatial streams being used in the current connection
5048 	 * cannot be supported by this configuration.
5049 	 */
5050 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
5051 
5052 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5053 	 * the number of chains to be used for receiving data. This
5054 	 * configuration is allowed only when in connected state and will be
5055 	 * effective until disconnected. The driver rejects this configuration
5056 	 * if the number of spatial streams being used in the current connection
5057 	 * cannot be supported by this configuration.
5058 	 */
5059 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
5060 
5061 	/* 8-bit unsigned value to configure ANI setting type.
5062 	 * See &enum qca_wlan_ani_setting for possible values.
5063 	 */
5064 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
5065 	/* 32-bit signed value to configure ANI level. This is used when
5066 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
5067 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
5068 	 * is invalid, the driver will return a failure.
5069 	 */
5070 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
5071 
5072 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5073 	 * the number of spatial streams used for transmitting the data. When
5074 	 * configured in the disconnected state, the configured value will
5075 	 * be considered for the following connection attempt.
5076 	 * If the NSS is updated after the connection, the updated NSS value
5077 	 * is notified to the peer using the Operating Mode Notification/Spatial
5078 	 * Multiplexing Power Save frame.
5079 	 * The TX NSS value configured after the connection shall not be greater
5080 	 * than the value negotiated during the connection. Any such higher
5081 	 * value configuration shall be treated as invalid configuration by
5082 	 * the driver. This attribute shall be configured along with
5083 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
5084 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5085 	 * configuration (such as 1X2).
5086 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5087 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
5088 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
5089 	 */
5090 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
5091 
5092 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5093 	 * the number of spatial streams used for receiving the data. When
5094 	 * configured in the disconnected state, the configured value will
5095 	 * be considered for the following connection attempt.
5096 	 * If the NSS is updated after the connection, the updated NSS value
5097 	 * is notified to the peer using the Operating Mode Notification/Spatial
5098 	 * Multiplexing Power Save frame.
5099 	 * The RX NSS value configured after the connection shall not be greater
5100 	 * than the value negotiated during the connection. Any such higher
5101 	 * value configuration shall be treated as invalid configuration by
5102 	 * the driver. This attribute shall be configured along with
5103 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
5104 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5105 	 * configuration (such as 1X2).
5106 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5107 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
5108 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
5109 	 */
5110 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
5111 
5112 	/*
5113 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
5114 	 * specified interface is the primary STA interface when there are more
5115 	 * than one STA interfaces concurrently active.
5116 	 *
5117 	 * This configuration helps the firmware/hardware to support certain
5118 	 * features (e.g., roaming) on this primary interface, if the same
5119 	 * cannot be supported on the concurrent STA interfaces simultaneously.
5120 	 *
5121 	 * This configuration is only applicable for a single STA interface on
5122 	 * a device and gives the priority for it only over other concurrent STA
5123 	 * interfaces.
5124 	 *
5125 	 * If the device is a multi wiphy/soc, this configuration applies to a
5126 	 * single STA interface across the wiphys.
5127 	 *
5128 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
5129 	 */
5130 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
5131 
5132 	/*
5133 	 * 8-bit unsigned value. This attribute can be used to configure the
5134 	 * driver to enable/disable FT-over-DS feature. Possible values for
5135 	 * this attribute are 1-Enable and 0-Disable.
5136 	 */
5137 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
5138 
5139 	/*
5140 	 * 8-bit unsigned value. This attribute can be used to configure the
5141 	 * firmware to enable/disable ARP/NS offload feature. Possible values
5142 	 * for this attribute are 0-Disable and 1-Enable.
5143 	 *
5144 	 * This attribute is only applicable for STA/P2P-Client interface,
5145 	 * and is optional, default behavior is APR/NS offload Enable.
5146 	 *
5147 	 * This attribute can be set in disconncted and connected state, and
5148 	 * will restore to default behavior if interface is closed.
5149 	 */
5150 	QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
5151 
5152 	/*
5153 	 * 8-bit unsigned value. This attribute can be used to configure the
5154 	 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
5155 	 * for this attribute are defined in the enum qca_dbam_config.
5156 	 */
5157 	QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
5158 
5159 	/* keep last */
5160 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
5161 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
5162 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
5163 };
5164 
5165 /**
5166  * enum qca_dbam_config - Specifies DBAM config mode
5167  * @QCA_DBAM_DISABLE: Firmware disables DBAM
5168  * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
5169  * internal criteria are met.
5170  * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
5171  */
5172 enum qca_dbam_config {
5173 	QCA_DBAM_DISABLE = 0,
5174 	QCA_DBAM_ENABLE = 1,
5175 	QCA_DBAM_FORCE_ENABLE = 2,
5176 };
5177 
5178 /**
5179  * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
5180  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
5181  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
5182  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
5183  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
5184  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
5185  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
5186  */
5187 enum qca_wlan_vendor_attr_wifi_logger_start {
5188 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5189 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5190 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5191 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5192 	/* keep last */
5193 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5194 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
5195 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5196 };
5197 
5198 /*
5199  * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
5200  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
5201  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
5202  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
5203  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
5204  */
5205 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
5206 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
5207 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
5208 	/* keep last */
5209 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
5210 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
5211 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
5212 };
5213 
5214 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
5215 /**
5216  * enum wlan_offloaded_packets_control - control commands
5217  * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
5218  * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
5219  *
5220  */
5221 enum wlan_offloaded_packets_control {
5222 	WLAN_START_OFFLOADED_PACKETS = 1,
5223 	WLAN_STOP_OFFLOADED_PACKETS  = 2
5224 };
5225 
5226 /**
5227  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
5228  *
5229  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
5230  *      the offloaded data.
5231  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
5232  *      data.
5233  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
5234  *      indication.
5235  */
5236 enum qca_wlan_vendor_attr_data_offload_ind {
5237 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
5238 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
5239 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
5240 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
5241 
5242 	/* keep last */
5243 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
5244 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
5245 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
5246 };
5247 
5248 /**
5249  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
5250  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
5251  */
5252 enum qca_wlan_vendor_attr_offloaded_packets {
5253 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
5254 	/* Takes valid value from the enum
5255 	 * qca_wlan_offloaded_packets_sending_control
5256 	 * Unsigned 32-bit value
5257 	 */
5258 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
5259 	/* Unsigned 32-bit value */
5260 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
5261 	/* array of u8 len: Max packet size */
5262 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
5263 	/* 6-byte MAC address used to represent source MAC address */
5264 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
5265 	/* 6-byte MAC address used to represent destination MAC address */
5266 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
5267 	/* Unsigned 32-bit value, in milli seconds */
5268 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
5269 	/* This optional unsigned 16-bit attribute is used for specifying
5270 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
5271 	 */
5272 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
5273 
5274 	/* keep last */
5275 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
5276 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
5277 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
5278 };
5279 
5280 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS  */
5281 
5282 /**
5283  * enum qca_wlan_rssi_monitoring_control - rssi control commands
5284  * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
5285  * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
5286  * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
5287  */
5288 enum qca_wlan_rssi_monitoring_control {
5289 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
5290 	QCA_WLAN_RSSI_MONITORING_START,
5291 	QCA_WLAN_RSSI_MONITORING_STOP,
5292 };
5293 
5294 /**
5295  * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
5296  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
5297  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
5298  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
5299  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
5300  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
5301  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
5302  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
5303  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
5304  */
5305 enum qca_wlan_vendor_attr_rssi_monitoring {
5306 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
5307 
5308 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
5309 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
5310 
5311 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
5312 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
5313 
5314 	/* attributes to be used/received in callback */
5315 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
5316 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
5317 
5318 	/* keep last */
5319 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
5320 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
5321 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
5322 };
5323 
5324 /**
5325  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
5326  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5327  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
5328  * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
5329  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
5330  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
5331  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
5332  * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
5333  * address
5334  * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
5335  * created
5336  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
5337  * NCS_SK_TYPE/PMK/SCID instead
5338  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
5339  * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
5340  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
5341  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
5342  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
5343  * code: accept/reject
5344  * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
5345  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
5346  * driver
5347  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
5348  * driver
5349  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
5350  * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
5351  * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
5352  * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
5353  * PMKID
5354  * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
5355  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
5356  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
5357  * update:
5358  *     BIT_0: NSS Update
5359  *     BIT_1: Channel list update
5360  * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
5361  * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
5362  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
5363  *     0:20 MHz,
5364  *     1:40 MHz,
5365  *     2:80 MHz,
5366  *     3:160 MHz
5367  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
5368  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
5369  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
5370  * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
5371  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
5372  * transport port used by NDP.
5373  * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
5374  * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
5375  * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
5376  * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
5377  * NDP remote peer supports NAN NDPE. 1:support 0:not support
5378  * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
5379  * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
5380  * A lower-case representation of the Service Name shall be used to
5381  * calculate the Service ID.
5382  * Array of u8: length is 6 bytes
5383  * This attribute is used and optional for ndp indication.
5384 */
5385 enum qca_wlan_vendor_attr_ndp_params {
5386 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
5387 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
5388 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
5389 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
5390 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
5391 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
5392 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
5393 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
5394 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
5395 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
5396 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
5397 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
5398 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
5399 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
5400 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
5401 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
5402 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
5403 	QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
5404 	QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
5405 	QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
5406 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
5407 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
5408 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
5409 	QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
5410 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
5411 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
5412 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
5413 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
5414 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
5415 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
5416 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
5417 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
5418 
5419 	/* keep last */
5420 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
5421 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
5422 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
5423 };
5424 
5425 /**
5426  * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
5427  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5428  * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
5429  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
5430  * data path interface.
5431  * This command was initially designed to both create and start a NAN
5432  * data path interface. However, changes to Linux 5.12 no longer allow
5433  * interface creation via vendor commands. When the driver advertises
5434  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5435  * userspace must explicitly first create the interface using
5436  * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
5437  * to start the interface.
5438  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
5439  * data path interface.
5440  * This command was initially designed to both stop and delete a NAN
5441  * data path interface. However, changes to Linux 5.12 no longer allow
5442  * interface deletion via vendor commands. When the driver advertises
5443  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5444  * userspace must explicitly delete the interface using
5445  * NL80211_CMD_DEL_INTERFACE after calling this command.
5446  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
5447  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
5448  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
5449  * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
5450  * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
5451  * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
5452  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
5453  * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
5454  * being received
5455  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
5456  * update
5457  */
5458 enum qca_wlan_ndp_sub_cmd {
5459 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
5460 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
5461 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
5462 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
5463 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
5464 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
5465 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
5466 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
5467 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
5468 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
5469 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
5470 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
5471 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
5472 };
5473 
5474 /**
5475  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5476  * information. These attributes are sent as part of
5477  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5478  * attributes correspond to a single channel.
5479  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
5480  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5481  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
5482  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5483  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
5484  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
5485  * regulatory transmission power
5486  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
5487  * transmission power
5488  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
5489  * transmission power
5490  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
5491  * class id
5492  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
5493  * antenna gain in dbm
5494  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
5495  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
5496  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
5497  * segment 0 in center freq in MHz.
5498  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
5499  * segment 1 in center freq in MHz.
5500  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
5501  * flag indicating the AP power modes supported by the channel, as given by
5502  * enum qca_wlan_vendor_external_acs_chan_power_level.
5503  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
5504  * attributes for each power mode. It takes attr as defined in enum
5505  * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5506  *
5507  */
5508 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5509 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5510 
5511 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5512 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5513 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5514 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5515 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5516 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5517 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5518 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5519 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5520 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
5521 	/*
5522 	 * A bitmask (u32) with flags specified in
5523 	 * enum qca_wlan_vendor_channel_prop_flags_2.
5524 	 */
5525 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
5526 
5527 	/*
5528 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5529 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5530 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5531 	 * along with
5532 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5533 	 *
5534 	 * If both the driver and user-space application supports the 6 GHz
5535 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5536 	 * is deprecated and
5537 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5538 	 * should be used.
5539 	 *
5540 	 * To maintain backward compatibility,
5541 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5542 	 * is still used if either of the driver or user space application
5543 	 * doesn't support the 6 GHz band.
5544 	 */
5545 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
5546 
5547 	/*
5548 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
5549 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5550 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5551 	 * along with
5552 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
5553 	 *
5554 	 * If both the driver and user-space application supports the 6 GHz
5555 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
5556 	 * is deprecated and
5557 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5558 	 * should be considered.
5559 	 *
5560 	 * To maintain backward compatibility,
5561 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5562 	 * is still used if either of the driver or user space application
5563 	 * doesn't support the 6 GHz band.
5564 	 */
5565 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
5566 	/*
5567 	 * 16-bit attribute of bits indicating the AP power modes supported by
5568 	 * the channel (u16).
5569 	 * Note: Currently, only 3 bits are used in the attribute and each bit
5570 	 * corresponds to the power mode mentioned in enum
5571 	 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
5572 	 * set if the associated mode is supported.
5573 	 */
5574 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
5575 									= 14,
5576 	/* Array of nested attributes for each power mode. It takes attr as
5577 	 * defined in enum
5578 	 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5579 	 */
5580 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR	= 15,
5581 
5582 	/* keep last */
5583 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
5584 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
5585 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
5586 };
5587 
5588 /**
5589  * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
5590  * values that the vendor external ACS channel power attribute
5591  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
5592  * take.
5593  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
5594  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
5595  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
5596  */
5597 enum qca_wlan_vendor_external_acs_chan_power_level {
5598 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
5599 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
5600 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
5601 };
5602 
5603 /**
5604  * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
5605  * attributes for power mode type and power values corresponding to that.
5606  * These attributes are sent as part of
5607  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
5608  */
5609 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
5610 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
5611 	/*
5612 	 * Power mode (u8) takes the values defined in enum
5613 	 * qca_wlan_vendor_external_acs_chan_power_mode
5614 	 */
5615 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
5616 									= 1,
5617 	/*
5618 	 * Indicates if power value is a PSD/EIRP value (flag). If flag is
5619 	 * present, it indicates a PSD value.
5620 	 */
5621 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
5622 	/*
5623 	 * Power value (u32) PSD/EIRP as indicated by
5624 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
5625 	 * for power mode corresponding to the
5626 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
5627 	 * Units for PSD - dBm/MHz
5628 	 * Units for EIRP - dBm
5629 	 */
5630 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
5631 									= 3,
5632 	/* keep last */
5633 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
5634 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
5635 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
5636 };
5637 
5638 /**
5639  * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
5640  * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
5641  * driver.
5642  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
5643  * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
5644  * ACS need to be started
5645  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
5646  * driver supports spectral scanning or not
5647  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
5648  * offloaded to firmware.
5649  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
5650  * provides additional channel capability as part of scan operation.
5651  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
5652  * interface status is UP
5653  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
5654  * interface. It takes one of nl80211_iftype values.
5655  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
5656  * of chan width. ACS logic should try to get a channel with specified width
5657  * if not found then look for lower values.
5658  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
5659  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
5660  * a/b/g/n/ac.
5661  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
5662  * among which ACS should choose best frequency.
5663  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
5664  * driver which will have <channel(u8), weight(u8)> format as array of
5665  * nested values.
5666  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
5667  * for each channel. It takes attr as defined in
5668  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
5669  * PCL mandatory, PCL preferred, etc.It uses values defined in enum
5670  * qca_wlan_vendor_attr_external_acs_policy.
5671  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
5672  * Operating Parameter (RROP) availability information (u16). It uses values
5673  * defined in enum qca_wlan_vendor_attr_rropavail_info.
5674  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
5675  * indicate if driver supports 6 GHz AFC trigger for External ACS.
5676  */
5677 enum qca_wlan_vendor_attr_external_acs_event {
5678 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
5679 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
5680 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
5681 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
5682 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
5683 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
5684 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
5685 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
5686 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
5687 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
5688 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
5689 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
5690 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
5691 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
5692 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
5693 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
5694 
5695 	/* keep last */
5696 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
5697 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
5698 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
5699 };
5700 
5701 enum qca_iface_type {
5702 	QCA_IFACE_TYPE_STA,
5703 	QCA_IFACE_TYPE_AP,
5704 	QCA_IFACE_TYPE_P2P_CLIENT,
5705 	QCA_IFACE_TYPE_P2P_GO,
5706 	QCA_IFACE_TYPE_IBSS,
5707 	QCA_IFACE_TYPE_TDLS,
5708 };
5709 
5710 /**
5711  * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
5712  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
5713  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
5714  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
5715  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
5716  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
5717  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
5718  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
5719  */
5720 enum qca_wlan_vendor_attr_pcl_config {
5721 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
5722 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
5723 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
5724 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
5725 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
5726 };
5727 
5728 enum qca_set_band {
5729 	QCA_SETBAND_AUTO = 0,
5730 	QCA_SETBAND_5G = BIT(0),
5731 	QCA_SETBAND_2G = BIT(1),
5732 	QCA_SETBAND_6G = BIT(2),
5733 };
5734 
5735 /**
5736  * enum set_reset_packet_filter - set packet filter control commands
5737  * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
5738  * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
5739  * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
5740  * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
5741  * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
5742  * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
5743  */
5744 enum set_reset_packet_filter {
5745 	QCA_WLAN_SET_PACKET_FILTER = 1,
5746 	QCA_WLAN_GET_PACKET_FILTER = 2,
5747 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
5748 	QCA_WLAN_READ_PACKET_FILTER = 4,
5749 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
5750 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
5751 };
5752 
5753 /**
5754  * enum qca_wlan_vendor_attr_packet_filter - APF control commands
5755  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
5756  * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
5757  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
5758  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
5759  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
5760  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
5761  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
5762  *	section in packet filter buffer
5763  */
5764 enum qca_wlan_vendor_attr_packet_filter {
5765 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
5766 	QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
5767 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
5768 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
5769 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
5770 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
5771 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
5772 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
5773 
5774 	/* keep last */
5775 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
5776 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
5777 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
5778 };
5779 
5780 /**
5781  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
5782  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
5783  */
5784 enum qca_wlan_vendor_attr_wake_stats {
5785 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
5786 	/* Unsigned 32-bit value indicating the total count of wake event */
5787 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
5788 	/* Array of individual wake count, each index representing wake reason
5789 	 */
5790 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
5791 	/* Unsigned 32-bit value representing wake count array */
5792 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
5793 	/* Unsigned 32-bit total wake count value of driver/fw */
5794 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
5795 	/* Array of wake stats of driver/fw */
5796 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
5797 	/* Unsigned 32-bit total wake count value of driver/fw */
5798 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
5799 	/* Unsigned 32-bit total wake count value of packets received */
5800 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
5801 	/* Unsigned 32-bit wake count value unicast packets received */
5802 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
5803 	/* Unsigned 32-bit wake count value multicast packets received */
5804 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
5805 	/* Unsigned 32-bit wake count value broadcast packets received */
5806 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
5807 	/* Unsigned 32-bit wake count value of ICMP packets */
5808 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
5809 	/* Unsigned 32-bit wake count value of ICMP6 packets */
5810 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
5811 	/* Unsigned 32-bit value ICMP6 router advertisement */
5812 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
5813 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
5814 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
5815 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
5816 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
5817 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
5818 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
5819 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
5820 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
5821 	/* Unsigned 32-bit wake count value of receive side multicast */
5822 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
5823 	/* Unsigned 32-bit wake count value of a given RSSI breach */
5824 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
5825 	/* Unsigned 32-bit wake count value of low RSSI */
5826 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
5827 	/* Unsigned 32-bit value GSCAN count */
5828 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
5829 	/* Unsigned 32-bit value PNO complete count */
5830 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
5831 	/* Unsigned 32-bit value PNO match count */
5832 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
5833 	/* keep last */
5834 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
5835 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
5836 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
5837 };
5838 
5839 /**
5840  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
5841  * configured by userspace to the driver/firmware. The values will be
5842  * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
5843  * The driver/firmware takes necessary actions requested by userspace
5844  * such as throttling wifi tx etc. in order to mitigate high temperature.
5845  *
5846  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
5847  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
5848  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
5849  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
5850  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
5851  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
5852  */
5853 enum qca_wlan_vendor_thermal_level {
5854 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
5855 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
5856 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
5857 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
5858 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
5859 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
5860 };
5861 
5862 /**
5863  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
5864  * cmd value. Used for NL attributes for data used by
5865  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5866  */
5867 enum qca_wlan_vendor_attr_thermal_cmd {
5868 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
5869 	/* The value of command, driver will implement different operations
5870 	 * according to this value. It uses values defined in
5871 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
5872 	 * u32 attribute.
5873 	 */
5874 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
5875 	/* Userspace uses this attribute to configure thermal level to the
5876 	 * driver/firmware, or get thermal level from the driver/firmware.
5877 	 * Used in request or response, u32 attribute,
5878 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
5879 	 */
5880 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
5881 	/* Userspace uses this attribute to configure the time in which the
5882 	 * driver/firmware should complete applying settings it received from
5883 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
5884 	 * command type. Used in request, u32 attribute, value is in
5885 	 * milliseconds. A value of zero indicates to apply the settings
5886 	 * immediately. The driver/firmware can delay applying the configured
5887 	 * thermal settings within the time specified in this attribute if
5888 	 * there is any critical ongoing operation.
5889 	 */
5890 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
5891 	/* Nested attribute, driver/firmware uses this attribute to report
5892 	 * thermal stats of different thermal levels to userspace when requested
5893 	 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
5894 	 * type. This attribute contains nested array of records of thermal
5895 	 * statistics of multiple levels. The attributes used inside this nested
5896 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
5897 	 */
5898 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
5899 
5900 	/* keep last */
5901 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
5902 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
5903 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
5904 };
5905 
5906 /**
5907  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
5908  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
5909  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
5910  * thermal command types sent to driver.
5911  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
5912  * get thermal shutdown configuration parameters for display. Parameters
5913  * responded from driver are defined in
5914  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
5915  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
5916  * get temperature. Host should respond with a temperature data. It is defined
5917  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
5918  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
5919  * suspend action.
5920  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
5921  * resume action.
5922  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
5923  * the driver/firmware.
5924  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
5925  * thermal level from the driver/firmware. The driver should respond with a
5926  * thermal level defined in enum qca_wlan_vendor_thermal_level.
5927  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
5928  * current thermal stats from the driver/firmware. The driver should respond
5929  * with stats of all thermal levels encapsulated in attribute
5930  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
5931  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
5932  * the current thermal stats all thermal levels maintained in the
5933  * driver/firmware and start counting from zero again.
5934  */
5935 enum qca_wlan_vendor_attr_thermal_cmd_type {
5936 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
5937 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
5938 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
5939 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
5940 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
5941 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
5942 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
5943 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
5944 };
5945 
5946 /**
5947  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
5948  * to get chip temperature by user.
5949  * enum values are used for NL attributes for data used by
5950  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
5951  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5952  */
5953 enum qca_wlan_vendor_attr_thermal_get_temperature {
5954 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
5955 	/* Temperature value (degree Celsius) from driver.
5956 	 * u32 attribute.
5957 	 */
5958 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
5959 
5960 	/* keep last */
5961 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
5962 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
5963 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
5964 };
5965 
5966 /**
5967  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
5968  * report thermal events from driver to user space.
5969  * enum values are used for NL attributes for data used by
5970  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
5971  */
5972 enum qca_wlan_vendor_attr_thermal_event {
5973 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
5974 	/* Temperature value (degree Celsius) from driver.
5975 	 * u32 attribute.
5976 	 */
5977 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
5978 	/* Indication of resume completion from power save mode.
5979 	 * NLA_FLAG attribute.
5980 	 */
5981 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
5982 	/* Thermal level from the driver.
5983 	 * u32 attribute. Possible values are defined in
5984 	 * enum qca_wlan_vendor_thermal_level.
5985 	 */
5986 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
5987 
5988 	/* keep last */
5989 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
5990 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
5991 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
5992 };
5993 
5994 /**
5995  * enum qca_vendor_element_id - QCA Vendor Specific element types
5996  *
5997  * These values are used to identify QCA Vendor Specific elements. The
5998  * payload of the element starts with the three octet OUI (OUI_QCA) and
5999  * is followed by a single octet type which is defined by this enum.
6000  *
6001  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
6002  *      This element can be used to specify preference order for supported
6003  *      channels. The channels in this list are in preference order (the first
6004  *      one has the highest preference) and are described as a pair of
6005  *      (global) Operating Class and Channel Number (each one octet) fields.
6006  *
6007  *      This extends the standard P2P functionality by providing option to have
6008  *      more than one preferred operating channel. When this element is present,
6009  *      it replaces the preference indicated in the Operating Channel attribute.
6010  *      For supporting other implementations, the Operating Channel attribute is
6011  *      expected to be used with the highest preference channel. Similarly, all
6012  *      the channels included in this Preferred channel list element are
6013  *      expected to be included in the Channel List attribute.
6014  *
6015  *      This vendor element may be included in GO Negotiation Request, P2P
6016  *      Invitation Request, and Provision Discovery Request frames.
6017  *
6018  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
6019  *      This element can be used for pre-standard publication testing of HE
6020  *      before P802.11ax draft assigns the element ID. The payload of this
6021  *      vendor specific element is defined by the latest P802.11ax draft.
6022  *      Please note that the draft is still work in progress and this element
6023  *      payload is subject to change.
6024  *
6025  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
6026  *      This element can be used for pre-standard publication testing of HE
6027  *      before P802.11ax draft assigns the element ID. The payload of this
6028  *      vendor specific element is defined by the latest P802.11ax draft.
6029  *      Please note that the draft is still work in progress and this element
6030  *      payload is subject to change.
6031  *
6032  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
6033  *      element).
6034  *      This element can be used for pre-standard publication testing of HE
6035  *      before P802.11ax draft assigns the element ID extension. The payload of
6036  *      this vendor specific element is defined by the latest P802.11ax draft
6037  *      (not including the Element ID Extension field). Please note that the
6038  *      draft is still work in progress and this element payload is subject to
6039  *      change.
6040  *
6041  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
6042  *      This element can be used for pre-standard publication testing of HE
6043  *      before P802.11ax draft assigns the element ID extension. The payload of
6044  *      this vendor specific element is defined by the latest P802.11ax draft
6045  *      (not including the Element ID Extension field). Please note that the
6046  *      draft is still work in progress and this element payload is subject to
6047  *      change.
6048  *
6049  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
6050  *      This element can be used for pre-standard publication testing of HE
6051  *      before P802.11ax draft assigns the element ID extension. The payload of
6052  *      this vendor specific element is defined by the latest P802.11ax draft
6053  *      (not including the Element ID Extension field). Please note that the
6054  *      draft is still work in progress and this element payload is subject to
6055  *      change.
6056  */
6057 enum qca_vendor_element_id {
6058 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
6059 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
6060 	QCA_VENDOR_ELEM_HE_OPER = 2,
6061 	QCA_VENDOR_ELEM_RAPS = 3,
6062 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
6063 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
6064 };
6065 
6066 /**
6067  * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
6068  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
6069  * Specify the TSF command. Possible values are defined in
6070  * &enum qca_tsf_cmd.
6071  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
6072  * This attribute contains TSF timer value. This attribute is only available
6073  * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6074  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
6075  * This attribute contains SOC timer value at TSF capture. This attribute is
6076  * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6077  * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
6078  * This attribute is used to provide TSF sync interval and only applicable when
6079  * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
6080  * driver will use the default value. Time unit is in milliseconds.
6081  */
6082 enum qca_vendor_attr_tsf_cmd {
6083 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
6084 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
6085 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
6086 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
6087 	QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
6088 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
6089 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
6090 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
6091 };
6092 
6093 /**
6094  * enum qca_tsf_cmd: TSF driver commands
6095  * @QCA_TSF_CAPTURE: Initiate TSF Capture
6096  * @QCA_TSF_GET: Get TSF capture value
6097  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
6098  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
6099  * will automatically send TSF report to the host. To query
6100  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
6101  * initiated first.
6102  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
6103  * will not automatically send TSF report to the host. If
6104  * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
6105  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
6106  * operation needs to be initiated.
6107  * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
6108  * fetches TSF and host time mapping from the firmware with interval configured
6109  * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
6110  * interval value is not provided the driver will use the default value. The
6111  * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
6112  * command.
6113  * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
6114  */
6115 enum qca_tsf_cmd {
6116 	QCA_TSF_CAPTURE,
6117 	QCA_TSF_GET,
6118 	QCA_TSF_SYNC_GET,
6119 	QCA_TSF_AUTO_REPORT_ENABLE,
6120 	QCA_TSF_AUTO_REPORT_DISABLE,
6121 	QCA_TSF_SYNC_START,
6122 	QCA_TSF_SYNC_STOP,
6123 };
6124 
6125 /**
6126  * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
6127  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
6128  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
6129  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
6130  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
6131  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
6132  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
6133  */
6134 enum qca_vendor_attr_get_preferred_freq_list {
6135 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
6136 	/* A 32-unsigned value; the interface type/mode for which the preferred
6137 	 * frequency list is requested (see enum qca_iface_type for possible
6138 	 * values); used in both south- and north-bound.
6139 	 */
6140 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
6141 	/* An array of 32-unsigned values; values are frequency (MHz); used
6142 	 * in north-bound only.
6143 	 */
6144 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
6145 	/* An array of nested values as per enum
6146 	 *  qca_wlan_vendor_attr_pcl_config attribute.
6147 	 *  Each element contains frequency (MHz), weight, and flag
6148 	 *  bit mask indicating how the frequency should be used in P2P
6149 	 *  negotiation.
6150 	 */
6151 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
6152 	/* keep last */
6153 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
6154 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
6155 		QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
6156 };
6157 
6158 /**
6159  * enum qca_vendor_attr_probable_oper_channel - channel hint
6160  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
6161  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
6162  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
6163  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
6164  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
6165  */
6166 enum qca_vendor_attr_probable_oper_channel {
6167 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
6168 	/* 32-bit unsigned value; indicates the connection/iface type likely to
6169 	 * come on this channel (see enum qca_iface_type).
6170 	 */
6171 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
6172 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
6173 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
6174 	/* keep last */
6175 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
6176 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
6177 		QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
6178 };
6179 
6180 /**
6181  * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
6182  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
6183  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
6184  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
6185  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
6186  */
6187 enum qca_wlan_vendor_attr_gw_param_config {
6188 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
6189 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
6190 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
6191 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
6192 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
6193 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
6194 		QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
6195 };
6196 
6197 /**
6198  * enum drv_dbs_capability - DBS capability
6199  * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
6200  * @DRV_DBS_CAPABILITY_1X1: 1x1
6201  * @DRV_DBS_CAPABILITY_2X2: 2x2
6202  */
6203 enum drv_dbs_capability {
6204 	DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
6205 	DRV_DBS_CAPABILITY_1X1,
6206 	DRV_DBS_CAPABILITY_2X2,
6207 };
6208 
6209 /**
6210  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
6211  *
6212  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
6213  */
6214 enum qca_vendor_attr_txpower_decr_db {
6215 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
6216 	/*
6217 	 * 8-bit unsigned value to indicate the reduction of TX power in dB for
6218 	 * a virtual interface.
6219 	 */
6220 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
6221 	/* keep last */
6222 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
6223 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
6224 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
6225 };
6226 
6227 /**
6228  * enum qca_vendor_attr_ota_test - Enable OTA test
6229  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
6230  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
6231  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
6232  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
6233  */
6234 enum qca_vendor_attr_ota_test {
6235 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
6236 	/* 8-bit unsigned value to indicate if OTA test is enabled */
6237 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
6238 	/* keep last */
6239 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
6240 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
6241 		QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
6242 };
6243 
6244 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
6245  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
6246  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
6247  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
6248  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
6249  */
6250 enum qca_vendor_attr_txpower_scale {
6251 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
6252 	/* 8-bit unsigned value to indicate the scaling of tx power */
6253 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
6254 	/* keep last */
6255 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
6256 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
6257 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
6258 };
6259 
6260 /**
6261  * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
6262  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
6263  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
6264  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
6265  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
6266  */
6267 enum qca_vendor_attr_txpower_scale_decr_db {
6268 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
6269 	/* 8-bit unsigned value to indicate the scaling of tx power */
6270 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
6271 	/* keep last */
6272 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
6273 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
6274 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
6275 };
6276 
6277 /**
6278  * enum dfs_mode - state of DFS mode
6279  * @DFS_MODE_NONE: DFS mode attribute is none
6280  * @DFS_MODE_ENABLE:  DFS mode is enabled
6281  * @DFS_MODE_DISABLE: DFS mode is disabled
6282  * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
6283  */
6284 enum dfs_mode {
6285 	DFS_MODE_NONE,
6286 	DFS_MODE_ENABLE,
6287 	DFS_MODE_DISABLE,
6288 	DFS_MODE_DEPRIORITIZE
6289 };
6290 
6291 /**
6292  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
6293  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
6294  *
6295  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
6296  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
6297  *
6298  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
6299  * channel number hint for ACS operation, if valid channel is specified then
6300  * ACS operation gives priority to this channel.
6301  * Note: If both the driver and user space application supports the 6 GHz band,
6302  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
6303  * should be used.
6304  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
6305  * is still used if either of the driver or user space application doesn't
6306  * support the 6 GHz band.
6307  *
6308  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
6309  * Channel center frequency (MHz) hint for ACS operation, if a valid center
6310  * frequency is specified, ACS operation gives priority to this channel.
6311  */
6312 enum qca_wlan_vendor_attr_acs_config {
6313 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
6314 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
6315 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
6316 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
6317 
6318 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
6319 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
6320 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
6321 };
6322 
6323 /**
6324  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
6325  */
6326 enum qca_wlan_vendor_attr_get_hw_capability {
6327 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
6328 	/*
6329 	 * Antenna isolation
6330 	 * An attribute used in the response.
6331 	 * The content of this attribute is encoded in a byte array. Each byte
6332 	 * value is an antenna isolation value. The array length is the number
6333 	 * of antennas.
6334 	 */
6335 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
6336 	/*
6337 	 * Request HW capability
6338 	 * An attribute used in the request.
6339 	 * The content of this attribute is a u32 array for one or more of
6340 	 * hardware capabilities (attribute IDs) that are being requested. Each
6341 	 * u32 value has a value from this
6342 	 * enum qca_wlan_vendor_attr_get_hw_capability
6343 	 * identifying which capabilities are requested.
6344 	 */
6345 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
6346 
6347 	/* keep last */
6348 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
6349 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
6350 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
6351 };
6352 
6353 /**
6354  * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
6355  *                        config params for sta roam policy
6356  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
6357  * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
6358  * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
6359  * If sta should skip unsafe channels or not in scanning
6360  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
6361  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
6362  */
6363 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
6364 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
6365 	QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
6366 	QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
6367 
6368 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
6369 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
6370 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
6371 };
6372 
6373 /* Attributes for FTM commands and events */
6374 
6375 /**
6376  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
6377  *
6378  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
6379  *      enum qca_wlan_vendor_attr_loc_capa_flags.
6380  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
6381  *      of measurement sessions that can run concurrently.
6382  *      Default is one session (no session concurrency).
6383  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
6384  *      peers that are supported in running sessions. For example,
6385  *      if the value is 8 and maximum number of sessions is 2, you can
6386  *      have one session with 8 unique peers, or 2 sessions with 4 unique
6387  *      peers each, and so on.
6388  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
6389  *      of bursts per peer, as an exponent (2^value). Default is 0,
6390  *      meaning no multi-burst support.
6391  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
6392  *      of measurement exchanges allowed in a single burst.
6393  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
6394  *      types. A bit mask (unsigned 32 bit value), each bit corresponds
6395  *      to an AOA type as defined by enum qca_vendor_attr_aoa_type.
6396  */
6397 enum qca_wlan_vendor_attr_loc_capa {
6398 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
6399 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
6400 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
6401 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
6402 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
6403 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
6404 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
6405 	/* keep last */
6406 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
6407 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
6408 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
6409 };
6410 
6411 /**
6412  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
6413  *
6414  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
6415  *      can be configured as an FTM responder (for example, an AP that
6416  *      services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
6417  *      will be supported if set.
6418  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
6419  *      can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
6420  *      will be supported if set.
6421 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
6422  *      supports immediate (ASAP) response.
6423  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
6424  *      AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
6425  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
6426  *      requesting AOA measurements as part of an FTM session.
6427  */
6428 enum qca_wlan_vendor_attr_loc_capa_flags {
6429 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
6430 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
6431 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
6432 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
6433 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
6434 };
6435 
6436 /**
6437  * enum qca_wlan_ani_setting - ANI setting type
6438  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
6439  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
6440  */
6441 enum qca_wlan_ani_setting {
6442 	QCA_WLAN_ANI_SETTING_AUTO = 0,
6443 	QCA_WLAN_ANI_SETTING_FIXED = 1,
6444 };
6445 
6446 /**
6447  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
6448  *
6449  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
6450  * Channel number on which Access Point should restart.
6451  * Note: If both the driver and user space application supports the 6 GHz band,
6452  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
6453  * should be used.
6454  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
6455  * is still used if either of the driver or user space application doesn't
6456  * support the 6 GHz band.
6457  *
6458  * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
6459  * Nested attribute to hold list of center frequencies on which AP is
6460  * expected to operate. This is irrespective of ACS configuration.
6461  * This list is a priority based one and is looked for before the AP is
6462  * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
6463  * co-exist in the system.
6464  *
6465  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
6466  * Channel center frequency (MHz) on which the access point should restart.
6467  */
6468 enum qca_wlan_vendor_attr_sap_config {
6469 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
6470 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
6471 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
6472 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
6473 
6474 	/* Keep last */
6475 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
6476 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
6477 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
6478 };
6479 
6480 /**
6481  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
6482  * a single peer in a measurement session.
6483  *
6484  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
6485  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
6486  *      to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
6487  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
6488  *      FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
6489  *      9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
6490  *      list of supported attributes.
6491  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
6492  *      secure measurement.
6493  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
6494  *      measurement every <value> bursts. If 0 or not specified,
6495  *      AOA measurements will be disabled for this peer.
6496  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
6497  *      the measurement frames are exchanged. Optional; if not
6498  *      specified, try to locate the peer in the kernel scan
6499  *      results cache and use frequency from there.
6500  */
6501 enum qca_wlan_vendor_attr_ftm_peer_info {
6502 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
6503 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
6504 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
6505 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
6506 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
6507 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
6508 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
6509 	/* keep last */
6510 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
6511 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
6512 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
6513 };
6514 
6515 /**
6516  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
6517  *      per-peer
6518  *
6519  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
6520  *      immediate (ASAP) response from peer.
6521  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
6522  *      LCI report from peer. The LCI report includes the absolute
6523  *      location of the peer in "official" coordinates (similar to GPS).
6524  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
6525  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
6526  *      Location civic report from peer. The LCR includes the location
6527  *      of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
6528  *      11.24.6.7 for more information.
6529  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
6530  *      request a secure measurement.
6531  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
6532  */
6533 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
6534 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP    = 1 << 0,
6535 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI     = 1 << 1,
6536 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR     = 1 << 2,
6537 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE  = 1 << 3,
6538 };
6539 
6540 /**
6541  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
6542  *
6543  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
6544  *      to perform in a single burst.
6545  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
6546  *      perform, specified as an exponent (2^value).
6547  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
6548  *      instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
6549  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
6550  *      as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
6551  *      be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
6552  */
6553 enum qca_wlan_vendor_attr_ftm_meas_param {
6554 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
6555 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
6556 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
6557 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
6558 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
6559 	/* keep last */
6560 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
6561 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
6562 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
6563 };
6564 
6565 /**
6566  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
6567  *
6568  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
6569  *       peer.
6570  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
6571  *      request for this peer.
6572  *      See enum qca_wlan_vendor_attr_ftm_peer_result_status.
6573  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
6574  *      to measurement results for this peer.
6575  *      See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
6576  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
6577  *      request failed and peer requested not to send an additional request
6578  *      for this number of seconds.
6579  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
6580  *      from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6581  *      9.4.2.22.10.
6582  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
6583  *      received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6584  *      9.4.2.22.13.
6585  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
6586  *      overridden some measurement request parameters. See
6587  *      enum qca_wlan_vendor_attr_ftm_meas_param.
6588  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
6589  *      for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
6590  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
6591  *      results. Each entry is a nested attribute defined
6592  *      by enum qca_wlan_vendor_attr_ftm_meas.
6593  */
6594 enum qca_wlan_vendor_attr_ftm_peer_result {
6595 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
6596 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
6597 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
6598 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
6599 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
6600 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
6601 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
6602 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
6603 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
6604 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
6605 	/* keep last */
6606 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
6607 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
6608 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
6609 };
6610 
6611 /**
6612  * enum qca_wlan_vendor_attr_ftm_peer_result_status
6613  *
6614  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
6615  *      will be provided. Peer may have overridden some measurement parameters,
6616  *      in which case overridden parameters will be report by
6617  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
6618  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
6619  *      of performing the measurement request. No more results will be sent
6620  *      for this peer in this session.
6621  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
6622  *      failed, and requested not to send an additional request for number
6623  *      of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
6624  *      attribute.
6625  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
6626  *      failed. Request was not sent over the air.
6627  */
6628 enum qca_wlan_vendor_attr_ftm_peer_result_status {
6629 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
6630 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
6631 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
6632 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
6633 };
6634 
6635 /**
6636  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
6637  *  for measurement result, per-peer
6638  *
6639  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
6640  *      measurement completed for this peer. No more results will be reported
6641  *      for this peer in this session.
6642  */
6643 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
6644 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
6645 };
6646 
6647 /**
6648  * enum qca_vendor_attr_loc_session_status: Session completion status code
6649  *
6650  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
6651  *      successfully.
6652  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
6653  *      by request.
6654  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
6655  *      was invalid and was not started.
6656  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
6657  *      and did not complete normally (for example out of resources).
6658  */
6659 enum qca_vendor_attr_loc_session_status {
6660 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
6661 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
6662 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
6663 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
6664 };
6665 
6666 /**
6667  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
6668  *
6669  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
6670  *      recorded by responder, in picoseconds.
6671  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6672  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
6673  *      initiator, in picoseconds.
6674  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6675  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
6676  *      initiator, in picoseconds.
6677  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6678  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
6679  *      responder, in picoseconds.
6680  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6681  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
6682  *      during this measurement exchange. Optional and will be provided if
6683  *      the hardware can measure it.
6684  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
6685  *      responder. Not always provided.
6686  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6687  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
6688  *      responder. Not always provided.
6689  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6690  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
6691  *      initiator. Not always provided.
6692  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6693  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
6694  *      initiator. Not always provided.
6695  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6696  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
6697  */
6698 enum qca_wlan_vendor_attr_ftm_meas {
6699 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
6700 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
6701 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
6702 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
6703 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
6704 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
6705 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
6706 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
6707 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
6708 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
6709 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
6710 	/* keep last */
6711 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
6712 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
6713 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
6714 };
6715 
6716 /**
6717  * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
6718  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
6719  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
6720  *     A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
6721  *     of the social channels.
6722  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
6723  *     A 32-bit unsigned value; the P2P listen offload period (ms).
6724  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
6725  *     A 32-bit unsigned value; the P2P listen interval duration (ms).
6726  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
6727  *     A 32-bit unsigned value; number of interval times the Firmware needs
6728  *     to run the offloaded P2P listen operation before it stops.
6729  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
6730  *     An array of unsigned 8-bit characters; vendor information elements.
6731  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
6732  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
6733  *     A 32-bit unsigned value; a control flag to indicate whether listen
6734  *     results need to be flushed to wpa_supplicant.
6735  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
6736  *     A 8-bit unsigned value; reason code for P2P listen offload stop
6737  *     event.
6738  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
6739  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
6740  */
6741 enum qca_wlan_vendor_attr_p2p_listen_offload {
6742 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
6743 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
6744 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
6745 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
6746 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
6747 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
6748 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
6749 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
6750 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
6751 	/* keep last */
6752 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
6753 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
6754 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
6755 };
6756 
6757 /**
6758  * enum qca_wlan_vendor_drv_info - WLAN driver info
6759  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
6760  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
6761  * between Firmware & Host.
6762  */
6763 enum qca_wlan_vendor_drv_info {
6764 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
6765 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
6766 
6767 	/* keep last */
6768 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
6769 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
6770 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
6771 };
6772 
6773 /**
6774  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
6775  *
6776  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
6777  *      CIR (channel impulse response) path for each antenna.
6778  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
6779  *      of the strongest CIR path for each antenna.
6780  */
6781 enum qca_wlan_vendor_attr_aoa_type {
6782 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
6783 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
6784 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
6785 };
6786 
6787 /**
6788  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
6789  * validate encryption engine
6790  *
6791  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
6792  *    This will be included if the request is for decryption; if not included,
6793  *    the request is treated as a request for encryption by default.
6794  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
6795  *    indicating the key cipher suite. Takes same values as
6796  *    NL80211_ATTR_KEY_CIPHER.
6797  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
6798  *    Key Id to be used for encryption
6799  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
6800  *    Key (TK) to be used for encryption/decryption
6801  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
6802  *    Packet number to be specified for encryption/decryption
6803  *    6 bytes for TKIP/CCMP/GCMP.
6804  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
6805  *    representing the 802.11 packet (header + payload + FCS) that
6806  *    needs to be encrypted/decrypted.
6807  *    Encrypted/decrypted response from the driver will also be sent
6808  *    to userspace with the same attribute.
6809  */
6810 enum qca_wlan_vendor_attr_encryption_test {
6811 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
6812 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
6813 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
6814 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
6815 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
6816 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
6817 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
6818 
6819 	/* keep last */
6820 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
6821 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
6822 		QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
6823 };
6824 
6825 /**
6826  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
6827  * sector for DMG RF sector operations.
6828  *
6829  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
6830  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
6831  */
6832 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
6833 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
6834 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
6835 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
6836 };
6837 
6838 /**
6839  * enum qca_wlan_vendor_attr_fw_state - State of firmware
6840  *
6841  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
6842  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
6843  */
6844 enum qca_wlan_vendor_attr_fw_state {
6845 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
6846 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
6847 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
6848 };
6849 
6850 /**
6851  * BRP antenna limit mode
6852  *
6853  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
6854  *      antenna limit, BRP will be performed as usual.
6855  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
6856  *      antennas limit. the hardware may use less antennas than the
6857  *      maximum limit.
6858  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
6859  *      use exactly the specified number of antennas for BRP.
6860  */
6861 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
6862 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
6863 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
6864 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
6865 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
6866 };
6867 
6868 /**
6869  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
6870  * DMG RF sector configuration for a single RF module.
6871  * The values are defined in a compact way which closely matches
6872  * the way it is stored in HW registers.
6873  * The configuration provides values for 32 antennas and 8 distribution
6874  * amplifiers, and together describes the characteristics of the RF
6875  * sector - such as a beam in some direction with some gain.
6876  *
6877  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
6878  *      of RF module for this configuration.
6879  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
6880  *      amplifier gain index. Unsigned 32 bit number containing
6881  *      bits for all 32 antennas.
6882  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
6883  *      amplifier gain index. Unsigned 32 bit number containing
6884  *      bits for all 32 antennas.
6885  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
6886  *      amplifier gain index. Unsigned 32 bit number containing
6887  *      bits for all 32 antennas.
6888  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
6889  *      for first 16 antennas, 2 bits per antenna.
6890  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
6891  *      for last 16 antennas, 2 bits per antenna.
6892  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
6893  *      DTYPE values (3 bits) for each distribution amplifier, followed
6894  *      by X16 switch bits for each distribution amplifier. There are
6895  *      total of 8 distribution amplifiers.
6896  */
6897 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
6898 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
6899 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
6900 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
6901 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
6902 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
6903 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
6904 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
6905 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
6906 
6907 	/* keep last */
6908 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
6909 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
6910 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
6911 };
6912 
6913 /**
6914  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
6915  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
6916  *
6917  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
6918  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
6919  *	represents the different TDLS trigger modes.
6920  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
6921  *	which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
6922  *	of packets shall meet the criteria for implicit TDLS setup.
6923  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
6924  *	packets within a duration.
6925  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
6926  *	a TDLS setup.
6927  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
6928  *	a TDLS Discovery to the Peer.
6929  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
6930  *	discovery attempts to know the TDLS capability of the peer. A peer is
6931  *	marked as TDLS not capable if there is no response for all the attempts.
6932  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
6933  *	within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
6934  *	number of TX / RX frames meet the criteria for TDLS teardown.
6935  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
6936  *	(u32) of Tx/Rx packets within a duration
6937  *	CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
6938  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
6939  *	corresponding to the RSSI of the peer below which a TDLS
6940  *	setup is triggered.
6941  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
6942  *	corresponding to the RSSI of the peer above which
6943  *	a TDLS teardown is triggered.
6944  */
6945 enum qca_wlan_vendor_attr_tdls_configuration {
6946 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
6947 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
6948 
6949 	/* Attributes configuring the TDLS Implicit Trigger */
6950 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
6951 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
6952 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
6953 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
6954 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
6955 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
6956 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
6957 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
6958 
6959 	/* keep last */
6960 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
6961 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
6962 		QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
6963 };
6964 
6965 /**
6966  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
6967  *	the driver.
6968  *
6969  * The following are the different values for
6970  * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
6971  *
6972  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
6973  *	initiate/teardown the TDLS connection to a respective peer comes
6974  *	 from the user space. wpa_supplicant provides the commands
6975  *	TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
6976  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
6977  *	setup/teardown to the eligible peer once the configured criteria
6978  *	(such as TX/RX threshold, RSSI) is met. The attributes
6979  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
6980  *	the different configuration criteria for the TDLS trigger from the
6981  *	host driver.
6982  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
6983  *	the TDLS setup / teardown through the implicit mode, only to the
6984  *	configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
6985  *	configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
6986  *	External mode works on top of the implicit mode, thus the host Driver
6987  *	is expected to be configured in TDLS Implicit mode too to operate in
6988  *	External mode. Configuring External mode alone without Implicit
6989  *	mode is invalid.
6990  *
6991  * All the above implementations work as expected only when the host driver
6992  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
6993  * representing that the TDLS message exchange is not internal to the host
6994  * driver, but depends on wpa_supplicant to do the message exchange.
6995  */
6996 enum qca_wlan_vendor_tdls_trigger_mode {
6997 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
6998 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
6999 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
7000 };
7001 
7002 /**
7003  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
7004  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
7005  *	that is hard-coded in the Board Data File (BDF).
7006  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
7007  *	that is hard-coded in the Board Data File (BDF).
7008  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
7009  *	that is hard-coded in the Board Data File (BDF).
7010  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
7011  *	that is hard-coded in the Board Data File (BDF).
7012  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
7013  *	that is hard-coded in the Board Data File (BDF).
7014  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
7015  *	source of SAR power limits, thereby disabling the SAR power
7016  *	limit feature.
7017  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
7018  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7019  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
7020  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7021  *
7022  * This enumerates the valid set of values that may be supplied for
7023  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
7024  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
7025  * the response to an instance of the
7026  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7027  */
7028 enum qca_vendor_attr_sar_limits_selections {
7029 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
7030 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
7031 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
7032 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
7033 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
7034 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
7035 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
7036 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
7037 };
7038 
7039 /**
7040  * enum qca_vendor_attr_sar_limits_spec_modulations -
7041  *	SAR limits specification modulation
7042  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
7043  *	CCK modulation
7044  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
7045  *	OFDM modulation
7046  *
7047  * This enumerates the valid set of values that may be supplied for
7048  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
7049  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
7050  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
7051  * command or in the response to an instance of the
7052  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7053  */
7054 enum qca_vendor_attr_sar_limits_spec_modulations {
7055 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
7056 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
7057 };
7058 
7059 /**
7060  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
7061  *
7062  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
7063  *	select which SAR power limit table should be used.  Valid
7064  *	values are enumerated in enum
7065  *	%qca_vendor_attr_sar_limits_selections.  The existing SAR
7066  *	power limit selection is unchanged if this attribute is not
7067  *	present.
7068  *
7069  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
7070  *	which specifies the number of SAR power limit specifications
7071  *	which will follow.
7072  *
7073  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
7074  *	limit specifications. The number of specifications is
7075  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
7076  *	specification contains a set of
7077  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
7078  *	specification is uniquely identified by the attributes
7079  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
7080  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
7081  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
7082  *	contains as a payload the attribute
7083  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
7084  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
7085  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
7086  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
7087  *	needed based upon the value of
7088  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
7089  *
7090  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
7091  *	indicate for which band this specification applies. Valid
7092  *	values are enumerated in enum %nl80211_band (although not all
7093  *	bands may be supported by a given device). If the attribute is
7094  *	not supplied then the specification will be applied to all
7095  *	supported bands.
7096  *
7097  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
7098  *	to indicate for which antenna chain this specification
7099  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
7100  *	attribute is not supplied then the specification will be
7101  *	applied to all chains.
7102  *
7103  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
7104  *	value to indicate for which modulation scheme this
7105  *	specification applies. Valid values are enumerated in enum
7106  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
7107  *	is not supplied then the specification will be applied to all
7108  *	modulation schemes.
7109  *
7110  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
7111  *	value to specify the actual power limit value in units of 0.5
7112  *	dBm (i.e., a value of 11 represents 5.5 dBm).
7113  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7114  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
7115  *
7116  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
7117  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
7118  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7119  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
7120  *
7121  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
7122  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
7123  */
7124 enum qca_vendor_attr_sar_limits {
7125 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
7126 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
7127 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
7128 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
7129 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
7130 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
7131 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
7132 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
7133 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
7134 
7135 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
7136 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
7137 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
7138 };
7139 
7140 /**
7141  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
7142  *    offload which is an extension for LL_STATS.
7143  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
7144  *    If MAC counters do not exceed the threshold, FW will report monitored
7145  *    link layer counters periodically as this setting. The first report is
7146  *    always triggered by this timer.
7147  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
7148  *    For each MAC layer counter, FW holds two copies. One is the current value.
7149  *    The other is the last report. Once a current counter's increment is larger
7150  *    than the threshold, FW will indicate that counter to host even if the
7151  *    monitoring timer does not expire.
7152  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
7153  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
7154  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
7155  *    failure code.
7156  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
7157  *    1: TX packet discarded
7158  *    2: No ACK
7159  *    3: Postpone
7160  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
7161  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
7162  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
7163  *    Threshold for all monitored parameters. If per counter dedicated threshold
7164  *    is not enabled, this threshold will take effect.
7165  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
7166  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
7167  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
7168  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
7169  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
7170  *    Bit0: TX counter unit in MSDU
7171  *    Bit1: TX counter unit in MPDU
7172  *    Bit2: TX counter unit in PPDU
7173  *    Bit3: TX counter unit in byte
7174  *    Bit4: Dropped MSDUs
7175  *    Bit5: Dropped Bytes
7176  *    Bit6: MPDU retry counter
7177  *    Bit7: MPDU failure counter
7178  *    Bit8: PPDU failure counter
7179  *    Bit9: MPDU aggregation counter
7180  *    Bit10: MCS counter for ACKed MPDUs
7181  *    Bit11: MCS counter for Failed MPDUs
7182  *    Bit12: TX Delay counter
7183  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
7184  *    Bit0: MAC RX counter unit in MPDU
7185  *    Bit1: MAC RX counter unit in byte
7186  *    Bit2: PHY RX counter unit in PPDU
7187  *    Bit3: PHY RX counter unit in byte
7188  *    Bit4: Disorder counter
7189  *    Bit5: Retry counter
7190  *    Bit6: Duplication counter
7191  *    Bit7: Discard counter
7192  *    Bit8: MPDU aggregation size counter
7193  *    Bit9: MCS counter
7194  *    Bit10: Peer STA power state change (wake to sleep) counter
7195  *    Bit11: Peer STA power save counter, total time in PS mode
7196  *    Bit12: Probe request counter
7197  *    Bit13: Other management frames counter
7198  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
7199  *    Bit0: Idle time
7200  *    Bit1: TX time
7201  *    Bit2: time RX in current bss
7202  *    Bit3: Out of current bss time
7203  *    Bit4: Wireless medium busy time
7204  *    Bit5: RX in bad condition time
7205  *    Bit6: TX in bad condition time
7206  *    Bit7: time wlan card not available
7207  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
7208  *    Bit0: Per channel SNR counter
7209  *    Bit1: Per channel noise floor counter
7210  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
7211  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
7212  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
7213  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
7214  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
7215  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
7216  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
7217  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
7218  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
7219  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
7220  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
7221  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
7222  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
7223  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
7224  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
7225  *    aggregation stats buffer length
7226  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
7227  *    buffer for ACKed MPDUs.
7228  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
7229  *    buffer for failed MPDUs.
7230  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
7231  *    length of delay stats array.
7232  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
7233  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
7234  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
7235  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
7236  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
7237  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
7238  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
7239  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
7240  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
7241  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
7242  *    flagged as retransmissions
7243  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
7244  *    flagged as duplicated
7245  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
7246  *    packets discarded
7247  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
7248  *    stats buffer.
7249  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
7250  *    stats buffer.
7251  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
7252  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
7253  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
7254  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
7255  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
7256  *    requests received
7257  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
7258  *    frames received
7259  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
7260  *    there is no TX, nor RX, nor interference.
7261  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
7262  *    transmitting packets.
7263  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
7264  *    for receiving.
7265  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
7266  *    interference detected.
7267  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
7268  *    receiving packets with errors.
7269  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
7270  *    TX no-ACK.
7271  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
7272  *    the chip is unable to work in normal conditions.
7273  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
7274  *    receiving packets in current BSS.
7275  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
7276  *    receiving packets not in current BSS.
7277  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
7278  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
7279  *    This is a container for per antenna signal stats.
7280  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
7281  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
7282  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
7283  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
7284  */
7285 enum qca_wlan_vendor_attr_ll_stats_ext {
7286 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
7287 
7288 	/* Attributes for configurations */
7289 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
7290 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
7291 
7292 	/* Peer STA power state change */
7293 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
7294 
7295 	/* TX failure event */
7296 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
7297 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
7298 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
7299 
7300 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
7301 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
7302 
7303 	/* MAC counters */
7304 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
7305 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
7306 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
7307 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
7308 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
7309 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
7310 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
7311 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
7312 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
7313 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
7314 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
7315 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
7316 
7317 	/* Sub-attributes for PEER_AC_TX */
7318 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
7319 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
7320 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
7321 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
7322 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
7323 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
7324 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
7325 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
7326 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
7327 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
7328 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
7329 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
7330 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
7331 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
7332 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
7333 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
7334 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
7335 
7336 	/* Sub-attributes for PEER_AC_RX */
7337 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
7338 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
7339 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
7340 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
7341 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
7342 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
7343 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
7344 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
7345 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
7346 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
7347 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
7348 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
7349 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
7350 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
7351 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
7352 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
7353 
7354 	/* Sub-attributes for CCA_BSS */
7355 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
7356 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
7357 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
7358 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
7359 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
7360 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
7361 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
7362 
7363 	/* sub-attribute for BSS_RX_TIME */
7364 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
7365 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
7366 
7367 	/* Sub-attributes for PEER_SIGNAL */
7368 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
7369 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
7370 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
7371 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
7372 
7373 	/* Sub-attributes for IFACE_BSS */
7374 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
7375 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
7376 
7377 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
7378 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
7379 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
7380 };
7381 
7382 /**
7383  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
7384  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
7385  * in priority order as decided after ACS operation in userspace.
7386  *
7387  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
7388  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
7389  *
7390  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
7391  * Array of nested values for each channel with following attributes:
7392  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7393  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7394  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7395  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7396  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7397  * Note: If both the driver and user-space application supports the 6 GHz band,
7398  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
7399  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
7400  * To maintain backward compatibility,
7401  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
7402  * is still used if either of the driver or user space application doesn't
7403  * support the 6 GHz band.
7404  *
7405  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
7406  * Primary channel number
7407  * Note: If both the driver and user-space application supports the 6 GHz band,
7408  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
7409  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
7410  * To maintain backward compatibility,
7411  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
7412  * is still used if either of the driver or user space application doesn't
7413  * support the 6 GHz band.
7414  *
7415  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
7416  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
7417  * Note: If both the driver and user-space application supports the 6 GHz band,
7418  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
7419  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
7420  * To maintain backward compatibility,
7421  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
7422  * is still used if either of the driver or user space application
7423  * doesn't support the 6 GHz band.
7424  *
7425  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
7426  * VHT seg0 channel number
7427  * Note: If both the driver and user-space application supports the 6 GHz band,
7428  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
7429  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
7430  * To maintain backward compatibility,
7431  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
7432  * is still used if either of the driver or user space application
7433  * doesn't support the 6 GHz band.
7434  *
7435  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7436  * VHT seg1 channel number
7437  * Note: If both the driver and user-space application supports the 6 GHz band,
7438  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7439  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7440  * To maintain backward compatibility,
7441  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7442  * is still used if either of the driver or user space application
7443  * doesn't support the 6 GHz band.
7444  *
7445  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7446  * Takes one of enum nl80211_chan_width values.
7447  *
7448  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7449  * Array of nested values for each channel with following attributes:
7450  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7451  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7452  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7453  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7454  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7455  * Note: If user-space application has no support of the 6 GHz band, this
7456  * attribute is optional.
7457  *
7458  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7459  * Primary channel frequency in MHz
7460  * Note: If user-space application has no support of the 6 GHz band, this
7461  * attribute is optional.
7462  *
7463  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7464  * Secondary channel frequency in MHz used for HT 40 MHz channels.
7465  * Note: If user-space application has no support of the 6 GHz band, this
7466  * attribute is optional.
7467  *
7468  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7469  * VHT seg0 channel frequency in MHz
7470  * Note: If user-space application has no support of the 6GHz band, this
7471  * attribute is optional.
7472  *
7473  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7474  * VHT seg1 channel frequency in MHz
7475  * Note: If user-space application has no support of the 6 GHz band, this
7476  * attribute is optional.
7477  */
7478 enum qca_wlan_vendor_attr_external_acs_channels {
7479 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7480 
7481 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7482 	 */
7483 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7484 
7485 	/* Array of nested values for each channel with following attributes:
7486 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7487 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7488 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7489 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7490 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7491 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7492 	 */
7493 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7494 	/* This (u8) will hold values of one of enum nl80211_bands */
7495 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7496 	/* Primary channel (u8) */
7497 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7498 	/* Secondary channel (u8) used for HT 40 MHz channels */
7499 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7500 	/* VHT seg0 channel (u8) */
7501 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7502 	/* VHT seg1 channel (u8) */
7503 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7504 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7505 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7506 
7507 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7508 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7509 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7510 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7511 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
7512 
7513 	/* keep last */
7514 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7515 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7516 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7517 };
7518 
7519 /**
7520  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
7521  * the ACS has to be triggered. These values are used by
7522  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
7523  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
7524  */
7525 enum qca_wlan_vendor_acs_select_reason {
7526 	/* Represents the reason that the ACS triggered during the AP start */
7527 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
7528 	/* Represents the reason that DFS found with the current channel */
7529 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
7530 	/* Represents the reason that LTE co-exist in the current band. */
7531 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
7532 	/* Represents the reason that generic, uncategorized interference has
7533 	 * been found in the current channel.
7534 	 */
7535 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
7536 	/* Represents the reason that excessive 802.11 interference has been
7537 	 * found in the current channel.
7538 	 */
7539 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
7540 	/* Represents the reason that generic Continuous Wave (CW) interference
7541 	 * has been found in the current channel.
7542 	 */
7543 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
7544 	/* Represents the reason that Microwave Oven (MWO) interference has been
7545 	 * found in the current channel.
7546 	 */
7547 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
7548 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
7549 	 * (FHSS) interference has been found in the current channel. This may
7550 	 * include 802.11 waveforms.
7551 	 */
7552 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
7553 	/* Represents the reason that non-802.11 generic Frequency-Hopping
7554 	 * Spread Spectrum (FHSS) interference has been found in the current
7555 	 * channel.
7556 	 */
7557 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
7558 	/* Represents the reason that generic Wideband (WB) interference has
7559 	 * been found in the current channel. This may include 802.11 waveforms.
7560 	 */
7561 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
7562 	/* Represents the reason that non-802.11 generic Wideband (WB)
7563 	 * interference has been found in the current channel.
7564 	 */
7565 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
7566 	/* Represents the reason that Jammer interference has been found in the
7567 	 * current channel.
7568 	 */
7569 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
7570 	/* Represents the reason that ACS triggered by AFC */
7571 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
7572 };
7573 
7574 /**
7575  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
7576  *
7577  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
7578  * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
7579  * to get the available value that this item can use.
7580  *
7581  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
7582  * value to specify the gpio number.
7583  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7584  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
7585  *
7586  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
7587  * value to specify the gpio output level, please refer to enum qca_gpio_value
7588  * to get the available value that this item can use.
7589  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7590  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
7591  *
7592  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
7593  * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
7594  * to get the available value that this item can use.
7595  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7596  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7597  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7598  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7599  * attribute is present.
7600  *
7601  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
7602  * value to specify the gpio interrupt mode, please refer to enum
7603  * qca_gpio_interrupt_mode to get the available value that this item can use.
7604  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7605  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7606  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7607  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7608  * attribute is present.
7609  *
7610  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
7611  * value to specify the gpio direction, please refer to enum qca_gpio_direction
7612  * to get the available value that this item can use.
7613  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7614  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7615  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7616  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7617  * attribute is present.
7618  *
7619  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
7620  * Value to specify the mux config. Meaning of a given value is dependent
7621  * on the target chipset and gpio pin. Must be of the range 0-15.
7622  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7623  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
7624  *
7625  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
7626  * Value to specify the drive, Refer to enum qca_gpio_drive.
7627  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7628  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
7629  *
7630  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
7631  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7632  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
7633  * other parameters for the given GPIO will be obtained from internal
7634  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
7635  * specified to indicate the GPIO pin being configured.
7636  */
7637 enum qca_wlan_gpio_attr {
7638 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
7639 	/* Unsigned 32-bit attribute for GPIO command */
7640 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
7641 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
7642 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
7643 	/* Unsigned 32-bit attribute for GPIO value to configure */
7644 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
7645 	/* Unsigned 32-bit attribute for GPIO pull type */
7646 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
7647 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
7648 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
7649 	/* Unsigned 32-bit attribute for GPIO direction to configure */
7650 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
7651 	/* Unsigned 32-bit attribute for GPIO mux config */
7652 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
7653 	/* Unsigned 32-bit attribute for GPIO drive */
7654 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
7655 	/* Flag attribute for using internal gpio configuration */
7656 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
7657 
7658 	/* keep last */
7659 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
7660 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
7661 		QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
7662 };
7663 
7664 /**
7665  * enum gpio_cmd_type - GPIO configuration command type
7666  * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
7667  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
7668  */
7669 enum qca_gpio_cmd_type {
7670 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
7671 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
7672 };
7673 
7674 /**
7675  * enum qca_gpio_pull_type - GPIO pull type
7676  * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
7677  * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
7678  * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
7679  */
7680 enum qca_gpio_pull_type {
7681 	QCA_WLAN_GPIO_PULL_NONE = 0,
7682 	QCA_WLAN_GPIO_PULL_UP = 1,
7683 	QCA_WLAN_GPIO_PULL_DOWN = 2,
7684 	QCA_WLAN_GPIO_PULL_MAX,
7685 };
7686 
7687 /**
7688  * enum qca_gpio_direction - GPIO direction
7689  * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
7690  * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
7691  * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
7692  */
7693 enum qca_gpio_direction {
7694 	QCA_WLAN_GPIO_INPUT = 0,
7695 	QCA_WLAN_GPIO_OUTPUT = 1,
7696 	QCA_WLAN_GPIO_DIR_MAX,
7697 };
7698 
7699 /**
7700  * enum qca_gpio_value - GPIO Value
7701  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
7702  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
7703  * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
7704  */
7705 enum qca_gpio_value {
7706 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
7707 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
7708 	QCA_WLAN_GPIO_LEVEL_MAX,
7709 };
7710 
7711 /**
7712  * enum gpio_interrupt_mode - GPIO interrupt mode
7713  * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
7714  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
7715  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
7716  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
7717  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
7718  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
7719  * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
7720  */
7721 enum qca_gpio_interrupt_mode {
7722 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
7723 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
7724 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
7725 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
7726 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
7727 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
7728 	QCA_WLAN_GPIO_INTMODE_MAX,
7729 };
7730 
7731 /**
7732  * enum gpio_drive - GPIO drive
7733  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
7734  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
7735  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
7736  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
7737  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
7738  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
7739  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
7740  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
7741  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
7742  */
7743 enum qca_gpio_drive {
7744 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
7745 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
7746 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
7747 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
7748 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
7749 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
7750 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
7751 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
7752 	QCA_WLAN_GPIO_DRIVE_MAX,
7753 };
7754 
7755 /**
7756  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
7757  * MSDUQ depth threshold per peer per tid in the target
7758  *
7759  * Associated Vendor Command:
7760  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
7761  */
7762 enum qca_wlan_set_qdepth_thresh_attr {
7763 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
7764 	/* 6-byte MAC address */
7765 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
7766 	/* Unsigned 32-bit attribute for holding the TID */
7767 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
7768 	/* Unsigned 32-bit attribute for holding the update mask
7769 	 * bit 0 - Update high priority msdu qdepth threshold
7770 	 * bit 1 - Update low priority msdu qdepth threshold
7771 	 * bit 2 - Update UDP msdu qdepth threshold
7772 	 * bit 3 - Update Non UDP msdu qdepth threshold
7773 	 * rest of bits are reserved
7774 	 */
7775 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
7776 	/* Unsigned 32-bit attribute for holding the threshold value */
7777 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
7778 
7779 	/* keep last */
7780 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
7781 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
7782 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
7783 };
7784 
7785 /**
7786  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
7787  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
7788  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
7789  * external ACS policies to select the channels w.r.t. the PCL weights.
7790  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
7791  * their PCL weights.)
7792  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
7793  * select a channel with non-zero PCL weight.
7794  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
7795  * channel with non-zero PCL weight.
7796  *
7797  */
7798 enum qca_wlan_vendor_attr_external_acs_policy {
7799 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
7800 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
7801 };
7802 
7803 /**
7804  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
7805  */
7806 enum qca_wlan_vendor_attr_spectral_scan {
7807 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
7808 	/*
7809 	 * Number of times the chip enters spectral scan mode before
7810 	 * deactivating spectral scans. When set to 0, chip will enter spectral
7811 	 * scan mode continuously. u32 attribute.
7812 	 */
7813 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
7814 	/*
7815 	 * Spectral scan period. Period increment resolution is 256*Tclk,
7816 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
7817 	 */
7818 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
7819 	/* Spectral scan priority. u32 attribute. */
7820 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
7821 	/* Number of FFT data points to compute. u32 attribute. */
7822 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
7823 	/*
7824 	 * Enable targeted gain change before starting the spectral scan FFT.
7825 	 * u32 attribute.
7826 	 */
7827 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
7828 	/* Restart a queued spectral scan. u32 attribute. */
7829 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
7830 	/*
7831 	 * Noise floor reference number for the calculation of bin power.
7832 	 * u32 attribute.
7833 	 */
7834 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
7835 	/*
7836 	 * Disallow spectral scan triggers after TX/RX packets by setting
7837 	 * this delay value to roughly SIFS time period or greater.
7838 	 * u32 attribute.
7839 	 */
7840 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
7841 	/*
7842 	 * Number of strong bins (inclusive) per sub-channel, below
7843 	 * which a signal is declared a narrow band tone. u32 attribute.
7844 	 */
7845 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
7846 	/*
7847 	 * Specify the threshold over which a bin is declared strong (for
7848 	 * scan bandwidth analysis). u32 attribute.
7849 	 */
7850 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
7851 	/* Spectral scan report mode. u32 attribute. */
7852 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
7853 	/*
7854 	 * RSSI report mode, if the ADC RSSI is below
7855 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
7856 	 * then FFTs will not trigger, but timestamps and summaries get
7857 	 * reported. u32 attribute.
7858 	 */
7859 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
7860 	/*
7861 	 * ADC RSSI must be greater than or equal to this threshold (signed dB)
7862 	 * to ensure spectral scan reporting with normal error code.
7863 	 * u32 attribute.
7864 	 */
7865 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
7866 	/*
7867 	 * Format of frequency bin magnitude for spectral scan triggered FFTs:
7868 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
7869 	 * u32 attribute.
7870 	 */
7871 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
7872 	/*
7873 	 * Format of FFT report to software for spectral scan triggered FFTs.
7874 	 * 0: No FFT report (only spectral scan summary report)
7875 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
7876 	 * report
7877 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
7878 	 * bins (in-band) per FFT + spectral scan summary report
7879 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
7880 	 * bins (all) per FFT + spectral scan summary report
7881 	 * u32 attribute.
7882 	 */
7883 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
7884 	/*
7885 	 * Number of LSBs to shift out in order to scale the FFT bins.
7886 	 * u32 attribute.
7887 	 */
7888 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
7889 	/*
7890 	 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
7891 	 * in dBm power. u32 attribute.
7892 	 */
7893 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
7894 	/*
7895 	 * Per chain enable mask to select input ADC for search FFT.
7896 	 * u32 attribute.
7897 	 */
7898 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
7899 	/*
7900 	 * An unsigned 64-bit integer provided by host driver to identify the
7901 	 * spectral scan request. This attribute is included in the scan
7902 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
7903 	 * and used as an attribute in
7904 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
7905 	 * specific scan to be stopped.
7906 	 */
7907 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
7908 	/* Skip interval for FFT reports. u32 attribute */
7909 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
7910 	/* Set to report only one set of FFT results.
7911 	 * u32 attribute.
7912 	 */
7913 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
7914 	/* Debug level for spectral module in driver.
7915 	 * 0 : Verbosity level 0
7916 	 * 1 : Verbosity level 1
7917 	 * 2 : Verbosity level 2
7918 	 * 3 : Matched filterID display
7919 	 * 4 : One time dump of FFT report
7920 	 * u32 attribute.
7921 	 */
7922 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
7923 	/* Type of spectral scan request. u32 attribute.
7924 	 * It uses values defined in enum
7925 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
7926 	 */
7927 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
7928 	/* This specifies the frequency span over which spectral
7929 	 * scan would be carried out. Its value depends on the
7930 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
7931 	 * the relation is as follows.
7932 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7933 	 *    Not applicable. Spectral scan would happen in the
7934 	 *    operating span.
7935 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7936 	 *    Center frequency (in MHz) of the span of interest or
7937 	 *    for convenience, center frequency (in MHz) of any channel
7938 	 *    in the span of interest. For 80+80 MHz agile spectral scan
7939 	 *    request it represents center frequency (in MHz) of the primary
7940 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
7941 	 *    channel in the primary 80 MHz span. If agile spectral scan is
7942 	 *    initiated without setting a valid frequency it returns the
7943 	 *    error code
7944 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
7945 	 * u32 attribute.
7946 	 */
7947 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
7948 	/* Spectral scan mode. u32 attribute.
7949 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7950 	 * If this attribute is not present, it is assumed to be
7951 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
7952 	 */
7953 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
7954 	/* Spectral scan error code. u32 attribute.
7955 	 * It uses values defined in enum
7956 	 * qca_wlan_vendor_spectral_scan_error_code.
7957 	 * This attribute is included only in failure scenarios.
7958 	 */
7959 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
7960 	/* 8-bit unsigned value to enable/disable debug of the
7961 	 * Spectral DMA ring.
7962 	 * 1-enable, 0-disable
7963 	 */
7964 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
7965 	/* 8-bit unsigned value to enable/disable debug of the
7966 	 * Spectral DMA buffers.
7967 	 * 1-enable, 0-disable
7968 	 */
7969 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
7970 	/* This specifies the frequency span over which spectral scan would be
7971 	 * carried out. Its value depends on the value of
7972 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
7973 	 * follows.
7974 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7975 	 *    Not applicable. Spectral scan would happen in the operating span.
7976 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7977 	 *    This attribute is applicable only for agile spectral scan
7978 	 *    requests in 80+80 MHz mode. It represents center frequency (in
7979 	 *    MHz) of the secondary 80 MHz span or for convenience, center
7980 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
7981 	 * u32 attribute.
7982 	 */
7983 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
7984 	/* This attribute specifies the bandwidth to be used for Spectral scan
7985 	 * operation. This is an u8 attribute and uses the values in enum
7986 	 * nl80211_chan_width.  This is an optional attribute.
7987 	 * If this attribute is not populated, the driver should configure the
7988 	 * Spectral scan bandwidth to the maximum value supported by the target
7989 	 * for the current operating bandwidth.
7990 	 */
7991 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
7992 	/* Spectral FFT recapture flag attribute, to enable/disable FFT
7993 	 * recapture. Recapture can only be enabled for Scan period greater
7994 	 * than 52us.
7995 	 * If this attribute is enabled, re-triggers will be enabled in uCode
7996 	 * when AGC gain changes.
7997 	 */
7998 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
7999 
8000 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
8001 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
8002 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
8003 };
8004 
8005 /**
8006  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
8007  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
8008  */
8009 enum qca_wlan_vendor_attr_spectral_diag_stats {
8010 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
8011 	/* Number of spectral TLV signature mismatches.
8012 	 * u64 attribute.
8013 	 */
8014 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
8015 	/* Number of spectral phyerror events with insufficient length when
8016 	 * parsing for secondary 80 search FFT report. u64 attribute.
8017 	 */
8018 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
8019 	/* Number of spectral phyerror events without secondary 80
8020 	 * search FFT report. u64 attribute.
8021 	 */
8022 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
8023 	/* Number of spectral phyerror events with vht operation segment 1 id
8024 	 * mismatches in search fft report. u64 attribute.
8025 	 */
8026 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
8027 	/* Number of spectral phyerror events with vht operation segment 2 id
8028 	 * mismatches in search fft report. u64 attribute.
8029 	 */
8030 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
8031 
8032 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
8033 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
8034 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
8035 };
8036 
8037 /**
8038  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
8039  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
8040  */
8041 enum qca_wlan_vendor_attr_spectral_cap {
8042 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
8043 	/* Flag attribute to indicate phydiag capability */
8044 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
8045 	/* Flag attribute to indicate radar detection capability */
8046 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
8047 	/* Flag attribute to indicate spectral capability */
8048 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
8049 	/* Flag attribute to indicate advanced spectral capability */
8050 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
8051 	/* Spectral hardware generation. u32 attribute.
8052 	 * It uses values defined in enum
8053 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
8054 	 */
8055 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
8056 	/* Spectral bin scaling formula ID. u16 attribute.
8057 	 * It uses values defined in enum
8058 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
8059 	 */
8060 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
8061 	/* Spectral bin scaling param - low level offset.
8062 	 * s16 attribute.
8063 	 */
8064 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
8065 	/* Spectral bin scaling param - high level offset.
8066 	 * s16 attribute.
8067 	 */
8068 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
8069 	/* Spectral bin scaling param - RSSI threshold.
8070 	 * s16 attribute.
8071 	 */
8072 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
8073 	/* Spectral bin scaling param - default AGC max gain.
8074 	 * u8 attribute.
8075 	 */
8076 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
8077 	/* Flag attribute to indicate agile spectral scan capability
8078 	 * for 20/40/80 MHz modes.
8079 	 */
8080 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
8081 	/* Flag attribute to indicate agile spectral scan capability
8082 	 * for 160 MHz mode.
8083 	 */
8084 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
8085 	/* Flag attribute to indicate agile spectral scan capability
8086 	 * for 80+80 MHz mode.
8087 	 */
8088 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
8089 	/* Number of spectral detectors used for scan in 20 MHz.
8090 	 * u32 attribute.
8091 	 */
8092 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
8093 	/* Number of spectral detectors used for scan in 40 MHz.
8094 	 * u32 attribute.
8095 	 */
8096 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
8097 	/* Number of spectral detectors used for scan in 80 MHz.
8098 	 * u32 attribute.
8099 	 */
8100 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
8101 	/* Number of spectral detectors used for scan in 160 MHz.
8102 	 * u32 attribute.
8103 	 */
8104 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
8105 	/* Number of spectral detectors used for scan in 80+80 MHz.
8106 	 * u32 attribute.
8107 	 */
8108 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
8109 	/* Flag attribute to indicate agile spectral scan capability
8110 	 * for 320 MHz mode.
8111 	 */
8112 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
8113 	/* Number of spectral detectors used for scan in 320 MHz.
8114 	 * u32 attribute.
8115 	 */
8116 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
8117 
8118 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
8119 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
8120 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
8121 };
8122 
8123 /**
8124  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
8125  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
8126  */
8127 enum qca_wlan_vendor_attr_spectral_scan_status {
8128 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
8129 	/* Flag attribute to indicate whether spectral scan is enabled */
8130 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
8131 	/* Flag attribute to indicate whether spectral scan is in progress*/
8132 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
8133 	/* Spectral scan mode. u32 attribute.
8134 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8135 	 * If this attribute is not present, normal mode
8136 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
8137 	 * requested.
8138 	 */
8139 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
8140 
8141 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
8142 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
8143 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
8144 };
8145 
8146 /**
8147  * enum qca_wlan_vendor_attr_config_latency_level - Level for
8148  * wlan latency module.
8149  *
8150  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8151  * power saving which would causing data exchange out of service, this
8152  * would be a big impact on latency. For latency sensitive applications over
8153  * Wi-Fi are intolerant to such operations and thus would configure them
8154  * to meet their respective needs. It is well understood by such applications
8155  * that altering the default behavior would degrade the Wi-Fi functionality
8156  * w.r.t the above pointed WLAN operations.
8157  *
8158  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8159  *      Default WLAN operation level which throughput orientated.
8160  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8161  *      Use XR level to benefit XR (extended reality) application to achieve
8162  *      latency and power by via constraint scan/roaming/adaptive PS.
8163  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
8164  *      Use low latency level to benefit application like concurrent
8165  *      downloading or video streaming via constraint scan/adaptive PS.
8166  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8167  *      Use ultra low latency level to benefit for gaming/voice
8168  *      application via constraint scan/roaming/adaptive PS.
8169  */
8170 enum qca_wlan_vendor_attr_config_latency_level {
8171 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8172 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
8173 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8174 	/* legacy name */
8175 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8176 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
8177 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8178 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8179 
8180 	/* keep last */
8181 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8182 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8183 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8184 };
8185 
8186 /**
8187  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
8188  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
8189  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
8190  * spectral scan request types.
8191  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
8192  * set the spectral parameters and start scan.
8193  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
8194  * only set the spectral parameters.
8195  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
8196  * only start the spectral scan.
8197  */
8198 enum qca_wlan_vendor_attr_spectral_scan_request_type {
8199 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
8200 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
8201 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
8202 };
8203 
8204 /**
8205  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
8206  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
8207  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
8208  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
8209  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
8210  * spectral scan modes.
8211  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
8212  * spectral scan in the current operating span.
8213  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
8214  * spectral scan in the configured agile span.
8215  */
8216 enum qca_wlan_vendor_spectral_scan_mode {
8217 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
8218 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
8219 };
8220 
8221 /**
8222  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
8223  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
8224  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
8225  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
8226  * of a parameter is not supported.
8227  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
8228  * mode is not supported.
8229  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
8230  * has invalid value.
8231  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
8232  * is not initialized.
8233  */
8234 enum qca_wlan_vendor_spectral_scan_error_code {
8235 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
8236 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
8237 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
8238 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
8239 };
8240 
8241 /**
8242  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
8243  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
8244  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8245  * spectral hardware generation.
8246  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
8247  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
8248  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
8249  */
8250 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
8251 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
8252 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
8253 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
8254 };
8255 
8256 /**
8257  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
8258  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
8259  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8260  * Spectral bin scaling formula ID.
8261  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
8262  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
8263  * and RSSI threshold based formula.
8264  */
8265 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
8266 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
8267 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
8268 };
8269 
8270 /**
8271  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
8272  * RF Operating Parameter (RROP) information is available, and if so, at which
8273  * point in the application-driver interaction sequence it can be retrieved by
8274  * the application from the driver. This point may vary by architecture and
8275  * other factors. This is a u16 value.
8276  */
8277 enum qca_wlan_vendor_attr_rropavail_info {
8278 	/* RROP information is unavailable. */
8279 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
8280 	/* RROP information is available and the application can retrieve the
8281 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
8282 	 * event from the driver.
8283 	 */
8284 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
8285 	/* RROP information is available only after a vendor specific scan
8286 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
8287 	 * successfully completed. The application can retrieve the information
8288 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
8289 	 * the driver.
8290 	 */
8291 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
8292 };
8293 
8294 /**
8295  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
8296  * Representative RF Operating Parameter (RROP) information. It is sent for the
8297  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
8298  * intended for use by external Auto Channel Selection applications. It provides
8299  * guidance values for some RF parameters that are used by the system during
8300  * operation. These values could vary by channel, band, radio, and so on.
8301  */
8302 enum qca_wlan_vendor_attr_rrop_info {
8303 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
8304 
8305 	/* Representative Tx Power List (RTPL) which has an array of nested
8306 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
8307 	 */
8308 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
8309 
8310 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
8311 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
8312 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
8313 };
8314 
8315 /**
8316  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
8317  * entry instances in the Representative Tx Power List (RTPL). It provides
8318  * simplified power values intended for helping external Auto channel Selection
8319  * applications compare potential Tx power performance between channels, other
8320  * operating conditions remaining identical. These values are not necessarily
8321  * the actual Tx power values that will be used by the system. They are also not
8322  * necessarily the max or average values that will be used. Instead, they are
8323  * relative, summarized keys for algorithmic use computed by the driver or
8324  * underlying firmware considering a number of vendor specific factors.
8325  */
8326 enum qca_wlan_vendor_attr_rtplinst {
8327 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
8328 
8329 	/* Primary channel number (u8).
8330 	 * Note: If both the driver and user space application support the
8331 	 * 6 GHz band, this attribute is deprecated and
8332 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
8333 	 * maintain backward compatibility,
8334 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
8335 	 * driver or user space application or both do not support the 6 GHz
8336 	 * band.
8337 	 */
8338 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
8339 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
8340 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
8341 	/* Representative Tx power in dBm (s32) with emphasis on range. */
8342 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
8343 	/* Primary channel center frequency (u32) in MHz */
8344 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
8345 
8346 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
8347 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
8348 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
8349 };
8350 
8351 /**
8352  * enum qca_wlan_vendor_attr_mac - Used by the vendor command
8353  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8354  *
8355  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
8356  *  array of nested values as per attributes in
8357  *  enum qca_wlan_vendor_attr_mac_mode_info.
8358  */
8359 enum qca_wlan_vendor_attr_mac {
8360 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
8361 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
8362 
8363 	/* keep last */
8364 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
8365 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
8366 		QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
8367 };
8368 
8369 /**
8370  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
8371  * WiFi netdev interface on a respective MAC. Used by the attribute
8372  * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
8373  *
8374  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
8375  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
8376  *  the connected Wi-Fi interface(u32).
8377  */
8378 enum qca_wlan_vendor_attr_mac_iface_info {
8379 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
8380 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
8381 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
8382 
8383 	/* keep last */
8384 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
8385 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
8386 		QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
8387 };
8388 
8389 /**
8390  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
8391  *  Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
8392  *  vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8393  *
8394  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
8395  *  MAC (u32)
8396  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
8397  *  at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
8398  *  in enum nl80211_band.
8399  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
8400  * interfaces associated with this MAC. Represented by enum
8401  * qca_wlan_vendor_attr_mac_iface_info.
8402  */
8403 enum qca_wlan_vendor_attr_mac_info {
8404 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
8405 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
8406 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
8407 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
8408 
8409 	/* keep last */
8410 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
8411 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
8412 		QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
8413 
8414 };
8415 
8416 /**
8417  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
8418  * to get thermal status from driver/firmware.
8419  * enum values are used for NL attributes encapsulated inside
8420  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
8421  *
8422  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
8423  * of a thermal level in Celsius. u32 size.
8424  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
8425  * of a thermal level in Celsius. u32 size.
8426  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
8427  * thermal level in milliseconds. u32 size.
8428  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
8429  * of times the temperature crossed into the temperature range defined by the
8430  * thermal level from both higher and lower directions. u32 size.
8431  */
8432 enum qca_wlan_vendor_attr_thermal_stats {
8433 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
8434 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
8435 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
8436 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
8437 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
8438 
8439 	/* keep last */
8440 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
8441 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
8442 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
8443 };
8444 
8445 /**
8446  * enum he_fragmentation_val - HE fragmentation support values
8447  * Indicates level of dynamic fragmentation that is supported by
8448  * a STA as a recipient.
8449  * HE fragmentation values are defined as per 11ax spec and are used in
8450  * HE capability IE to advertise the support. These values are validated
8451  * in the driver to check the device capability and advertised in the HE
8452  * capability element.
8453  *
8454  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8455  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8456  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
8457  *	within an A-MPDU that is not an S-MPDU.
8458  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8459  *	contained within an MPDU or S-MPDU and support for up to one dynamic
8460  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
8461  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8462  *	MPDU or S-MPDU.
8463  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8464  *	contained within an MPDU or S-MPDU and support for multiple dynamic
8465  *	fragments for each MSDU and for each A-MSDU if supported by the
8466  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8467  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8468  */
8469 enum he_fragmentation_val {
8470 	HE_FRAG_DISABLE,
8471 	HE_FRAG_LEVEL1,
8472 	HE_FRAG_LEVEL2,
8473 	HE_FRAG_LEVEL3,
8474 };
8475 
8476 /**
8477  * enum he_mcs_config - HE MCS support configuration
8478  *
8479  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8480  * These values are used in driver to configure the HE MCS map to advertise
8481  * Tx/Rx MCS map in HE capability and these values are applied for all the
8482  * streams supported by the device. To configure MCS for different bandwidths,
8483  * vendor command needs to be sent using this attribute with appropriate value.
8484  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8485  * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
8486  * for HE_160_MCS0_11 send this command using HE MCS config attribute with
8487  * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
8488  *
8489  * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
8490  * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
8491  * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
8492  * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
8493  * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
8494  * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
8495  * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
8496  * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
8497  * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
8498  */
8499 enum he_mcs_config {
8500 	HE_80_MCS0_7 = 0,
8501 	HE_80_MCS0_9 = 1,
8502 	HE_80_MCS0_11 = 2,
8503 	HE_160_MCS0_7 = 4,
8504 	HE_160_MCS0_9 = 5,
8505 	HE_160_MCS0_11 = 6,
8506 	HE_80p80_MCS0_7 = 8,
8507 	HE_80p80_MCS0_9 = 9,
8508 	HE_80p80_MCS0_11 = 10,
8509 };
8510 
8511 /**
8512  * enum qca_wlan_ba_session_config - BA session configuration
8513  *
8514  * Indicates the configuration values for BA session configuration attribute.
8515  *
8516  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8517  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8518  */
8519 enum qca_wlan_ba_session_config {
8520 	QCA_WLAN_ADD_BA = 1,
8521 	QCA_WLAN_DELETE_BA = 2,
8522 };
8523 
8524 /**
8525  * enum qca_wlan_ac_type - access category type
8526  *
8527  * Indicates the access category type value.
8528  *
8529  * @QCA_WLAN_AC_BE: BE access category
8530  * @QCA_WLAN_AC_BK: BK access category
8531  * @QCA_WLAN_AC_VI: VI access category
8532  * @QCA_WLAN_AC_VO: VO access category
8533  * @QCA_WLAN_AC_ALL: All ACs
8534  */
8535 enum qca_wlan_ac_type {
8536 	QCA_WLAN_AC_BE = 0,
8537 	QCA_WLAN_AC_BK = 1,
8538 	QCA_WLAN_AC_VI = 2,
8539 	QCA_WLAN_AC_VO = 3,
8540 	QCA_WLAN_AC_ALL = 4,
8541 };
8542 
8543 /**
8544  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8545  *
8546  * Indicates the HE LTF configuration value.
8547  *
8548  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
8549  * the mandatory HE-LTF based on the GI setting
8550  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8551  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8552  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8553  */
8554 enum qca_wlan_he_ltf_cfg {
8555 	QCA_WLAN_HE_LTF_AUTO = 0,
8556 	QCA_WLAN_HE_LTF_1X = 1,
8557 	QCA_WLAN_HE_LTF_2X = 2,
8558 	QCA_WLAN_HE_LTF_4X = 3,
8559 };
8560 
8561 /**
8562  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8563  *
8564  * Indicates the HE trigger frame MAC padding duration value.
8565  *
8566  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8567  * process the trigger frame.
8568  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8569  * trigger frame.
8570  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8571  * trigger frame.
8572  */
8573 enum qca_wlan_he_mac_padding_dur {
8574 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8575 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8576 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8577 };
8578 
8579 /**
8580  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8581  *
8582  * Indicates the HE Operating mode control channel width setting value.
8583  *
8584  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8585  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8586  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8587  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8588  */
8589 enum qca_wlan_he_om_ctrl_ch_bw {
8590 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8591 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8592 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8593 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8594 };
8595 
8596 /**
8597  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8598  *
8599  * Indicates the frame types to use for keep alive data.
8600  *
8601  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8602  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8603  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8604  */
8605 enum qca_wlan_keep_alive_data_type {
8606 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8607 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
8608 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8609 };
8610 
8611 /**
8612  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8613  * HE operating mode control transmit request. These attributes are
8614  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8615  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8616  *
8617  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8618  * indicates the maximum number of spatial streams, NSS, that the STA
8619  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8620  * and is set to NSS - 1.
8621  *
8622  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8623  * indicates the operating channel width supported by the STA for both
8624  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8625  *
8626  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8627  * indicates the all trigger based UL MU operations by the STA.
8628  * 0 - UL MU operations are enabled by the STA.
8629  * 1 - All triggered UL MU transmissions are suspended by the STA.
8630  *
8631  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8632  * indicates the maximum number of space-time streams, NSTS, that
8633  * the STA supports in transmission and is set to NSTS - 1.
8634  *
8635  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8636  * combined with the UL MU Disable subfield and the recipient's setting
8637  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8638  * capabilities to determine which HE TB PPDUs are possible by the
8639  * STA to transmit.
8640  * 0 - UL MU data operations are enabled by the STA.
8641  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8642  * bit is not set, else UL MU Tx is suspended.
8643  *
8644  */
8645 enum qca_wlan_vendor_attr_he_omi_tx {
8646 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8647 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8648 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8649 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8650 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
8651 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
8652 
8653 	/* keep last */
8654 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8655 	QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8656 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8657 };
8658 
8659 /**
8660  * enum qca_wlan_vendor_phy_mode - Different PHY modes
8661  * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8662  *
8663  * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8664  * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8665  * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8666  * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8667  * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8668  * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8669  * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8670  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8671  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8672  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8673  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8674  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8675  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8676  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8677  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8678  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8679  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8680  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8681  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8682  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8683  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8684  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8685  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8686  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8687  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8688  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8689  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8690  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8691  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8692  */
8693 enum qca_wlan_vendor_phy_mode {
8694 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8695 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8696 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8697 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8698 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8699 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8700 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8701 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8702 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8703 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8704 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8705 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8706 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8707 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8708 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8709 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8710 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8711 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8712 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8713 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8714 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8715 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8716 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8717 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8718 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8719 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8720 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8721 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8722 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8723 };
8724 
8725 /* Attributes for data used by
8726  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8727  */
8728 enum qca_wlan_vendor_attr_wifi_test_config {
8729 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8730 	/* 8-bit unsigned value to configure the driver to enable/disable
8731 	 * WMM feature. This attribute is used to configure testbed device.
8732 	 * 1-enable, 0-disable
8733 	 */
8734 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8735 
8736 	/* 8-bit unsigned value to configure the driver to accept/reject
8737 	 * the addba request from peer. This attribute is used to configure
8738 	 * the testbed device.
8739 	 * 1-accept addba, 0-reject addba
8740 	 */
8741 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8742 
8743 	/* 8-bit unsigned value to configure the driver to send or not to
8744 	 * send the addba request to peer.
8745 	 * This attribute is used to configure the testbed device.
8746 	 * 1-send addba, 0-do not send addba
8747 	 */
8748 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8749 
8750 	/* 8-bit unsigned value to indicate the HE fragmentation support.
8751 	 * Uses enum he_fragmentation_val values.
8752 	 * This attribute is used to configure the testbed device to
8753 	 * allow the advertised hardware capabilities to be downgraded
8754 	 * for testing purposes.
8755 	 */
8756 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8757 
8758 	/* 8-bit unsigned value to indicate the HE MCS support.
8759 	 * Uses enum he_mcs_config values.
8760 	 * This attribute is used to configure the testbed device to
8761 	 * allow the advertised hardware capabilities to be downgraded
8762 	 * for testing purposes.
8763 	 */
8764 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8765 
8766 	/* 8-bit unsigned value to configure the driver to allow or not to
8767 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8768 	 * This attribute is used to configure the testbed device.
8769 	 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
8770 	 */
8771 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8772 
8773 	/* 8-bit unsigned value to configure the driver to add a
8774 	 * new BA session or delete the existing BA session for
8775 	 * given TID. ADDBA command uses the buffer size and tid
8776 	 * configuration if user specifies the values else default
8777 	 * value for buffer size is used for all tids if the tid
8778 	 * also not specified. For DEL_BA command TID value is
8779 	 * required to process the command.
8780 	 * Uses enum qca_wlan_ba_session_config values.
8781 	 * This attribute is used to configure the testbed device.
8782 	 */
8783 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
8784 
8785 	/* 16-bit unsigned value to configure the buffer size in addba
8786 	 * request and response frames.
8787 	 * This attribute is used to configure the testbed device.
8788 	 * The range of the value is 0 to 256.
8789 	 */
8790 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
8791 
8792 	/* 8-bit unsigned value to configure the buffer size in addba
8793 	 * request and response frames.
8794 	 * This attribute is used to configure the testbed device.
8795 	 */
8796 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
8797 
8798 	/* 8-bit unsigned value to configure the no ack policy.
8799 	 * To configure no ack policy, access category value
8800 	 * is required to process the command.
8801 	 * This attribute is used to configure the testbed device.
8802 	 * 1 - enable no ack, 0 - disable no ack
8803 	 */
8804 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
8805 
8806 	/* 8-bit unsigned value to configure the AC for no ack policy
8807 	 * This attribute is used to configure the testbed device.
8808 	 * uses the enum qca_wlan_ac_type values
8809 	 */
8810 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
8811 
8812 	/* 8-bit unsigned value to configure the HE LTF
8813 	 * This attribute is used to configure the testbed device.
8814 	 * Uses the enum qca_wlan_he_ltf_cfg values.
8815 	 */
8816 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
8817 
8818 	/* 8-bit unsigned value to configure the tx beamformee.
8819 	 * This attribute is used to configure the testbed device.
8820 	 * 1 - enable, 0 - disable.
8821 	 */
8822 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
8823 
8824 	/* 8-bit unsigned value to configure the tx beamformee number of
8825 	 * space-time streams.
8826 	 * This attribute is used to configure the testbed device.
8827 	 * The range of the value is 0 to 8
8828 	 */
8829 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
8830 
8831 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
8832 	 * This attribute is used to configure the testbed device.
8833 	 * Uses the enum qca_wlan_ac_type values.
8834 	 */
8835 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
8836 
8837 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
8838 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
8839 	 * is required to process the command.
8840 	 * This attribute is used to configure the testbed device.
8841 	 */
8842 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
8843 
8844 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
8845 	 * given AC.
8846 	 * To configure MU EDCA ECW min value, MU EDCA access category value
8847 	 * is required to process the command.
8848 	 * This attribute is used to configure the testbed device.
8849 	 */
8850 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
8851 
8852 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
8853 	 * given AC.
8854 	 * To configure MU EDCA ECW max value, MU EDCA access category value
8855 	 * is required to process the command.
8856 	 * This attribute is used to configure the testbed device.
8857 	 */
8858 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
8859 
8860 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
8861 	 * To configure MU EDCA timer value, MU EDCA access category value
8862 	 * is required to process the command.
8863 	 * This attribute is used to configure the testbed device.
8864 	 */
8865 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
8866 
8867 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
8868 	 * duration.
8869 	 * This attribute is used to configure the testbed device.
8870 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
8871 	 */
8872 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
8873 
8874 	/* 8-bit unsigned value to override the MU EDCA params to defaults
8875 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
8876 	 * the default values else use the MU EDCA params from AP beacon.
8877 	 * This attribute is used to configure the testbed device.
8878 	 * 1 - enable override, 0 - disable.
8879 	 */
8880 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
8881 
8882 	/* 8-bit unsigned value to configure the support for receiving
8883 	 * an MPDU that contains an operating mode control subfield.
8884 	 * This attribute is used to configure the testbed device.
8885 	 * 1-enable, 0-disable.
8886 	 */
8887 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
8888 
8889 	/* Nested attribute values required to setup the TWT session.
8890 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
8891 	 * information to set up the session. It contains broadcast flags,
8892 	 * set_up flags, trigger value, flow type, flow ID, wake interval
8893 	 * exponent, protection, target wake time, wake duration, wake interval
8894 	 * mantissa. These nested attributes are used to setup a host triggered
8895 	 * TWT session.
8896 	 */
8897 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
8898 
8899 	/* This nested attribute is used to terminate the current TWT session.
8900 	 * It does not currently carry any attributes.
8901 	 */
8902 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
8903 
8904 	/* This nested attribute is used to suspend the current TWT session.
8905 	 * It does not currently carry any attributes.
8906 	 */
8907 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
8908 
8909 	/* Nested attribute values to indicate the request for resume.
8910 	 * This attribute is used to resume the TWT session.
8911 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
8912 	 * parameters required to resume the TWT session.
8913 	 */
8914 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
8915 
8916 	/* 8-bit unsigned value to set the HE operating mode control
8917 	 * (OM CTRL) Channel Width subfield.
8918 	 * The Channel Width subfield indicates the operating channel width
8919 	 * supported by the STA for both reception and transmission.
8920 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
8921 	 * This setting is cleared with the
8922 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8923 	 * flag attribute to reset defaults.
8924 	 * This attribute is used to configure the testbed device.
8925 	 */
8926 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
8927 
8928 	/* 8-bit unsigned value to configure the number of spatial
8929 	 * streams in HE operating mode control field.
8930 	 * This setting is cleared with the
8931 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8932 	 * flag attribute to reset defaults.
8933 	 * This attribute is used to configure the testbed device.
8934 	 */
8935 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
8936 
8937 	/* Flag attribute to configure the UL MU disable bit in
8938 	 * HE operating mode control field.
8939 	 * This setting is cleared with the
8940 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8941 	 * flag attribute to reset defaults.
8942 	 * This attribute is used to configure the testbed device.
8943 	 */
8944 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
8945 
8946 	/* Flag attribute to clear the previously set HE operating mode
8947 	 * control field configuration.
8948 	 * This attribute is used to configure the testbed device to reset
8949 	 * defaults to clear any previously set HE operating mode control
8950 	 * field configuration.
8951 	 */
8952 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
8953 
8954 	/* 8-bit unsigned value to configure HE single user PPDU
8955 	 * transmission. By default this setting is disabled and it
8956 	 * is disabled in the reset defaults of the device configuration.
8957 	 * This attribute is used to configure the testbed device.
8958 	 * 1-enable, 0-disable
8959 	 */
8960 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
8961 
8962 	/* 8-bit unsigned value to configure action frame transmission
8963 	 * in HE trigger based PPDU transmission.
8964 	 * By default this setting is disabled and it is disabled in
8965 	 * the reset defaults of the device configuration.
8966 	 * This attribute is used to configure the testbed device.
8967 	 * 1-enable, 0-disable
8968 	 */
8969 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
8970 
8971 	/* Nested attribute to indicate HE operating mode control field
8972 	 * transmission. It contains operating mode control field Nss,
8973 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
8974 	 * These nested attributes are used to send HE operating mode control
8975 	 * with configured values.
8976 	 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
8977 	 * This attribute is used to configure the testbed device.
8978 	 */
8979 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
8980 
8981 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
8982 	 * support for the reception of a frame that carries an HE variant
8983 	 * HT Control field.
8984 	 * This attribute is used to configure the testbed device.
8985 	 * 1-enable, 0-disable
8986 	 */
8987 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
8988 
8989 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
8990 	 * This attribute is used to configure the testbed device.
8991 	 * 1-enable, 0-disable
8992 	 */
8993 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
8994 
8995 	/* 8-bit unsigned value to configure HE testbed defaults.
8996 	 * This attribute is used to configure the testbed device.
8997 	 * 1-set the device HE capabilities to testbed defaults.
8998 	 * 0-reset the device HE capabilities to supported config.
8999 	 */
9000 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
9001 
9002 	/* 8-bit unsigned value to configure twt request support.
9003 	 * This attribute is used to configure the testbed device.
9004 	 * 1-enable, 0-disable.
9005 	 */
9006 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
9007 
9008 	/* 8-bit unsigned value to configure protection for Management
9009 	 * frames when PMF is enabled for the association.
9010 	 * This attribute is used to configure the testbed device.
9011 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
9012 	 */
9013 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
9014 
9015 	/* Flag attribute to inject Disassociation frame to the connected AP.
9016 	 * This attribute is used to configure the testbed device.
9017 	 */
9018 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
9019 
9020 	/* 8-bit unsigned value to configure an override for the RSNXE Used
9021 	 * subfield in the MIC control field of the FTE in FT Reassociation
9022 	 * Request frame.
9023 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
9024 	 * This attribute is used to configure the testbed device.
9025 	 * This attribute can be configured when STA is in disconnected or
9026 	 * associated state and the configuration is valid until the next
9027 	 * disconnection.
9028 	 */
9029 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
9030 
9031 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
9032 	 * Switch Announcement) when STA is in connected state.
9033 	 * 0 - Default behavior, 1 - Ignore CSA.
9034 	 * This attribute is used to configure the testbed device.
9035 	 * This attribute can be configured when STA is in disconnected or
9036 	 * associated state and the configuration is valid until the next
9037 	 * disconnection.
9038 	 */
9039 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
9040 
9041 	/* Nested attribute values required to configure OCI (Operating Channel
9042 	 * Information). Attributes defined in enum
9043 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
9044 	 * This attribute is used to configure the testbed device.
9045 	 * This attribute can be configured when STA is in disconnected or
9046 	 * associated state and the configuration is valid until the next
9047 	 * disconnection.
9048 	 */
9049 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
9050 
9051 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
9052 	 * Query timeout. If this configuration is enabled STA shall not send
9053 	 * Deauthentication frmae when SA Query times out (mainly, after a
9054 	 * channel switch when OCV is enabled).
9055 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9056 	 * This attribute is used to configure the testbed device.
9057 	 * This attribute can be configured only when STA is in associated state
9058 	 * and the configuration is valid until the disconnection.
9059 	 */
9060 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9061 
9062 	/* 8-bit unsigned value to configure the driver/firmware to start or
9063 	 * stop transmitting FILS discovery frames.
9064 	 * 0 - Stop transmitting FILS discovery frames
9065 	 * 1 - Start transmitting FILS discovery frames
9066 	 * This attribute is used to configure the testbed device.
9067 	 * This attribute can be configured only in AP mode and the
9068 	 * configuration is valid until AP restart.
9069 	 */
9070 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9071 
9072 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9073 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9074 	 * information field.
9075 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
9076 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
9077 	 * This attribute is used to configure the testbed device.
9078 	 */
9079 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9080 
9081 	/* 16-bit unsigned value to configure the driver with a specific BSS
9082 	 * max idle period to advertise in the BSS Max Idle Period element
9083 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9084 	 * This attribute is used to configure the testbed device.
9085 	 */
9086 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9087 
9088 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
9089 	 * for data transmission.
9090 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9091 	 * This attribute is used to configure the testbed device.
9092 	 */
9093 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9094 
9095 	/* 8-bit unsigned value to configure the driver to disable data and
9096 	 * management response frame transmission to test the BSS max idle
9097 	 * feature.
9098 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
9099 	 * This attribute is used to configure the testbed device.
9100 	 */
9101 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9102 
9103 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9104 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9105 	 * information field.
9106 	 * 0 - Disable Punctured Preamble Rx subfield
9107 	 * 1 - Enable Punctured Preamble Rx subfield
9108 	 * This attribute is used to configure the testbed device.
9109 	 */
9110 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9111 
9112 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9113 	 * requirement mismatch for 6 GHz connection.
9114 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9115 	 * This attribute is used to configure the testbed device.
9116 	 */
9117 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9118 
9119 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
9120 	 * connection with all security modes.
9121 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9122 	 * modes.
9123 	 * This attribute is used for testing purposes.
9124 	 */
9125 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9126 
9127 	/* 8-bit unsigned value to configure the driver to transmit data with
9128 	 * ER SU PPDU type.
9129 	 *
9130 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9131 	 * This attribute is used for testing purposes.
9132 	 */
9133 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9134 
9135 	/* 8-bit unsigned value to configure the driver to use Data or
9136 	 * Management frame type for keep alive data.
9137 	 * Uses enum qca_wlan_keep_alive_data_type values.
9138 	 *
9139 	 * This attribute is used for testing purposes.
9140 	 */
9141 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9142 
9143 	/* 8-bit unsigned value to configure the driver to use scan request
9144 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
9145 	 * driver saves this configuration and applies this setting to all user
9146 	 * space scan requests until the setting is cleared. If this
9147 	 * configuration is set, the driver uses the BSSID value from the scan
9148 	 * request to set the RA(A1) in the Probe Request frames during the
9149 	 * scan.
9150 	 *
9151 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9152 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9153 	 * This attribute is used for testing purposes.
9154 	 */
9155 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9156 
9157 	/* 8-bit unsigned value to configure the driver to enable/disable the
9158 	 * BSS max idle period support.
9159 	 *
9160 	 * 0 - Disable the BSS max idle support.
9161 	 * 1 - Enable the BSS max idle support.
9162 	 * This attribute is used for testing purposes.
9163 	 */
9164 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9165 
9166 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9167 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
9168 	 * capabilities information field.
9169 	 * 0 - Disable Rx control frame to MultiBSS subfield
9170 	 * 1 - Enable Rx control frame to MultiBSS subfield
9171 	 * This attribute is used to configure the testbed device.
9172 	 */
9173 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9174 
9175 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9176 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
9177 	 * information field.
9178 	 * 0 - Disable Broadcast TWT support subfield
9179 	 * 1 - Enable Broadcast TWT support subfield
9180 	 * This attribute is used to configure the testbed device.
9181 	 */
9182 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9183 
9184 	/* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9185 	 * mode for 802.11be MLO capable devices. If the attribute is set to 1,
9186 	 * and if the FW supports this capability too, then the STA host
9187 	 * advertises this capability to AP over assoc request frame. This
9188 	 * attribute will not have any effect on legacy devices with no 802.11be
9189 	 * support.
9190 	 * 0 - Default behavior
9191 	 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9192 	 * This attribute is used to configure the testbed device.
9193 	 */
9194 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9195 
9196 	/* 8-bit unsigned value to configure the driver to enable/disable the
9197 	 * periodic sounding for Tx beamformer functionality. The default
9198 	 * behavior uses algorithm to do sounding based on packet stats.
9199 	 *
9200 	 * 0 - Default behavior.
9201 	 * 1 - Enable the periodic sounding for Tx beamformer.
9202 	 * This attribute is used for testing purposes.
9203 	 */
9204 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
9205 
9206 	/* keep last */
9207 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
9208 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
9209 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
9210 };
9211 
9212 /**
9213  * enum qca_wlan_twt_operation - Operation of the config TWT request
9214  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
9215  * The response for the respective operations can be either synchronous or
9216  * asynchronous (wherever specified). If synchronous, the response to this
9217  * operation is obtained in the corresponding vendor command reply to the user
9218  * space. For the asynchronous case the response is obtained as an event with
9219  * the same operation type.
9220  *
9221  * Drivers shall support either of these modes but not both simultaneously.
9222  * This support for asynchronous mode is advertised through the flag
9223  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
9224  * the driver shall support synchronous mode.
9225  *
9226  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
9227  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9228  * qca_wlan_vendor_attr_twt_setup. Depending upon the
9229  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
9230  * synchronous or asynchronous operation.
9231  *
9232  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
9233  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9234  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
9235  *
9236  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
9237  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9238  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9239  * This terminate can either get triggered by the user space or can as well be
9240  * a notification from the firmware if it initiates a terminate.
9241  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9242  * the request from user space can either be a synchronous or asynchronous
9243  * operation.
9244  *
9245  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
9246  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9247  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9248  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9249  * this is either a synchronous or asynchronous operation.
9250  *
9251  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
9252  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9253  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
9254  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
9255  * request.
9256  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9257  * capability, this is either a synchronous or asynchronous operation.
9258  *
9259  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
9260  * combination of suspend and resume in a single request. Required parameters
9261  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
9262  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
9263  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9264  * capability, this is either a synchronous or asynchronous operation.
9265  *
9266  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
9267  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
9268  * session is setup. It's a synchronous operation.
9269  *
9270  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
9271  * Valid only after the TWT session is setup. It's a synchronous operation.
9272  *
9273  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
9274  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
9275  * operation.
9276  *
9277  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
9278  * ready for a new TWT session setup after it issued a twt teardown.
9279  *
9280  * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
9281  * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
9282  * the enum qca_wlan_vendor_attr_twt_set_param.
9283  *
9284  * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
9285  * related information for example TWT required bit in AP capabilities etc.
9286  * The reason for the notification is sent using
9287  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
9288  */
9289 enum qca_wlan_twt_operation {
9290 	QCA_WLAN_TWT_SET = 0,
9291 	QCA_WLAN_TWT_GET = 1,
9292 	QCA_WLAN_TWT_TERMINATE = 2,
9293 	QCA_WLAN_TWT_SUSPEND = 3,
9294 	QCA_WLAN_TWT_RESUME = 4,
9295 	QCA_WLAN_TWT_NUDGE = 5,
9296 	QCA_WLAN_TWT_GET_STATS = 6,
9297 	QCA_WLAN_TWT_CLEAR_STATS = 7,
9298 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
9299 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
9300 	QCA_WLAN_TWT_SET_PARAM = 10,
9301 	QCA_WLAN_TWT_NOTIFY = 11,
9302 };
9303 
9304 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
9305  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
9306  *
9307  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
9308  * u8 attribute. Specify the TWT operation of this request. Possible values
9309  * are defined in enum qca_wlan_twt_operation. The parameters for the
9310  * respective operation is specified through
9311  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
9312  *
9313  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
9314  * parameters configured for TWT. These parameters are represented by
9315  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
9316  * enum qca_wlan_vendor_attr_twt_set_param or
9317  * enum qca_wlan_vendor_attr_twt_stats based on the operation.
9318  *
9319  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
9320  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
9321  * The values used by this attribute are defined in
9322  * enum qca_wlan_vendor_twt_status.
9323  */
9324 enum qca_wlan_vendor_attr_config_twt {
9325 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
9326 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
9327 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
9328 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
9329 
9330 	/* keep last */
9331 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
9332 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
9333 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
9334 };
9335 
9336 /**
9337  * qca_wlan_twt_setup_state: Represents the TWT session states.
9338  *
9339  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
9340  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
9341  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
9342  */
9343 enum qca_wlan_twt_setup_state {
9344 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
9345 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
9346 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9347 };
9348 
9349 /**
9350  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9351  * TWT (Target Wake Time) setup request. These attributes are sent as part of
9352  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
9353  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9354  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9355  *
9356  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9357  * Disable (flag attribute not present) - Individual TWT
9358  * Enable (flag attribute present) - Broadcast TWT.
9359  * Individual means the session is between the STA and the AP.
9360  * This session is established using a separate negotiation between
9361  * STA and AP.
9362  * Broadcast means the session is across multiple STAs and an AP. The
9363  * configuration parameters are announced in Beacon frames by the AP.
9364  * This is used in
9365  * 1. TWT SET Request and Response
9366  * 2. TWT GET Response
9367  *
9368  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9369  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
9370  * specify the TWT request type. This is used in TWT SET operation.
9371  *
9372  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9373  * Enable (flag attribute present) - TWT with trigger support.
9374  * Disable (flag attribute not present) - TWT without trigger support.
9375  * Trigger means the AP will send the trigger frame to allow STA to send data.
9376  * Without trigger, the STA will wait for the MU EDCA timer before
9377  * transmitting the data.
9378  * This is used in
9379  * 1. TWT SET Request and Response
9380  * 2. TWT GET Response
9381  *
9382  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9383  * 0 - Announced TWT - In this mode, STA may skip few service periods to
9384  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9385  * NULL frame to AP.
9386  * 1 - Unannounced TWT - The STA will wakeup during every SP.
9387  * This is a required parameter for
9388  * 1. TWT SET Request and Response
9389  * 2. TWT GET Response
9390  *
9391  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9392  * Flow ID is the unique identifier for each TWT session.
9393  * If not provided then dialog ID will be set to zero.
9394  * This is an optional parameter for
9395  * 1. TWT SET Request and Response
9396  * 2. TWT GET Request and Response
9397  * 3. TWT TERMINATE Request and Response
9398  * 4. TWT SUSPEND Request and Response
9399  * Flow Id values from 0 to 254 represent a single TWT session
9400  * Flow ID value of 255 represents all twt sessions for the following
9401  * 1. TWT TERMINATE Request and Response
9402  * 2. TWT SUSPEND Request and Response
9403  * 4. TWT CLEAR STATISTICS request
9404  * 5. TWT GET STATISTICS request and response
9405  * If an invalid dialog id is provided, status
9406  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9407  *
9408  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9409  * This attribute (exp) is used along with the mantissa to derive the
9410  * wake interval using the following formula:
9411  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9412  * Wake interval is the interval between 2 successive SP.
9413  * This is a required parameter for
9414  * 1. TWT SET Request and Response
9415  * 2. TWT GET Response
9416  *
9417  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9418  * Enable (flag attribute present) - Protection required.
9419  * Disable (flag attribute not present) - Protection not required.
9420  * If protection is enabled, then the AP will use protection
9421  * mechanism using RTS/CTS to self to reserve the airtime.
9422  * This is used in
9423  * 1. TWT SET Request and Response
9424  * 2. TWT GET Response
9425  *
9426  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9427  * This attribute is used as the SP offset which is the offset from
9428  * TSF after which the wake happens. The units are in microseconds. If
9429  * this attribute is not provided, then the value will be set to zero.
9430  * This is an optional parameter for
9431  * 1. TWT SET Request and Response
9432  * 2. TWT GET Response
9433  *
9434  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
9435  * This is the duration of the service period. This is specified as
9436  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9437  * This is a required parameter for
9438  * 1. TWT SET Request and Response
9439  * 2. TWT GET Response
9440  *
9441  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9442  * This attribute is used to configure wake interval mantissa.
9443  * The units are in TU.
9444  * This is a required parameter for
9445  * 1. TWT SET Request and Response
9446  * 2. TWT GET Response
9447  *
9448  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
9449  * This field is applicable for TWT response only.
9450  * This contains status values in enum qca_wlan_vendor_twt_status
9451  * and is passed to the userspace. This is used in TWT SET operation.
9452  * This is a required parameter for
9453  * 1. TWT SET Response
9454  * 2. TWT TERMINATE Response
9455  * 3. TWT SUSPEND Response
9456  * 4. TWT RESUME Response
9457  * 5. TWT NUDGE Response
9458  *
9459  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9460  * This field is applicable for TWT response only.
9461  * This field contains response type from the TWT responder and is
9462  * passed to the userspace. The values for this field are defined in
9463  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
9464  * response.
9465  *
9466  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
9467  * In TWT setup command this field contains absolute TSF that will
9468  * be used by TWT requester during setup.
9469  * In TWT response this field contains absolute TSF value of the
9470  * wake time received from the TWT responder and is passed to
9471  * the userspace.
9472  * This is an optional parameter for
9473  * 1. TWT SET Request
9474  * This is a required parameter for
9475  * 1. TWT SET Response
9476  * 2. TWT GET Response
9477  *
9478  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
9479  * Enable (flag attribute present) - Indicates that the TWT responder
9480  * supports reception of TWT information frame from the TWT requestor.
9481  * Disable (flag attribute not present) - Indicates that the responder
9482  * doesn't support reception of TWT information frame from requestor.
9483  * This is used in
9484  * 1. TWT SET Response
9485  * 2. TWT GET Response
9486  *
9487  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
9488  * Represents the MAC address of the peer for which the TWT session
9489  * is being configured. This is used in AP mode to represent the respective
9490  * client
9491  * In AP mode, this is a required parameter in response for
9492  * 1. TWT SET
9493  * 2. TWT GET
9494  * 3. TWT TERMINATE
9495  * 4. TWT SUSPEND
9496  * In STA mode, this is an optional parameter in request and response for
9497  * the above four TWT operations.
9498  * In AP mode, this is a required parameter in request for
9499  * 1. TWT GET
9500  * 2. TWT TERMINATE
9501  *
9502  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9503  * Minimum tolerance limit of wake interval parameter in microseconds.
9504  *
9505  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9506  * Maximum tolerance limit of wake interval parameter in microseconds.
9507  *
9508  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9509  * Minimum tolerance limit of wake duration parameter in microseconds.
9510  *
9511  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9512  * Maximum tolerance limit of wake duration parameter in microseconds.
9513  *
9514  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9515  * TWT state for the given dialog id. The values for this are represented
9516  * by enum qca_wlan_twt_setup_state.
9517  * This is obtained through TWT GET operation.
9518  *
9519  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9520  * This attribute is used to configure wake interval mantissa.
9521  * The unit is microseconds. This attribute, when specified, takes
9522  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9523  * This parameter is used for
9524  * 1. TWT SET Request and Response
9525  * 2. TWT GET Response
9526  *
9527  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9528  * This attribute is used to configure Broadcast TWT ID.
9529  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9530  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9531  * This parameter is used for
9532  * 1. TWT SET Request
9533  * 2. TWT TERMINATE Request
9534  *
9535  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9536  * This attribute is used to configure Broadcast TWT recommendation.
9537  * The Broadcast TWT Recommendation subfield contains a value that indicates
9538  * recommendations on the types of frames that are transmitted by TWT
9539  * scheduled STAs and scheduling AP during the broadcast TWT SP.
9540  * The allowed values are 0 - 3.
9541  * This parameter is used for
9542  * 1. TWT SET Request
9543  *
9544  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9545  * This attribute is used to configure Broadcast TWT Persistence.
9546  * The Broadcast TWT Persistence subfield indicates the number of
9547  * TBTTs during which the Broadcast TWT SPs corresponding to this
9548  * broadcast TWT Parameter set are present. The number of beacon intervals
9549  * during which the Broadcast TWT SPs are present is equal to the value in the
9550  * Broadcast TWT Persistence subfield plus 1 except that the value 255
9551  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9552  * This parameter is used for
9553  * 1. TWT SET Request
9554  *
9555  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9556  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9557  * from TWT response frame.
9558  * This parameter is used for
9559  * 1. TWT SET Response
9560  * 2. TWT GET Response
9561  *
9562  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9563  * This attribute is used to configure the announce timeout value (in us) in
9564  * firmware. This timeout value is only applicable for announced TWT. If
9565  * timeout value is non-zero then firmware waits upto timeout value to use
9566  * data frame as announcement frame. If timeout value is 0 then firmware sends
9567  * explicit QoS NULL frame as announcement frame on SP start. Default value in
9568  * firmware is 0.
9569  * This parameter is used for
9570  * 1. TWT SET Request
9571  */
9572 enum qca_wlan_vendor_attr_twt_setup {
9573 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9574 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9575 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9576 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9577 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9578 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9579 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9580 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9581 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9582 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9583 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9584 
9585 	/* TWT Response only attributes */
9586 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9587 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9588 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9589 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9590 
9591 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
9592 
9593 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9594 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9595 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9596 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9597 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
9598 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9599 
9600 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9601 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9602 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9603 
9604 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9605 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9606 
9607 	/* keep last */
9608 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9609 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9610 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9611 };
9612 
9613 /**
9614  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9615  * TWT operation
9616  *
9617  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9618  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9619  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9620  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9621  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9622  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9623  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9624  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9625  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9626  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9627  * request/response frame
9628  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9629  * frame
9630  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9631  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9632  * unknown reason
9633  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9634  * suspend state
9635  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9636  * invalid IE in the received TWT frame
9637  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9638  * the responder are not in the specified range
9639  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9640  * session due to request from the responder. Used on the TWT_TERMINATE
9641  * notification from the firmware.
9642  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9643  * session due to roaming. Used on the TWT_TERMINATE notification from the
9644  * firmware.
9645  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9646  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
9647  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9648  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9649  * request due to roaming in progress.
9650  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9651  * setup request due to channel switch in progress.
9652  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9653  * request due to scan in progress.
9654  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9655  * terminate an existing TWT session on power save exit request from userspace.
9656  * Used on the TWT_TERMINATE notification from the driver/firmware.
9657  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
9658  * required bit in its capabilities.
9659  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
9660  * the TWT required bit(1->0) in its capabilities.
9661  */
9662 enum qca_wlan_vendor_twt_status {
9663 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9664 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9665 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9666 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9667 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9668 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9669 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9670 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9671 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9672 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9673 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9674 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9675 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9676 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
9677 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9678 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9679 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9680 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
9681 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9682 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9683 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9684 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9685 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
9686 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
9687 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
9688 };
9689 
9690 /**
9691  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
9692  * TWT (Target Wake Time) resume request. These attributes are sent as part of
9693  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
9694  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9695  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9696  *
9697  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
9698  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9699  * These attributes are used as the SP offset which is the offset from TSF after
9700  * which the wake happens. The units are in microseconds. Please note that
9701  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9702  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9703  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9704  * will be set to zero.
9705  *
9706  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9707  * This attribute represents the next TWT subfield size.
9708  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9709  * and 4 for 64 bits.
9710  *
9711  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9712  * Flow ID is the unique identifier for each TWT session. This attribute
9713  * represents the respective TWT session to resume.
9714  * Flow Id values from 0 to 254 represent a single TWT session
9715  * Flow ID value of 255 represents all TWT sessions.
9716  * If an invalid dialog id is provided, status
9717  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9718  *
9719  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9720  * Represents the MAC address of the peer to which TWT Resume is
9721  * being sent. This is used in AP mode to represent the respective
9722  * client and is a required parameter. In STA mode, this is an optional
9723  * parameter
9724  *
9725  */
9726 enum qca_wlan_vendor_attr_twt_resume {
9727 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9728 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9729 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
9730 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9731 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9732 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
9733 
9734 	/* keep last */
9735 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9736 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9737 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9738 };
9739 
9740 /**
9741  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9742  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9743  * and resume in a single request. These attributes are sent as part of
9744  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9745  *
9746  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9747  * Flow ID is the unique identifier for each TWT session. This attribute
9748  * represents the respective TWT session to suspend and resume.
9749  *
9750  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9751  * Flow ID is the unique identifier for each TWT session. This attribute
9752  * represents the respective TWT session to suspend and resume.
9753  * Flow Id values from 0 to 254 represent a single TWT session
9754  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9755  * and response.
9756  * If an invalid dialog id is provided, status
9757  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9758  *
9759  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9760  * This attribute is used as the SP offset which is the offset from
9761  * TSF after which the wake happens. The units are in microseconds.
9762  *
9763  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9764  * This attribute represents the next TWT subfield size.
9765  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9766  * and 4 for 64 bits.
9767  *
9768  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9769  * Represents the MAC address of the peer to which TWT Suspend and Resume is
9770  * being sent. This is used in AP mode to represent the respective
9771  * client and is a required parameter. In STA mode, this is an optional
9772  * parameter.
9773  *
9774  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
9775  * This field contains absolute TSF value of the time at which twt
9776  * sesion will be resumed.
9777  *
9778  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
9779  * This field will be used when device supports Flexible TWT.
9780  * This field contains an offset value by which to shift the starting time
9781  * of the next service period. The value of offset can be negative or positive.
9782  * If provided, this attribute will override
9783  * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
9784  */
9785 enum qca_wlan_vendor_attr_twt_nudge {
9786 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
9787 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
9788 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
9789 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
9790 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
9791 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
9792 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
9793 
9794 	/* keep last */
9795 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
9796 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
9797 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
9798 };
9799 
9800 /**
9801  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
9802  * TWT (Target Wake Time) get statistics and clear statistics request.
9803  * These attributes are sent as part of
9804  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9805  *
9806  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
9807  * Flow ID is the unique identifier for each TWT session. This attribute
9808  * represents the respective TWT session for get and clear TWT statistics.
9809  * Flow Id values from 0 to 254 represent a single TWT session
9810  * Flow ID value of 255 represents all TWT sessions in
9811  * 1) TWT GET STATISTICS request and response
9812  * 2) TWT CLEAR STATISTICS request
9813  *
9814  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
9815  * Represents the MAC address of the peer for which TWT Statistics
9816  * is required.
9817  * In AP mode this is used to represent the respective
9818  * client and is a required parameter for
9819  * 1) TWT GET STATISTICS request and response
9820  * 2) TWT CLEAR STATISTICS request and response
9821  * In STA mode, this is an optional parameter.
9822  *
9823  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
9824  * This is the duration of the service period in microseconds.
9825  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9826  *
9827  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
9828  * Average of actual wake duration observed so far. Unit is microseconds.
9829  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9830  *
9831  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
9832  * Number of TWT service period elapsed so far.
9833  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9834  *
9835  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9836  * This is the minimum value of wake duration observed across
9837  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9838  * microseconds.
9839  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9840  *
9841  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9842  * This is the maximum value of wake duration observed across
9843  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9844  * microseconds.
9845  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9846  *
9847  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
9848  * Average number of MPDU's transmitted successfully across
9849  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9850  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9851  *
9852  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
9853  * Average number of MPDU's received successfully across
9854  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9855  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9856  *
9857  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
9858  * Average number of bytes transmitted successfully across
9859  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9860  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9861  *
9862  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
9863  * Average number of bytes received successfully across
9864  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9865  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9866  *
9867  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
9868  * Status of the TWT GET STATISTICS request.
9869  * This contains status values in enum qca_wlan_vendor_twt_status
9870  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9871  */
9872 enum qca_wlan_vendor_attr_twt_stats {
9873 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
9874 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
9875 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
9876 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
9877 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
9878 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
9879 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
9880 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
9881 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
9882 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
9883 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
9884 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
9885 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
9886 
9887 	/* keep last */
9888 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
9889 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
9890 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
9891 };
9892 
9893 /**
9894  * qca_wlan_twt_get_capa  - Represents the Bitmap of TWT capabilities
9895  * supported by the device and peer.
9896  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
9897  *
9898  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
9899  * TWT non-scheduling STA. This capability is advertised in the HE
9900  * capability/Extended capabilities information element in the
9901  * Association request frame by the device.
9902  *
9903  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
9904  * by the TWT scheduling AP. This capability is advertised in the extended
9905  * capabilities/HE capabilities information element.
9906  *
9907  * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
9908  * for the broadcast TWT functionality. On responder side, this	indicates
9909  * support for the role of broadcast TWT scheduling functionality. This
9910  * capability is advertised in the HE capabilities information element.
9911  *
9912  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
9913  * This capability is advertised in the HE capabilities information element.
9914  *
9915  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
9916  * that it mandates the associated HE STAs to support TWT. This capability is
9917  * advertised by AP in the HE Operation Parameters field of the HE operation
9918  * information element.
9919  */
9920 enum qca_wlan_twt_capa {
9921 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
9922 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
9923 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
9924 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
9925 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
9926 
9927 };
9928 
9929 /**
9930  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
9931  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
9932  * operation.
9933  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
9934  * Represents the MAC address of the peer for which the TWT capabilities
9935  * are being queried. This is used in AP mode to represent the respective
9936  * client. In STA mode, this is an optional parameter.
9937  *
9938  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
9939  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
9940  * enum qca_wlan_twt_capa.
9941  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
9942  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
9943  * enum qca_wlan_twt_capa.
9944  */
9945 enum qca_wlan_vendor_attr_twt_capability {
9946 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
9947 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
9948 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
9949 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
9950 
9951 	/* keep last */
9952 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
9953 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
9954 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
9955 };
9956 
9957 /**
9958  * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
9959  * TWT (Target Wake Time) related parameters. It is used when
9960  * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
9961  * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9962  *
9963  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
9964  * This attribute configures AC parameters to be used for all TWT
9965  * sessions in AP mode.
9966  * Uses the enum qca_wlan_ac_type values.
9967  */
9968 enum qca_wlan_vendor_attr_twt_set_param {
9969 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
9970 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
9971 
9972 	/* keep last */
9973 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
9974 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
9975 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
9976 };
9977 
9978 /**
9979  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
9980  * the TWT responder
9981  *
9982  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
9983  * parameters that are different from TWT requesting STA suggested
9984  * or demanded TWT parameters
9985  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
9986  * parameters that are different from TWT requesting STA TWT suggested
9987  * or demanded parameters
9988  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
9989  * setup
9990  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
9991  * setup.
9992  */
9993 enum qca_wlan_vendor_twt_setup_resp_type {
9994 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
9995 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
9996 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
9997 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
9998 };
9999 
10000 /**
10001  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
10002  * Represents the setup type being requested for TWT.
10003  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
10004  * parameters but relying on AP to fill the parameters during the negotiation.
10005  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
10006  * values which the AP may accept or AP may provide alternative parameters
10007  * which the STA may accept.
10008  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
10009  * alternate parameters than the requested ones.
10010  */
10011 enum qca_wlan_vendor_twt_setup_req_type {
10012 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
10013 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
10014 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
10015 };
10016 
10017 /**
10018  * enum qca_wlan_throughput_level - Current throughput level
10019  *
10020  * Indicates the current level of throughput calculated by driver. The driver
10021  * may choose different thresholds to decide whether the throughput level is
10022  * low or medium or high based on variety of parameters like physical link
10023  * capacity of current connection, number of pakcets being dispatched per
10024  * second etc. The throughput level events might not be consistent with the
10025  * actual current throughput value being observed.
10026  *
10027  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
10028  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
10029  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
10030  */
10031 enum qca_wlan_throughput_level {
10032 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
10033 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
10034 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
10035 };
10036 
10037 /**
10038  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
10039  * report throughput changes from driver to user space. enum values are used
10040  * for NL attributes sent with
10041  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
10042  */
10043 enum qca_wlan_vendor_attr_throughput_change {
10044 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
10045 	/*
10046 	 * Indicates the direction of throughput in which the change is being
10047 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
10048 	 */
10049 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
10050 
10051 	/*
10052 	 * Indicates the newly observed throughput level.
10053 	 * qca_wlan_throughput_level describes the possible range of values.
10054 	 * u8 attribute.
10055 	 */
10056 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
10057 
10058 	/*
10059 	 * Indicates the driver's guidance on the new value to be set to
10060 	 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
10061 	 * may optionally include this attribute.
10062 	 */
10063 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
10064 
10065 	/*
10066 	 * Indicates the driver's guidance on the new value to be set to
10067 	 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
10068 	 * values are from -31 to 31. Driver may optionally include this
10069 	 * attribute.
10070 	 */
10071 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10072 
10073 	/*
10074 	 * Indicates the driver's guidance on the new value to be set to
10075 	 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
10076 	 * optionally include this attribute.
10077 	 */
10078 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10079 
10080 	/* keep last */
10081 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10082 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10083 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10084 };
10085 
10086 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
10087  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
10088  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10089  */
10090 enum qca_wlan_nan_ext_subcmd_type {
10091 	/* Subcmd of type NAN Enable Request */
10092 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
10093 	/* Subcmd of type NAN Disable Request */
10094 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
10095 };
10096 
10097 /**
10098  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
10099  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10100  */
10101 enum qca_wlan_vendor_attr_nan_params {
10102 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
10103 	/* Carries NAN command for firmware component. Every vendor command
10104 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
10105 	 * payload containing the NAN command. NLA_BINARY attribute.
10106 	 */
10107 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
10108 	/* Indicates the type of NAN command sent with
10109 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
10110 	 * describes the possible range of values. This attribute is mandatory
10111 	 * if the command being issued is either
10112 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
10113 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
10114 	 */
10115 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
10116 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
10117 	 * band. This attribute is mandatory when command type is
10118 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
10119 	 */
10120 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
10121 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
10122 	 * band. This attribute is optional and should be included when command
10123 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
10124 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
10125 	 */
10126 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
10127 
10128 	/* keep last */
10129 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
10130 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
10131 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
10132 };
10133 
10134 /**
10135  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
10136  * transport modes and is used by attribute
10137  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
10138  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10139  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
10140  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
10141  * data. The data shall be encapsulated within
10142  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
10143  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
10144  */
10145 enum qca_wlan_vendor_cfr_data_transport_modes {
10146 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
10147 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
10148 };
10149 
10150 /**
10151  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
10152  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
10153  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10154  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
10155  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
10156  * with phase
10157  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
10158  */
10159 enum qca_wlan_vendor_cfr_method {
10160 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
10161 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
10162 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
10163 };
10164 
10165 /**
10166  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
10167  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
10168  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
10169  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
10170  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
10171  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
10172  * is provided by one or more of below attributes:
10173  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
10174  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
10175  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
10176  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
10177  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
10178  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
10179  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10180  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
10181  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
10182  */
10183 enum qca_wlan_vendor_cfr_capture_type {
10184 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
10185 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
10186 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
10187 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
10188 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
10189 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
10190 };
10191 
10192 /**
10193  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
10194  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
10195  * Channel Frequency Response capture parameters and enable periodic CFR
10196  * capture.
10197  *
10198  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
10199  * MAC address of peer. This is for CFR version 1 only.
10200  *
10201  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
10202  * Enable peer CFR Capture. This attribute is mandatory to
10203  * enable peer CFR capture. If this attribute is not present,
10204  * peer CFR capture is disabled.
10205  *
10206  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
10207  * BW of measurement, attribute uses the values in enum nl80211_chan_width
10208  * Supported values: 20, 40, 80, 80+80, 160.
10209  * Note that all targets may not support all bandwidths.
10210  * This attribute is mandatory for version 1 if attribute
10211  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10212  *
10213  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
10214  * Periodicity of CFR measurement in msec.
10215  * Periodicity should be a multiple of Base timer.
10216  * Current Base timer value supported is 10 msecs (default).
10217  * 0 for one shot capture.
10218  * This attribute is mandatory for version 1 if attribute
10219  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10220  *
10221  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
10222  * Method used to capture Channel Frequency Response.
10223  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
10224  * This attribute is mandatory for version 1 if attribute
10225  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10226  *
10227  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
10228  * Enable periodic CFR capture.
10229  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
10230  * If this attribute is not present, periodic CFR capture is disabled.
10231  *
10232  * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
10233  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
10234  * can't be enabled at same time. This attribute is mandatory if target
10235  * support both versions and use one of them.
10236  *
10237  * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
10238  * This attribute is mandatory for version 2 if
10239  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
10240  * Bits 15:0 Bit fields indicating which group to be enabled.
10241  * Bits 31:16 Reserved for future use.
10242  *
10243  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
10244  * CFR capture duration in microsecond. This attribute is mandatory for
10245  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
10246  *
10247  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
10248  * CFR capture interval in microsecond. This attribute is mandatory for
10249  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
10250  *
10251  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
10252  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
10253  * This attribute is mandatory for version 2.
10254  *
10255  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
10256  * Bit fields indicating which user in the current UL MU
10257  * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
10258  * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
10259  * then the CFR capture will happen for user index 0 in the current
10260  * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
10261  * TX corresponds to user indices 0 and 2.  Bits 63:37 Reserved for future use.
10262  * This is for CFR version 2 only.
10263  *
10264  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
10265  * Indicates the number of consecutive Rx packets to be skipped
10266  * before CFR capture is enabled again.
10267  * This is for CFR version 2 only.
10268  *
10269  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
10270  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
10271  *
10272  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
10273  * the following GROUP attributes:
10274  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
10275  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
10276  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
10277  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
10278  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
10279  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
10280  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
10281  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
10282  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
10283  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10284  *
10285  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
10286  * Target support multiple groups for some configurations. Group number could be
10287  * any value between 0 and 15. This is for CFR version 2 only.
10288  *
10289  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
10290  * Transmitter address which is used to filter packets, this MAC address takes
10291  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
10292  * This is for CFR version 2 only.
10293  *
10294  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
10295  * Receiver address which is used to filter packets, this MAC address takes
10296  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
10297  * This is for CFR version 2 only.
10298  *
10299  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
10300  * Mask of transmitter address which is used to filter packets.
10301  * This is for CFR version 2 only.
10302  *
10303  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
10304  * Mask of receiver address which is used to filter packets.
10305  * This is for CFR version 2 only.
10306  *
10307  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
10308  * Indicates packets with a specific NSS will be filtered for CFR capture.
10309  * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
10310  * be done for packets matching the NSS specified within this bitmask.
10311  * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
10312  *     bit 0 : NSS 1
10313  *     bit 1 : NSS 2
10314  *     ...
10315  *     bit 7 : NSS 8
10316  *
10317  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
10318  * Indicates packets with a specific BW will be filtered for CFR capture.
10319  * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
10320  * will be done for packets matching the bandwidths specified within this
10321  * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
10322  * numerated in enum nl80211_band (although not all bands may be supported
10323  * by a given device).
10324  *
10325  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
10326  * Management packets matching the subtype filter categories will be
10327  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10328  * represents the corresponding mgmt subtype value as per
10329  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10330  * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
10331  * This is for CFR version 2 only
10332  *
10333  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
10334  * Control packets matching the subtype filter categories will be
10335  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10336  * represents the corresponding control subtype value as per
10337  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10338  * This is for CFR version 2 only.
10339  *
10340  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
10341  * Data packets matching the subtype filter categories will be
10342  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10343  * represents the corresponding data subtype value as per
10344  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10345  * This is for CFR version 2 only.
10346  *
10347  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
10348  * Userspace can use this attribute to specify the driver about which transport
10349  * mode shall be used by the driver to send CFR data to userspace. Uses values
10350  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
10351  * not present, driver shall choose the default transport mechanism which is
10352  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
10353  *
10354  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
10355  * Userspace can use this attribute to specify the nl port id of the application
10356  * which receives the CFR data and processes it further so that the drivers can
10357  * unicast the NL events to a specific application. Optionally included when
10358  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
10359  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
10360  * shall multicast the netlink events when this attribute is not included.
10361  *
10362  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
10363  * This attribute will be used by the driver to encapsulate and send CFR data
10364  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
10365  * asynchronous event when the driver is configured to send CFR data using NL
10366  * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
10367  *
10368  */
10369 enum qca_wlan_vendor_peer_cfr_capture_attr {
10370 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
10371 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
10372 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
10373 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
10374 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
10375 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
10376 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
10377 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
10378 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
10379 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
10380 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
10381 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
10382 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
10383 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
10384 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
10385 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
10386 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
10387 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
10388 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
10389 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
10390 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
10391 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
10392 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
10393 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
10394 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
10395 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
10396 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
10397 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
10398 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
10399 
10400 	/* Keep last */
10401 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
10402 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
10403 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
10404 };
10405 
10406 /**
10407  * enum qca_coex_config_profiles - This enum defines different types of
10408  * traffic streams that can be prioritized one over the other during coex
10409  * scenarios.
10410  * The types defined in this enum are categorized in the below manner.
10411  * 0 - 31 values corresponds to WLAN
10412  * 32 - 63 values corresponds to BT
10413  * 64 - 95 values corresponds to Zigbee
10414  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10415  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10416  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10417  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10418  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10419  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10420  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10421  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10422  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10423  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10424  * @QCA_BT_A2DP: Prioritize BT A2DP
10425  * @QCA_BT_BLE: Prioritize BT BLE
10426  * @QCA_BT_SCO: Prioritize BT SCO
10427  * @QCA_ZB_LOW: Prioritize Zigbee Low
10428  * @QCA_ZB_HIGH: Prioritize Zigbee High
10429  */
10430 enum qca_coex_config_profiles {
10431 	/* 0 - 31 corresponds to WLAN */
10432 	QCA_WIFI_STA_DISCOVERY = 0,
10433 	QCA_WIFI_STA_CONNECTION = 1,
10434 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
10435 	QCA_WIFI_STA_DATA = 3,
10436 	QCA_WIFI_STA_ALL = 4,
10437 	QCA_WIFI_SAP_DISCOVERY = 5,
10438 	QCA_WIFI_SAP_CONNECTION = 6,
10439 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10440 	QCA_WIFI_SAP_DATA = 8,
10441 	QCA_WIFI_SAP_ALL = 9,
10442 	QCA_WIFI_CASE_MAX = 31,
10443 	/* 32 - 63 corresponds to BT */
10444 	QCA_BT_A2DP = 32,
10445 	QCA_BT_BLE = 33,
10446 	QCA_BT_SCO = 34,
10447 	QCA_BT_CASE_MAX = 63,
10448 	/* 64 - 95 corresponds to Zigbee */
10449 	QCA_ZB_LOW = 64,
10450 	QCA_ZB_HIGH = 65,
10451 	QCA_ZB_CASE_MAX = 95,
10452 	/* 0xff is default value if the u8 profile value is not set. */
10453 	QCA_PROFILE_DEFAULT_VALUE = 255
10454 };
10455 
10456 /**
10457  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10458  * This enum defines the valid set of values of coex configuration types. These
10459  * values may used by attribute
10460  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10461  *
10462  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10463  *	weights to default values.
10464  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10465  *	weights with configurability value.
10466  */
10467 enum qca_vendor_attr_coex_config_types {
10468 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10469 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
10470 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
10471 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
10472 };
10473 
10474 /**
10475  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
10476  * attributes
10477  * Attributes for data used by
10478  * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
10479  *
10480  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
10481  * Indicate config type.
10482  * the config types are 32-bit values from qca_vendor_attr_coex_config_types
10483  *
10484  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
10485  *	Indicate the Priority 1 profiles.
10486  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10487  *	In same priority level, maximum to 4 profiles can be set here.
10488  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
10489  *	Indicate the Priority 2 profiles.
10490  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10491  *	In same priority level, maximum to 4 profiles can be set here.
10492  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
10493  *	Indicate the Priority 3 profiles.
10494  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10495  *	In same priority level, maximum to 4 profiles can be set here.
10496  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
10497  *	Indicate the Priority 4 profiles.
10498  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10499  *	In same priority level, maximum to 4 profiles can be set here.
10500  * NOTE:
10501  * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
10502  * arrangement:
10503  *	1: In the same u32 attribute(priority x), the profiles enum values own
10504  *	same priority level.
10505  *	2: 0xff is default value if the u8 profile value is not set.
10506  *	3: max to 4 rules/profiles in same priority level.
10507  *	4: max to 4 priority level (priority 1 - priority 4)
10508  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
10509  *	hybrid rules not support.
10510  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
10511  *	remain blank to reset all parameters.
10512  * For example:
10513  *
10514  *	If the attributes as follow:
10515  *	priority 1:
10516  *	------------------------------------
10517  *	|  0xff  |    0   |   1   |    2   |
10518  *	------------------------------------
10519  *	priority 2:
10520  *	-------------------------------------
10521  *	|  0xff  |  0xff  |  0xff  |   32   |
10522  *	-------------------------------------
10523  *	priority 3:
10524  *	-------------------------------------
10525  *	|  0xff  |  0xff  |  0xff  |   65   |
10526  *	-------------------------------------
10527  *	then it means:
10528  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10529  *		owns same priority level.
10530  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10531  *		has priority over BT_A2DP and ZB_HIGH.
10532  *	3: BT_A2DP has priority over ZB_HIGH.
10533  */
10534 
10535 enum qca_vendor_attr_coex_config_three_way {
10536 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
10537 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
10538 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
10539 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10540 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10541 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10542 
10543 	/* Keep last */
10544 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10545 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10546 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10547 };
10548 
10549 /**
10550  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10551  * This enum defines the valid set of values of peer stats cache types. These
10552  * values are used by attribute
10553  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
10554  *
10555  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
10556  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
10557  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
10558  * statistics
10559  */
10560 enum qca_vendor_attr_peer_stats_cache_type {
10561 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10562 
10563 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10564 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10565 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10566 };
10567 
10568 /**
10569  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10570  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10571  * Attributes are required to flush peer rate statistics from driver to
10572  * user application.
10573  *
10574  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10575  * Indicate peer stats cache type.
10576  * The statistics types are 32-bit values from
10577  * qca_vendor_attr_peer_stats_cache_type
10578  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10579  * of size 6, representing peer mac address.
10580  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10581  * containing buffer of statistics to send event to application layer entity.
10582  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10583  * representing cookie for peer unique session.
10584  */
10585 enum qca_wlan_vendor_attr_peer_stats_cache_params {
10586 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10587 
10588 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10589 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10590 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10591 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10592 
10593 	/* Keep last */
10594 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10595 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10596 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10597 };
10598 
10599 /**
10600  * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
10601  * this enum defines all the possible state of zigbee, which can be
10602  * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
10603  *
10604  * @ZIGBEE_IDLE: zigbee in idle state
10605  * @ZIGBEE_FORM_NETWORK: zibee forming network
10606  * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
10607  * @ZIGBEE_JOIN: zigbee joining network
10608  * @ZIGBEE_NETWORK_UP: zigbee network is up
10609  * @ZIGBEE_HMI: zigbee in HMI mode
10610  */
10611 enum qca_mpta_helper_attr_zigbee_state {
10612 	ZIGBEE_IDLE = 0,
10613 	ZIGBEE_FORM_NETWORK = 1,
10614 	ZIGBEE_WAIT_JOIN = 2,
10615 	ZIGBEE_JOIN = 3,
10616 	ZIGBEE_NETWORK_UP = 4,
10617 	ZIGBEE_HMI = 5,
10618 };
10619 
10620 /**
10621  * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
10622  * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10623  */
10624 enum qca_mpta_helper_vendor_attr {
10625 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10626 	/* Optional attribute used to update zigbee state.
10627 	 * enum qca_mpta_helper_attr_zigbee_state.
10628 	 * NLA_U32 attribute.
10629 	 */
10630 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10631 	/* Optional attribute used to configure wlan duration for Shape-OCS
10632 	 * during interrupt.
10633 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10634 	 * Value range 0 ~ 300 (ms).
10635 	 * NLA_U32 attribute.
10636 	 */
10637 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10638 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10639 	 * during interrupt.
10640 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10641 	 * Value range 0 ~ 300 (ms).
10642 	 * NLA_U32 attribute.
10643 	 */
10644 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10645 	/* Optional attribute used to configure wlan duration for Shape-OCS
10646 	 * monitor period.
10647 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10648 	 * Value range 0 ~ 300 (ms)
10649 	 * NLA_U32 attribute
10650 	 */
10651 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10652 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10653 	 * monitor period.
10654 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10655 	 * Value range 0 ~ 300 (ms)
10656 	 * NLA_U32 attribute
10657 	 */
10658 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
10659 	/* Optional attribute used to configure ocs interrupt duration.
10660 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10661 	 * Value range 1000 ~ 20000 (ms)
10662 	 * NLA_U32 attribute
10663 	 */
10664 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
10665 	/* Optional attribute used to configure ocs monitor duration.
10666 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10667 	 * Value range 1000 ~ 20000 (ms)
10668 	 * NLA_U32 attribute
10669 	 */
10670 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
10671 	/* Optional attribute used to notify wlan FW current zigbee channel.
10672 	 * Value range 11 ~ 26
10673 	 * NLA_U32 attribute
10674 	 */
10675 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10676 	/* Optional attribute used to configure wlan mute duration.
10677 	 * Value range 0 ~ 400 (ms)
10678 	 * NLA_U32 attribute
10679 	 */
10680 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
10681 
10682 	/* keep last */
10683 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10684 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10685 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10686 };
10687 
10688 /**
10689  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10690  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
10691  * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10692  *
10693  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10694  * to request the driver to start reporting Beacon frames.
10695  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
10696  * to request the driver to stop reporting Beacon frames.
10697  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10698  * userspace to report received Beacon frames.
10699  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10700  * to indicate that the driver is going to pause reporting Beacon frames.
10701  */
10702 enum qca_wlan_vendor_beacon_reporting_op_types {
10703 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10704 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10705 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10706 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10707 };
10708 
10709 /**
10710  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
10711  * types of reasons for which the driver is pausing reporting Beacon frames.
10712  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10713  *
10714  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10715  * reasons.
10716  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10717  * driver/firmware is starting a scan.
10718  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10719  * driver/firmware disconnects from the ESS and indicates the disconnection to
10720  * userspace (non-seamless roaming case). This reason code will be used by the
10721  * driver/firmware to indicate stopping of beacon report events. Userspace
10722  * will need to start beacon reporting again (if desired) by sending vendor
10723  * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10724  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10725  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10726  * completed.
10727  */
10728 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10729 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10730 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10731 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10732 };
10733 
10734 /*
10735  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10736  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10737  */
10738 enum qca_wlan_vendor_attr_beacon_reporting_params {
10739 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10740 	/* Specifies the type of operation that the vendor command/event is
10741 	 * intended for. Possible values for this attribute are defined in
10742 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10743 	 */
10744 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10745 	/* Optionally set by userspace to request the driver to report Beacon
10746 	 * frames using asynchronous vendor events when the
10747 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10748 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10749 	 * If this flag is not set, the driver will only update Beacon frames
10750 	 * in cfg80211 scan cache but not send any vendor events.
10751 	 */
10752 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10753 	/* Optionally used by userspace to request the driver/firmware to
10754 	 * report Beacon frames periodically when the
10755 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10756 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10757 	 * u32 attribute, indicates the period of Beacon frames to be reported
10758 	 * and in the units of beacon interval.
10759 	 * If this attribute is missing in the command, then the default value
10760 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10761 	 * Zero is an invalid value.
10762 	 * If a valid value is received for this attribute, the driver will
10763 	 * update the cfg80211 scan cache periodically as per the value
10764 	 * received in this attribute in addition to updating the cfg80211 scan
10765 	 * cache when there is significant change in Beacon frame IEs.
10766 	 */
10767 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10768 	/* Used by the driver to encapsulate the SSID when the
10769 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10770 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10771 	 * u8 array with a maximum size of 32.
10772 	 *
10773 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
10774 	 * will be taken from the SSID element of the received Beacon frame.
10775 	 *
10776 	 * When generating beacon report from Multiple BSSID Beacon frame and
10777 	 * if the BSSID of the current connected BSS matches the BSSID of the
10778 	 * transmitting BSS, the SSID will be taken from the SSID element of
10779 	 * the received Beacon frame.
10780 	 *
10781 	 * When generating beacon report from Multiple BSSID Beacon frame and
10782 	 * if the BSSID of the current connected BSS matches the BSSID of one
10783 	 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
10784 	 * field included in the nontransmitted BSS profile whose derived BSSI
10785 	 * is same as the BSSID of the current connected BSS. When there is no
10786 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
10787 	 * of current connected* BSS, this attribute will not be present.
10788 	 */
10789 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
10790 	/* Used by the driver to encapsulate the BSSID of the AP to which STA
10791 	 * is currently connected to when the
10792 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10793 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
10794 	 * fixed size of 6 bytes.
10795 	 *
10796 	 * When generating beacon report from a Multiple BSSID beacon and the
10797 	 * current connected BSSID matches one of the nontransmitted BSSIDs in
10798 	 * a Multiple BSSID set, this BSSID will be that particular
10799 	 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
10800 	 * transmitting address of the Beacon frame).
10801 	 */
10802 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
10803 	/* Used by the driver to encapsulate the frequency in MHz on which
10804 	 * the Beacon frame was received when the
10805 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
10806 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10807 	 * u32 attribute.
10808 	 */
10809 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
10810 	/* Used by the driver to encapsulate the Beacon interval
10811 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10812 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10813 	 * u16 attribute. The value will be copied from the Beacon frame and
10814 	 * the units are TUs.
10815 	 */
10816 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
10817 	/* Used by the driver to encapsulate the Timestamp field from the
10818 	 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
10819 	 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10820 	 * u64 attribute.
10821 	 */
10822 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
10823 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
10824 	 * Beacon frame is received in the driver when the
10825 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10826 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
10827 	 * the units of nanoseconds. This value is expected to have accuracy of
10828 	 * about 10 ms.
10829 	 */
10830 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
10831 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
10832 	 * which this event is generated when the
10833 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10834 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
10835 	 */
10836 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
10837 	/* Used by the driver to specify the reason for the driver/firmware to
10838 	 * pause sending beacons to userspace when the
10839 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10840 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
10841 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
10842 	 * attribute.
10843 	 */
10844 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
10845 	/* Used by the driver to specify whether the driver will automatically
10846 	 * resume reporting beacon events to userspace later (for example after
10847 	 * the ongoing off-channel activity is completed etc.) when the
10848 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10849 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
10850 	 */
10851 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
10852 	/* Optionally set by userspace to request the driver not to resume
10853 	 * beacon reporting after a pause is completed, when the
10854 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10855 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10856 	 * If this flag is set, the driver will not resume beacon reporting
10857 	 * after any pause in beacon reporting is completed. Userspace has to
10858 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
10859 	 * to initiate beacon reporting again. If this flag is set in the recent
10860 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
10861 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
10862 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
10863 	 * set by the driver. Setting this flag until and unless there is a
10864 	 * specific need is not recommended as there is a chance of some beacons
10865 	 * received after pause command and next start command being not
10866 	 * reported.
10867 	 */
10868 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
10869 
10870 	/* Keep last */
10871 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
10872 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
10873 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
10874 };
10875 
10876 /**
10877  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
10878  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
10879  *
10880  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
10881  * a virtual device.
10882  *
10883  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
10884  * a physical device.
10885  */
10886 enum qca_vendor_oem_device_type {
10887 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
10888 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
10889 };
10890 
10891 /*
10892  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
10893  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
10894  *
10895  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
10896  * used to set/query the data to/from the firmware. On query, the same
10897  * attribute is used to carry the respective data in the reply sent by the
10898  * driver to userspace. The request to set/query the data and the format of the
10899  * respective data from the firmware are embedded in the attribute. The
10900  * maximum size of the attribute payload is 1024 bytes.
10901  *
10902  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
10903  * based on this field. This optional attribute is included to specify whether
10904  * the device type is a virtual device or a physical device for the command.
10905  * This attribute can be omitted for a virtual device (default) command.
10906  * This u8 attribute is used to carry information for the device type using
10907  * values defined by enum qca_vendor_oem_device_type.
10908  *
10909  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
10910  * attribute when the data is queried from the firmware.
10911  *
10912  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
10913  * is set when the userspace queries data from the firmware. This attribute
10914  * should not be set when userspace sets the OEM data to the firmware.
10915  */
10916 enum qca_wlan_vendor_attr_oem_data_params {
10917 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
10918 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
10919 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
10920 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
10921 
10922 	/* keep last */
10923 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
10924 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
10925 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
10926 };
10927 
10928 /**
10929  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
10930  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
10931  *
10932  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
10933  * Nested attribute containing multiple ranges with following attributes:
10934  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
10935  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
10936  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
10937  *
10938  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
10939  * Starting center frequency in MHz.
10940  *
10941  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
10942  * Ending center frequency in MHz.
10943  *
10944  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
10945  * s32 attribute, optional. It is a per frequency range attribute.
10946  * The maximum TX power limit from user space is to be applied on an
10947  * unrestricted interface for corresponding frequency range. It is also
10948  * possible that the actual TX power may be even lower than this cap due to
10949  * other considerations such as regulatory compliance, SAR, etc. In absence of
10950  * this attribute the driver shall follow current behavior which means
10951  * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
10952  * power derived by the driver based on regulatory/SAR during interface up.
10953  *
10954  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
10955  * u32 attribute, optional. Indicates all the interface types which are
10956  * restricted for all frequency ranges provided in
10957  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
10958  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
10959  * This attribute encapsulates bitmasks of interface types defined in
10960  * enum nl80211_iftype. If an interface is marked as restricted the driver must
10961  * move to a safe channel and if no safe channel is available the driver shall
10962  * terminate that interface functionality. In absence of this attribute,
10963  * interface (SAP/P2P) can still continue operating on an unsafe channel with
10964  * TX power limit derived from either
10965  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
10966  * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
10967  * is not provided.
10968  */
10969 enum qca_wlan_vendor_attr_avoid_frequency_ext {
10970 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
10971 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
10972 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
10973 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
10974 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
10975 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
10976 
10977 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
10978 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
10979 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
10980 };
10981 
10982 /*
10983  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
10984  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
10985  */
10986 enum qca_wlan_vendor_attr_add_sta_node_params {
10987 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
10988 	/* 6 byte MAC address of STA */
10989 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
10990 	/* Authentication algorithm used by the station of size u16;
10991 	 * defined in enum nl80211_auth_type.
10992 	 */
10993 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
10994 
10995 	/* keep last */
10996 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
10997 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
10998 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
10999 };
11000 
11001 /**
11002  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
11003  * This enum defines the valid set of values of BT coex chain mode.
11004  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
11005  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11006  *
11007  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
11008  * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
11009  * separated, hybrid mode.
11010  * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
11011  * separated, fixed FDD mode.
11012  */
11013 enum qca_btc_chain_mode {
11014 	QCA_BTC_CHAIN_SHARED = 0,
11015 	QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
11016 	QCA_BTC_CHAIN_SEPARATED_FDD = 2,
11017 };
11018 
11019 /* deprecated legacy name */
11020 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
11021 
11022 /**
11023  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
11024  * chain mode.
11025  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11026  *
11027  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
11028  * Indicates the BT coex chain mode, are 32-bit values from
11029  * enum qca_btc_chain_mode. This attribute is mandatory.
11030  *
11031  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
11032  * If set, vdev should be restarted when BT coex chain mode is updated.
11033  * This attribute is optional.
11034  */
11035 enum qca_vendor_attr_btc_chain_mode {
11036 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
11037 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
11038 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
11039 
11040 	/* Keep last */
11041 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
11042 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
11043 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
11044 };
11045 
11046 /**
11047  * enum qca_vendor_wlan_sta_flags - Station feature flags
11048  * Bits will be set to 1 if the corresponding features are enabled.
11049  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
11050  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
11051     for the station
11052  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
11053     for the station
11054  */
11055 enum qca_vendor_wlan_sta_flags {
11056 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
11057 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
11058 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
11059 };
11060 
11061 /**
11062  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
11063  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
11064  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
11065  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
11066  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
11067  */
11068 enum qca_vendor_wlan_sta_guard_interval {
11069 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
11070 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
11071 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
11072 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
11073 };
11074 
11075 /**
11076  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
11077  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
11078  *
11079  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
11080  * Required attribute in request for AP mode only, 6-byte MAC address,
11081  * corresponding to the station's MAC address for which information is
11082  * requested. For STA mode this is not required as the info always correspond
11083  * to the self STA and the current/last association.
11084  *
11085  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
11086  * Optionally used in response, u32 attribute, contains a bitmap of different
11087  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
11088  *
11089  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
11090  * Optionally used in response, u32 attribute, possible values are defined in
11091  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
11092  * Guard interval used by the station.
11093  *
11094  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
11095  * Optionally used in response, u32 attribute, used in AP mode only.
11096  * Value indicates the number of data frames received from station with retry
11097  * bit set to 1 in FC.
11098  *
11099  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
11100  * Optionally used in response, u32 attribute, used in AP mode only.
11101  * Counter for number of data frames with broadcast or multicast address in
11102  * the destination address received from the station.
11103  *
11104  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
11105  * Optionally used in response, u32 attribute, used in both STA and AP modes.
11106  * Value indicates the number of data frames successfully transmitted only
11107  * after retrying the packets and for which the TX status has been updated
11108  * back to host from target.
11109  *
11110  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
11111  * Optionally used in response, u32 attribute, used in both STA and AP mode.
11112  * Value indicates the number of data frames not transmitted successfully even
11113  * after retrying the packets for the number of times equal to the total number
11114  * of retries allowed for that packet and for which the TX status has been
11115  * updated back to host from target.
11116  *
11117  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
11118  * Optionally used in response, u32 attribute, used in AP mode only.
11119  * Counter in the target for the number of data frames successfully transmitted
11120  * to the station.
11121  *
11122  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
11123  * Optionally used in response, u32 attribute, used in AP mode only.
11124  * Value indicates the number of data frames successfully transmitted only
11125  * after retrying the packets.
11126  *
11127  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
11128  * Optionally used in response, u32 attribute, used in both STA & AP mode.
11129  * Value indicates the number of data frames not transmitted successfully even
11130  * after retrying the packets for the number of times equal to the total number
11131  * of retries allowed for that packet.
11132  *
11133  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
11134  * the STA mode only. Represent the number of probe requests sent by the STA
11135  * while attempting to roam on missing certain number of beacons from the
11136  * connected AP. If queried in the disconnected state, this represents the
11137  * count for the last connected state.
11138  *
11139  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
11140  * the STA mode. Represent the number of probe responses received by the station
11141  * while attempting to roam on missing certain number of beacons from the
11142  * connected AP. When queried in the disconnected state, this represents the
11143  * count when in last connected state.
11144  *
11145  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
11146  * STA mode only. Represents the total number of frames sent out by STA
11147  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
11148  * only for the connect session. Represents the count of last connected session,
11149  * when queried in the disconnected state.
11150  *
11151  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
11152  * Total number of RTS sent out by the STA. This data is maintained per connect
11153  * session. Represents the count of last connected session, when queried in the
11154  * disconnected state.
11155  *
11156  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
11157  * STA mode.Represent the number of RTS transmission failure that reach retry
11158  * limit. This data is maintained per connect session. Represents the count of
11159  * last connected session, when queried in the disconnected state.
11160  *
11161  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
11162  * the STA mode. Represent the total number of non aggregated frames transmitted
11163  * by the STA. This data is maintained per connect session. Represents the count
11164  * of last connected session, when queried in the disconnected state.
11165  *
11166  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
11167  * STA mode. Represent the total number of aggregated frames transmitted by the
11168  * STA. This data is maintained per connect session. Represents the count of
11169  * last connected session, when queried in the disconnected state.
11170  *
11171  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
11172  * the STA mode. Represents the number of received frames with a good PLCP. This
11173  * data is maintained per connect session. Represents the count of last
11174  * connected session, when queried in the disconnected state.
11175  *
11176  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
11177  * used in the STA mode. Represents the number of occasions that no valid
11178  * delimiter is detected by A-MPDU parser. This data is maintained per connect
11179  * session. Represents the count of last connected session, when queried in the
11180  * disconnected state.
11181  *
11182  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
11183  * STA mode. Represents the number of frames for which CRC check failed in the
11184  * MAC. This data is maintained per connect session. Represents the count of
11185  * last connected session, when queried in the disconnected state.
11186  *
11187  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
11188  * STA mode. Represents the number of unicast ACKs received with good FCS. This
11189  * data is maintained per connect session. Represents the count of last
11190  * connected session, when queried in the disconnected state.
11191  *
11192  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
11193  * mode. Represents the number of received Block Acks. This data is maintained
11194  * per connect session. Represents the count of last connected session, when
11195  * queried in the disconnected state.
11196  *
11197  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
11198  * mode. Represents the number of beacons received from the connected BSS. This
11199  * data is maintained per connect session. Represents the count of last
11200  * connected session, when queried in the disconnected state.
11201  *
11202  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
11203  * STA mode. Represents the number of beacons received by the other BSS when in
11204  * connected state (through the probes done by the STA). This data is maintained
11205  * per connect session. Represents the count of last connected session, when
11206  * queried in the disconnected state.
11207  *
11208  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
11209  * the STA mode. Represents the number of received DATA frames with good FCS and
11210  * matching Receiver Address when in connected state. This data is maintained
11211  * per connect session. Represents the count of last connected session, when
11212  * queried in the disconnected state.
11213  *
11214  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
11215  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
11216  * when in the connected state. This data is maintained per connect session.
11217  * Represents the count of last connected session, when queried in the
11218  * disconnected state.
11219  *
11220  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
11221  * STA mode. This represents the target power in dBm for the transmissions done
11222  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
11223  * connect session. Represents the count of last connected session, when
11224  * queried in the disconnected state.
11225  *
11226  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
11227  * STA mode. This represents the Target power in dBm for transmissions done to
11228  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11229  * session. Represents the count of last connected session, when queried in the
11230  * disconnected state.
11231  *
11232  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
11233  * STA mode. This represents the Target power in dBm for transmissions done to
11234  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
11235  * Represents the count of last connected session, when queried in the
11236  * disconnected state.
11237  *
11238  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
11239  * STA mode. This represents the Target power in dBm for transmissions done to
11240  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11241  * session. Represents the count of last connected session, when queried in
11242  * the disconnected state.
11243  *
11244  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
11245  * STA mode. This represents the Target power in dBm for for transmissions done
11246  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
11247  * Represents the count of last connected session, when queried in the
11248  * disconnected state.
11249  *
11250  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
11251  * in the STA mode. This represents the Nested attribute representing the
11252  * overflow counts of each receive buffer allocated to the hardware during the
11253  * STA's connection. The number of hw buffers might vary for each WLAN
11254  * solution and hence this attribute represents the nested array of all such
11255  * HW buffer count. This data is maintained per connect session. Represents
11256  * the count of last connected session, when queried in the disconnected state.
11257  *
11258  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
11259  * allowed as per the regulatory requirements for the current or last connected
11260  * session. Used in the STA mode.
11261  *
11262  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
11263  * (dBm) used by the station in its latest unicast frame while communicating
11264  * to the AP in the connected state. When queried in the disconnected state,
11265  * this represents the TX power used by the STA with last AP communication
11266  * when in connected state.
11267  *
11268  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
11269  * level used to adjust the RX sensitivity. Represents the current ANI level
11270  * when queried in the connected state. When queried in the disconnected
11271  * state, this corresponds to the latest ANI level at the instance of
11272  * disconnection.
11273  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11274  * only. This represents the number of group addressed robust management frames
11275  * received from this station with an invalid MIC or a missing MME when PMF is
11276  * enabled.
11277  *
11278  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11279  * only. This represents the number of group addressed robust management frames
11280  * received from this station with the packet number less than or equal to the
11281  * last received packet number when PMF is enabled.
11282  *
11283  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11284  * mode only. This represents the number of Beacon frames received from this
11285  * station with an invalid MIC or a missing MME when beacon protection is
11286  * enabled.
11287  *
11288  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11289  * only. This represents number of Beacon frames received from this station with
11290  * the packet number less than or equal to the last received packet number when
11291  * beacon protection is enabled.
11292  *
11293  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11294  * STA mode only. Driver uses this attribute to populate the connection failure
11295  * reason codes and the values are defined in
11296  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11297  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11298  * connection failure from driver. The driver shall not include this attribute
11299  * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
11300  * connection failure observed in the last attempted connection.
11301  *
11302  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11303  * used by the station in its last TX frame while communicating to the AP in the
11304  * connected state. When queried in the disconnected state, this represents the
11305  * rate used by the STA in the last TX frame to the AP when it was connected.
11306  * This attribute is used for STA mode only.
11307  *
11308  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11309  * This represents the rate index used by the STA for the last TX frame to the
11310  * AP. When queried in the disconnected state, this gives the last RIX used by
11311  * the STA in the last TX frame to the AP when it was connected.
11312  *
11313  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11314  * mode only. This represents the number of times the STA TSF goes out of sync
11315  * from the AP after the connection. If queried in the disconnected state, this
11316  * gives the count of TSF out of sync for the last connection.
11317  *
11318  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11319  * mode only. This represents the roam trigger reason for the last roaming
11320  * attempted by the firmware. This can be queried either in connected state or
11321  * disconnected state. Each bit of this attribute represents the different
11322  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11323  *
11324  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11325  * only. This represents the roam fail reason for the last failed roaming
11326  * attempt by the firmware. Different roam failure reason codes are specified
11327  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11328  * connected state or disconnected state.
11329  *
11330  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11331  * STA mode only. This represents the roam invoke fail reason for the last
11332  * failed roam invoke. Different roam invoke failure reason codes
11333  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11334  * queried either in connected state or disconnected state.
11335  *
11336  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11337  * This represents the average congestion duration of uplink frames in MAC
11338  * queue in unit of ms. This can be queried either in connected state or
11339  * disconnected state.
11340  *
11341  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
11342  * attribute, used in AP mode. This represents the MPDU packet count per MCS
11343  * rate value of TX packets. Every index of this nested attribute corresponds
11344  * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
11345  * queried in connected state.
11346  *
11347  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
11348  * attribute, used in AP mode. This represents the MPDU packet count per MCS
11349  * rate value of RX packets. Every index of this nested attribute corresponds
11350  * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
11351  * queried in connected state.
11352  */
11353 enum qca_wlan_vendor_attr_get_sta_info {
11354 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
11355 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
11356 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
11357 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
11358 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
11359 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
11360 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
11361 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
11362 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
11363 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
11364 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
11365 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
11366 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
11367 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
11368 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
11369 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
11370 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
11371 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
11372 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
11373 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
11374 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
11375 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
11376 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
11377 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
11378 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
11379 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
11380 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
11381 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
11382 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
11383 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
11384 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
11385 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
11386 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
11387 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
11388 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
11389 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
11390 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
11391 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
11392 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
11393 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
11394 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
11395 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
11396 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
11397 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
11398 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
11399 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
11400 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
11401 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
11402 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
11403 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
11404 
11405 	/* keep last */
11406 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
11407 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
11408 		QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
11409 };
11410 
11411 /**
11412  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
11413  * Used when the driver triggers the STA to disconnect from the AP.
11414  *
11415  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
11416  * disconnection with the AP due to unspecified reasons.
11417  *
11418  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
11419  * disconnection with the AP due to a roaming failure. This roaming is triggered
11420  * internally (host driver/firmware).
11421  *
11422  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
11423  * the AP when the user/external triggered roaming fails.
11424  *
11425  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
11426  * by the host driver whenever gateway reachability failure is detected and the
11427  * driver disconnects with AP.
11428  *
11429  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
11430  * the AP on a channel switch announcement from it with an unsupported channel.
11431  *
11432  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
11433  * with indoor channels disabled and if the STA is connected on one of these
11434  * disabled channels, the host driver disconnected the STA with this reason
11435  * code.
11436  *
11437  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
11438  * explicit request from the user to disable the current operating channel.
11439  *
11440  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
11441  * the internal host driver/firmware recovery.
11442  *
11443  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
11444  * a timeout for the key installations from the user space.
11445  *
11446  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
11447  * STA on a band change request from the user space to a different band from the
11448  * current operation channel/band.
11449  *
11450  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
11451  * interface down trigger from the user space.
11452  *
11453  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
11454  * STA on getting continuous transmission failures for multiple Data frames.
11455  *
11456  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
11457  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
11458  * represents inactivity from AP on such transmissions.
11459 
11460  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
11461  * disconnection when SA Query times out (AP does not respond to SA Query).
11462  *
11463  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
11464  * STA on missing the beacons continuously from the AP.
11465  *
11466  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
11467  * able to move to the channel mentioned by the AP in CSA.
11468  *
11469  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
11470  */
11471 enum qca_disconnect_reason_codes {
11472 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
11473 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11474 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11475 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11476 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11477 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11478 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11479 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11480 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11481 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11482 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11483 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11484 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11485 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11486 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11487 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11488 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11489 };
11490 
11491 /**
11492  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11493  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11494  *
11495  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11496  * This attribute represents the driver specific reason codes (local
11497  * driver/firmware initiated reasons for disconnection) defined
11498  * in enum qca_disconnect_reason_codes.
11499  */
11500 enum qca_wlan_vendor_attr_driver_disconnect_reason {
11501 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11502 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11503 
11504 	/* keep last */
11505 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11506 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11507 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11508 };
11509 
11510 /**
11511  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11512  *
11513  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11514  */
11515 enum qca_wlan_tspec_operation {
11516 	QCA_WLAN_TSPEC_ADD = 0,
11517 	QCA_WLAN_TSPEC_DEL = 1,
11518 	QCA_WLAN_TSPEC_GET = 2,
11519 };
11520 
11521 /**
11522  * enum qca_wlan_tspec_direction - Direction in TSPEC
11523  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11524  *
11525  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11526  */
11527 enum qca_wlan_tspec_direction {
11528 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11529 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11530 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11531 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11532 };
11533 
11534 /**
11535  * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
11536  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11537  *
11538  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11539  */
11540 enum qca_wlan_tspec_ack_policy {
11541 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11542 	QCA_WLAN_TSPEC_NO_ACK = 1,
11543 	/* Reserved */
11544 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11545 };
11546 
11547 /**
11548  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11549  * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11550  *
11551  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11552  * u8 attribute. Specify the TSPEC operation of this request. Possible values
11553  * are defined in enum qca_wlan_tspec_operation.
11554  * Mandatory attribute for all kinds of config TSPEC requests.
11555  *
11556  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11557  * u8 attribute. TS ID. Possible values are 0-7.
11558  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11559  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11560  *
11561  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11562  * u8 attribute. Direction of data carried by the TS. Possible values are
11563  * defined in enum qca_wlan_tspec_direction.
11564  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11565  *
11566  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11567  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11568  * with the TS. set - enabled, not set - disabled.
11569  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11570  *
11571  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11572  * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
11573  * belonging to this TS. Possible values are 0-7.
11574  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11575  *
11576  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11577  * u8 attribute. Indicate whether MAC acknowledgements are required for
11578  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11579  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11580  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11581  *
11582  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11583  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11584  * belonging to this TS.
11585  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11586  *
11587  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11588  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11589  * belonging to this TS.
11590  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11591  *
11592  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11593  * u32 attribute. Specify the minimum interval in microseconds between the
11594  * start of two successive SPs.
11595  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11596  *
11597  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11598  * u32 attribute. Specify the maximum interval in microseconds between the
11599  * start of two successive SPs.
11600  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11601  *
11602  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11603  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11604  * without arrival or transfer of an MPDU belonging to the TS before this TS
11605  * is deleted by the MAC entity at the HC.
11606  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11607  *
11608  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11609  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11610  * without arrival or transfer of an MSDU belonging to the TS before the
11611  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11612  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11613  * interval is always less than or equal to the inactivity interval.
11614  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11615  *
11616  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11617  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11618  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11619  * bounds of this TSPEC.
11620  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11621  *
11622  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11623  * u32 attribute. Indicate the average data rate in bps specified at the MAC
11624  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11625  * bounds of this TSPEC.
11626  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11627  *
11628  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11629  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11630  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11631  * the bounds of this TSPEC.
11632  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11633  *
11634  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11635  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11636  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11637  * value of 0 indicates that there are no bursts.
11638  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11639  *
11640  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11641  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11642  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11643  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11644  *
11645  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11646  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11647  * and above the stated application rates required to transport an MSDU/A-MSDU
11648  * belonging to the TS in this TSPEC.
11649  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11650  */
11651 enum qca_wlan_vendor_attr_config_tspec {
11652 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11653 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11654 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11655 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11656 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11657 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11658 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11659 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11660 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11661 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11662 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11663 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11664 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11665 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11666 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11667 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11668 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11669 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11670 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11671 
11672 	/* keep last */
11673 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11674 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11675 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11676 };
11677 
11678 /**
11679  * enum qca_wlan_medium_assess_type - Type of medium assess request
11680  *
11681  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
11682  */
11683 enum qca_wlan_medium_assess_type {
11684 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
11685 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
11686 };
11687 
11688 /**
11689  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
11690  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
11691  *
11692  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
11693  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
11694  * Specify the type of medium assess request and indicate its type in response.
11695  * Possible values are defined in enum qca_wlan_medium_assess_type.
11696  *
11697  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
11698  * u32 attribute. Mandatory in CCA request.
11699  * Specify the assessment period in terms of seconds. Assessment result will be
11700  * sent as the response to the CCA request after the assessment period.
11701  *
11702  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
11703  * u32 attribute. Mandatory in response to CCA request.
11704  * Total timer tick count of the assessment cycle.
11705  *
11706  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
11707  * u32 attribute. Mandatory in response to CCA request.
11708  * Timer tick count of idle time in the assessment cycle.
11709  *
11710  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
11711  * u32 attribute. Mandatory in response to CCA request.
11712  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
11713  *
11714  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
11715  * u32 attribute. Mandatory in response to CCA request.
11716  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
11717  *
11718  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
11719  * s32 attribute. Mandatory in response to CCA request.
11720  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
11721  *
11722  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
11723  * s32 attribute. Mandatory in response to CCA request.
11724  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
11725  *
11726  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
11727  * u8 attribute. Mandatory in congestion report request.
11728  * 1-enable 0-disable.
11729  *
11730  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
11731  * u8 attribute. Mandatory in congestion report enable request and will be
11732  * ignored if present in congestion report disable request. Possible values are
11733  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
11734  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
11735  * congestion percentage reaches the configured threshold.
11736  *
11737  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
11738  * u8 attribute. Optional in congestion report enable request and will be
11739  * ignored if present in congestion report disable request.
11740  * Specify the interval of congestion report event in terms of seconds. Possible
11741  * values are 1-255. Default value 1 will be used if this attribute is omitted
11742  * or using invalid values.
11743  *
11744  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
11745  * u8 attribute. Mandatory in congestion report event.
11746  * Indicate the actual congestion percentage. Possible values are 0-100.
11747  */
11748 enum qca_wlan_vendor_attr_medium_assess {
11749 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
11750 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
11751 
11752 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
11753 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
11754 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
11755 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
11756 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
11757 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
11758 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
11759 
11760 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
11761 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
11762 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
11763 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
11764 
11765 	/* keep last */
11766 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
11767 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
11768 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
11769 };
11770 
11771 /**
11772  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
11773  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
11774  *
11775  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
11776  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
11777  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
11778  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
11779  *
11780  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
11781  * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
11782  *
11783  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
11784  * u8 attribute, required. indicates group id of Tx VDEV
11785  *
11786  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
11787  * Nested attribute. This attribute shall be used by the driver to send
11788  * group information. The attributes defined in enum
11789  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
11790  * are nested in this attribute.
11791  */
11792 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
11793 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
11794 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
11795 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
11796 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
11797 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
11798 
11799 	/* keep last */
11800 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
11801 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
11802 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
11803 };
11804 
11805 /**
11806  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
11807  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
11808  *
11809  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
11810  * u32 attribute, required. contains interface index.
11811  *
11812  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
11813  * u8 attribute, required. 0 - means vdev is in down state.
11814  * 1- means vdev is in up state.
11815  */
11816 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
11817 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
11818 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
11819 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
11820 
11821 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
11822 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
11823 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
11824 };
11825 
11826 /**
11827  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
11828  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
11829  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
11830  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
11831  * frame
11832  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
11833  * Request frame.
11834  */
11835 enum qca_wlan_vendor_oci_override_frame_type {
11836 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
11837 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
11838 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
11839 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
11840 };
11841 
11842 /**
11843  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
11844  *
11845  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
11846  * STA interface has to be given while selecting the connection policies
11847  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
11848  * An interface is set as primary through the attribute
11849  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
11850  * applicable if the primary interface has not been set earlier.
11851  *
11852  * The intention is not to downgrade the primary STA performance, such as:
11853  * - Do not reduce the number of TX/RX chains of primary connection.
11854  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
11855  *   chains.
11856  * - If using MCC, should set the MCC duty cycle of the primary connection to
11857  *   be higher than the secondary connection.
11858  *
11859  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
11860  * subsequent STA connection shall be chosen to balance with the existing
11861  * concurrent STA's performance.
11862  * Such as
11863  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
11864  *   capability.
11865  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
11866  *   to the secondary.
11867  * - Prefer BSSID candidates which will help provide the best "overall"
11868  *   performance for all the STA connections.
11869  */
11870 enum qca_wlan_concurrent_sta_policy_config {
11871 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
11872 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
11873 };
11874 
11875 /**
11876  * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
11877  *
11878  * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
11879  * interface.
11880  *
11881  * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
11882  * to meet gaming audio latency requirements.
11883  *
11884  * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
11885  * concurrencies to meet lossless audio streaming requirements.
11886  */
11887 enum qca_wlan_concurrent_ap_policy_config {
11888 	QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
11889 	QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
11890 	QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
11891 };
11892 
11893 /**
11894  * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
11895  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
11896  *
11897  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
11898  * u8 attribute. Configures the concurrent STA policy configuration.
11899  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
11900 
11901  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
11902  * u8 attribute. Configures the concurrent AP policy configuration.
11903  * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
11904  */
11905 enum qca_wlan_vendor_attr_concurrent_policy {
11906 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
11907 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
11908 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
11909 
11910 	/* keep last */
11911 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
11912 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
11913 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
11914 
11915 };
11916 
11917 /* Compatibility defines for previously used enum
11918  * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
11919  * in any new implementation.
11920  */
11921 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
11922 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
11923 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
11924 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
11925 #define qca_wlan_vendor_attr_concurrent_sta_policy \
11926 	qca_wlan_vendor_attr_concurrent_policy
11927 
11928 /**
11929  * enum qca_sta_connect_fail_reason_codes - Defines values carried
11930  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
11931  * attribute.
11932  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
11933  * for unicast probe request.
11934  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
11935  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
11936  * ath request.
11937  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
11938  * received from AP.
11939  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
11940  * request.
11941  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
11942  * assoc request.
11943  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
11944  * received from AP.
11945  */
11946 enum qca_sta_connect_fail_reason_codes {
11947 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
11948 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
11949 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
11950 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
11951 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
11952 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
11953 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
11954 };
11955 
11956 /**
11957  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
11958  * OCI override request. These attributes are used inside nested attribute
11959  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
11960  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
11961  *
11962  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
11963  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
11964  * attribute to specify the frame type in which the OCI is to be overridden.
11965  *
11966  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
11967  * OCI frequency (in MHz) to override in the specified frame type.
11968  */
11969 enum qca_wlan_vendor_attr_oci_override {
11970 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
11971 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
11972 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
11973 
11974 	/* keep last */
11975 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
11976 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
11977 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
11978 };
11979 
11980 /**
11981  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
11982  * filters defined in this enum are used in attribute
11983  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
11984  *
11985  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
11986  * shall filter the channels which are not usable because of coexistence with
11987  * cellular radio.
11988  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
11989  * shall filter the channels which are not usable because of existing active
11990  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
11991  *
11992  */
11993 enum qca_wlan_vendor_usable_channels_filter {
11994 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
11995 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
11996 };
11997 
11998 /**
11999  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
12000  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
12001  *
12002  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
12003  * u32 attribute, required. Indicates the center frequency of the primary
12004  * channel in MHz.
12005  *
12006  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
12007  * u32 attribute. Indicates the center frequency of the primary segment of the
12008  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
12009  * 160 MHz, and 320 MHz channels.
12010  *
12011  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
12012  * u32 attribute. Indicates the center frequency of the secondary segment of
12013  * 80+80 channel in MHz. This attribute is required only when
12014  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
12015  *
12016  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
12017  * u32 attribute, required. Indicates the bandwidth of the channel, possible
12018  * values are defined in enum nl80211_chan_width.
12019  *
12020  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
12021  * u32 attribute, required. Indicates all the interface types for which this
12022  * channel is usable. This attribute encapsulates bitmasks of interface types
12023  * defined in enum nl80211_iftype.
12024  *
12025  */
12026 enum qca_wlan_vendor_attr_chan_info {
12027 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
12028 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
12029 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
12030 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
12031 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
12032 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
12033 
12034 	/* keep last */
12035 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
12036 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
12037 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
12038 };
12039 
12040 /**
12041  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
12042  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
12043  *
12044  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
12045  * u32 attribute. Indicates the bands from which the channels should be reported
12046  * in response. This attribute encapsulates bit masks of bands defined in enum
12047  * nl80211_band. Optional attribute, if not present in the request the driver
12048  * shall return channels from all supported bands.
12049  *
12050  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
12051  * u32 attribute. Indicates all the interface types for which the usable
12052  * channels information is requested. This attribute encapsulates bitmasks of
12053  * interface types defined in enum nl80211_iftype. Optional attribute, if not
12054  * present in the request the driver shall send information of all supported
12055  * interface modes.
12056  *
12057  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
12058  * u32 attribute. This attribute carries information of all filters that shall
12059  * be applied while populating usable channels information by the driver. This
12060  * attribute carries bit masks of different filters defined in enum
12061  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
12062  * in the request the driver shall send information of channels without applying
12063  * any of the filters that can be configured through this attribute.
12064  *
12065  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
12066  * Nested attribute. This attribute shall be used by the driver to send
12067  * usability information of each channel. The attributes defined in enum
12068  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
12069  */
12070 enum qca_wlan_vendor_attr_usable_channels {
12071 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
12072 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
12073 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
12074 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
12075 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
12076 
12077 	/* keep last */
12078 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
12079 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
12080 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
12081 };
12082 
12083 /**
12084  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
12085  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
12086  *
12087  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
12088  *	the list of radar history entries.
12089  *	Each entry contains freq, timestamp, and radar signal detect flag.
12090  *	The driver shall add an entry when CAC has finished, or radar signal
12091  *	has been detected post AP beaconing. The driver shall maintain at least
12092  *	8 entries in order to save CAC result for a 160 MHz channel.
12093  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
12094  *	Channel frequency in MHz.
12095  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
12096  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
12097  *	or radar detection.
12098  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
12099  *	This flag indicates radar signal has been detected.
12100  */
12101 enum qca_wlan_vendor_attr_radar_history {
12102 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
12103 
12104 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
12105 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
12106 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
12107 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
12108 
12109 	/* keep last */
12110 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
12111 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
12112 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
12113 };
12114 
12115 /**
12116  * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
12117  *
12118  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
12119  *	target exited MCC state and cleared the quota information. In the
12120  *	command it clears MCC quota setting and restores adaptive scheduling.
12121  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
12122  *      will not be changed.
12123  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
12124  *      and the target may change the quota based on the data activity.
12125  */
12126 enum qca_wlan_vendor_mcc_quota_type {
12127 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
12128 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
12129 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
12130 };
12131 
12132 /**
12133  * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
12134  * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
12135  * quota information or as a command to set the required MCC quota for an
12136  * interface.
12137  *
12138  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
12139  * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
12140  * In a command this specifies the MCC quota type to be set for the interface.
12141  * In an event this provides the current quota type in force.
12142  * This is required in a command and an event.
12143  *
12144  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
12145  * the list of channel quota entries.
12146  * In an event each entry contains the frequency and respective time quota for
12147  * all the MCC interfaces.
12148  * In a command it specifies the interface index and respective time quota.
12149  * In a command only one entry (ifindex, quota pair) may be specified.
12150  *
12151  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
12152  * Channel frequency in MHz. This is present only in an event.
12153  *
12154  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
12155  * Channel time quota expressed as percentage.
12156  * This is present in an event and a command.
12157  * In an command, the user shall specify the quota to be allocated for the
12158  * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
12159  * In an event this provides the existing quota for the channel.
12160  *
12161  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
12162  * Specifies the interface index (netdev) for which the corresponding
12163  * configurations are applied. This is required in a command only. Only one
12164  * interface index may be specified. If not specified, the configuration is
12165  * rejected.
12166  */
12167 enum qca_wlan_vendor_attr_mcc_quota {
12168 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
12169 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
12170 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
12171 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
12172 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
12173 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
12174 
12175 	/* keep last */
12176 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
12177 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
12178 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
12179 };
12180 
12181 /**
12182  * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
12183  * radio configurations present in each radio combination.
12184  *
12185  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
12186  * the band info in the radio configuration. Uses the enum qca_set_band values.
12187  *
12188  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
12189  * the number of antennas info in the radio configuration.
12190  */
12191 enum qca_wlan_vendor_attr_supported_radio_cfg {
12192 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
12193 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
12194 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
12195 
12196 	/* keep last */
12197 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
12198 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
12199 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
12200 };
12201 
12202 /**
12203  * enum qca_wlan_vendor_attr_radio_combination - Attributes for
12204  * radio combinations supported by the device.
12205  *
12206  * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
12207  * provides the radio configurations present in the radio combination.
12208  * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
12209  * This attribute provides the values for radio combination matrix.
12210  * For standalone config, the number of config values is one and the config
12211  * carries the band and antenna information for standalone configuration. For
12212  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
12213  * configuration the number of config values is two and the config carries the
12214  * band and antenna information for each simultaneous radio.
12215  */
12216 enum qca_wlan_vendor_attr_radio_combination {
12217 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
12218 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
12219 
12220 	/* keep last */
12221 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
12222 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
12223 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
12224 };
12225 
12226 /**
12227  * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
12228  * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
12229  *
12230  * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
12231  * provides the radio combinations supported by the device.
12232  * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
12233  * For example, in the radio combination matrix for a device which has two
12234  * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
12235  * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
12236  * combinations is 5 and the radio combinations are
12237  * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
12238  * {{5 GHz 2X2}}, //Standalone 5 GHz
12239  * {{6 GHz 2X2}}, //Standalone 6 GHz
12240  * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
12241  * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
12242  * The band and antenna info together as nested data provides one radio config.
12243  * Standalone configuration has one config with band and antenna nested data.
12244  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
12245  * have two nested band and antenna info data.
12246  */
12247 enum qca_wlan_vendor_attr_radio_combination_matrix {
12248 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
12249 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
12250 
12251 	/* keep last */
12252 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
12253 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
12254 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
12255 };
12256 
12257 /**
12258  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
12259  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
12260  *
12261  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
12262  * Enable mDNS offload. This attribute is mandatory to enable
12263  * mDNS offload feature. If this attribute is not present, mDNS offload
12264  * is disabled.
12265  *
12266  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
12267  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
12268  * attribute is mandatory when enabling the feature, and not required when
12269  * disabling the feature.
12270  *
12271  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
12272  * the following attributes:
12273  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
12274  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
12275  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
12276  *
12277  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
12278  * It consists of a hostname and ".local" as the domain name. The character
12279  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
12280  * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
12281  * supported per vdev.
12282  * For example: myphone.local
12283  *
12284  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
12285  * u16 attribute. It specifies the total number of resource records present
12286  * in the answer section of the answer payload. This attribute is needed by the
12287  * firmware to populate the mDNS response frame for mNDS queries without having
12288  * to parse the answer payload.
12289  *
12290  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
12291  * attribute sent by the mdnsResponder from userspace. It contains resource
12292  * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
12293  * payload is passed down to firmware and is transmitted in response to
12294  * mDNS queries.
12295  * The maximum size of the answer payload supported is 512 bytes.
12296  */
12297 enum qca_wlan_vendor_attr_mdns_offload {
12298 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
12299 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
12300 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
12301 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
12302 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
12303 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
12304 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
12305 
12306 	/* keep last */
12307 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
12308 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
12309 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
12310 };
12311 
12312 /**
12313  * enum qca_vendor_attr_diag_event_type  - Attributes used by
12314  * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
12315  *
12316  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
12317  * driver/firmware during Connection request from Userspace. Uses the
12318  * following attributes of enum qca_wlan_vendor_attr_diag:
12319  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12320  * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
12321  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12322  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
12323  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12324  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
12325  * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
12326  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
12327  * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
12328  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12329  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
12330  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
12331  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12332  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12333  *
12334  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
12335  * driver/firmware when a connection is failed. Uses the
12336  * following attributes of enum qca_wlan_vendor_attr_diag:
12337  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12338  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12339  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12340  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12341  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12342  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12343  *
12344  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
12345  * driver/firmware during Authentication request from a device. Uses the
12346  * following attributes of enum qca_wlan_vendor_attr_diag:
12347  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12348  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12349  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12350  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12351  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
12352  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12353  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12354  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12355  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12356  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12357  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12358  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12359  *
12360  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
12361  * driver/firmware when device receives an authentication response. Uses the
12362  * following attributes of enum qca_wlan_vendor_attr_diag:
12363  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12364  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12365  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12366  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
12367  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12368  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12369  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12370  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12371  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12372  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12373  *
12374  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
12375  * driver/firmware when device sends an association request. Uses the
12376  * following attributes of enum qca_wlan_vendor_attr_diag:
12377  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12378  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12379  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12380  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12381  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12382  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12383  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12384  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12385  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12386  *
12387  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
12388  * driver/firmware when device receives an association response. Uses the
12389  * following attributes of enum qca_wlan_vendor_attr_diag:
12390  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12391  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12392  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12393  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12394  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12395  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12396  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12397  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12398  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
12399  *
12400  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
12401  * driver/userspace when device receives a deauthentication response. Uses the
12402  * following attributes of enum qca_wlan_vendor_attr_diag:
12403  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12404  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12405  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12406  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12407  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12408  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12409  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12410  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12411  *
12412  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
12413  * driver/userspace when device sends a deauthentication request. Uses the
12414  * following attributes of enum qca_wlan_vendor_attr_diag:
12415  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12416  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12417  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12418  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12419  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12420  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12421  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12422  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12423  *
12424  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
12425  * driver/firmware when device receives a disassociation response. Uses the
12426  * following attributes of enum qca_wlan_vendor_attr_diag:
12427  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12428  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12429  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12430  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12431  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12432  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12433  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12434  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12435  *
12436  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
12437  * driver/firmware when device sends a disassociation request. Uses the
12438  * following attributes of enum qca_wlan_vendor_attr_diag:
12439  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12440  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12441  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12442  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12443  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12444  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12445  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12446  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12447  *
12448  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
12449  * driver/firmware when device did not receive beacon packets during connection.
12450  * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
12451  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12452  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12453  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12454  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12455  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12456  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12457  *
12458  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
12459  * driver/firmware when Roaming scan is triggered. Uses the following
12460  * attributes of enum qca_wlan_vendor_attr_diag:
12461  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12462  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
12463  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
12464  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12465  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12466  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
12467  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
12468  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12469  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12470  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12471  *
12472  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
12473  * driver/firmware Roam scanning is processed. Uses the following
12474  * attributes of enum qca_wlan_vendor_attr_diag:
12475  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12476  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12477  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
12478  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
12479  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12480  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12481  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12482  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12483  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
12484  *
12485  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
12486  * driver/firmware to provide Roam information of the current AP. Uses the
12487  * following attributes of enum qca_wlan_vendor_attr_diag:
12488  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12489  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12490  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12491  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12492  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12493  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
12494  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12495  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12496  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12497  *
12498  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
12499  * driver/firmware to provide Roam information of the candid AP. Uses the
12500  * following attributes of enum qca_wlan_vendor_attr_diag:
12501  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12502  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12503  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12504  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12505  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12506  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
12507  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
12508  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12509  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12510  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12511  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12512  *
12513  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
12514  * driver/firmware to provide Roam result after selecting a candidate. Uses the
12515  * following attributes of enum qca_wlan_vendor_attr_diag:
12516  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12517  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
12518  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12519  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12520  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12521  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12522  *
12523  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
12524  * driver/firmware to indicate Roam Cancellation due to higher priority events.
12525  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12526  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12527  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12528  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12529  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12530  *
12531  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
12532  * /firmware when STA sends a BTM request frame. Uses the following attributes
12533  * of enum qca_wlan_vendor_attr_diag:
12534  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12535  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12536  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
12537  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
12538  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
12539  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
12540  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12541  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12542  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12543  *
12544  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
12545  * driver/firmware when STA queries about BTM transition. Uses the following
12546  * attributes of enum qca_wlan_vendor_attr_diag:
12547  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12548  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12549  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
12550  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12551  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12552  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12553  *
12554  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
12555  * /firmware when STA receives BTM response frame. Uses the following
12556  * attributes of enum qca_wlan_vendor_attr_diag:
12557  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12558  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12559  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
12560  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
12561  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
12562  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12563  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12564  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12565  *
12566  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
12567  * driver/firmware to provide BTM request candidate information. Uses the
12568  * following attributes of enum qca_wlan_vendor_attr_diag:
12569  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12570  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12571  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
12572  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12573  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12574  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12575  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12576  *
12577  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
12578  * /firmware when ROAM WTC trigger happens. Uses the following attributes of
12579  * enum qca_wlan_vendor_attr_diag:
12580  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12581  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
12582  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12583  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
12584  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12585  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12586  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12587  *
12588  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
12589  * driver/firmware to indicate DHCP discovery to AP. Uses the following
12590  * attributes of enum qca_wlan_vendor_attr_diag:
12591  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12592  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12593  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12594  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12595  *
12596  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
12597  * driver/firmware to indicate DHCP offering to AP. Uses the following
12598  * attributes of enum qca_wlan_vendor_attr_diag:
12599  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12600  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12601  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12602  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12603  *
12604  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
12605  * driver/firmware to indicate driver sent DHCP packets. Uses the following
12606  * attributes of enum qca_wlan_vendor_attr_diag:
12607  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12608  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12609  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12610  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12611  *
12612  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
12613  * /firmware to indicate acknowledgement of DHCP packets. Uses the following
12614  * attributes of enum qca_wlan_vendor_attr_diag:
12615  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12616  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12617  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12618  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12619  *
12620  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
12621  * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
12622  * following attributes of enum qca_wlan_vendor_attr_diag:
12623  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12624  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12625  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12626  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12627  *
12628  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
12629  * /firmware to indicate EAPOL M1 message. Uses the following attributes of
12630  * enum qca_wlan_vendor_attr_diag:
12631  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12632  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12633  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12634  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12635  *
12636  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
12637  * /firmware to indicate EAPOL M2 message. Uses the following attributes of
12638  * enum qca_wlan_vendor_attr_diag:
12639  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12640  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12641  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12642  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12643  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12644  *
12645  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
12646  * /firmware to indicate EAPOL M3 message. Uses the following attributes of
12647  * enum qca_wlan_vendor_attr_diag:
12648  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12649  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12650  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12651  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12652  *
12653  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
12654  * /firmware to indicate EAPOL M4 message. Uses the following attributes of
12655  * enum qca_wlan_vendor_attr_diag:
12656  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12657  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12658  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12659  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12660  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12661  *
12662  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
12663  * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
12664  * enum qca_wlan_vendor_attr_diag:
12665  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12666  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12667  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12668  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12669  *
12670  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
12671  * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
12672  * enum qca_wlan_vendor_attr_diag:
12673  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12674  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12675  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12676  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12677  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12678  *
12679  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
12680  * /firmware to indicate device sent EAP request. Uses the following attributes
12681  * of enum qca_wlan_vendor_attr_diag:
12682  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12683  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
12684  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
12685  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12686  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12687  *
12688  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
12689  * /firmware to indicate device received EAP response. Uses the following
12690  * attributes of enum qca_wlan_vendor_attr_diag:
12691  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12692  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
12693  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
12694  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12695  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12696  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12697  *
12698  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
12699  * /firmware to indicate EAP frame transmission is success. Uses the following
12700  * attributes of enum qca_wlan_vendor_attr_diag:
12701  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12702  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12703  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12704  *
12705  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
12706  * /firmware to indicate EAP frame transmission is failed. Uses the following
12707  * attributes of enum qca_wlan_vendor_attr_diag:
12708  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12709  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12710  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12711  *
12712  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
12713  * /firmware to indicate Reassocation request. Uses the following attributes
12714  * of enum qca_wlan_vendor_attr_diag:
12715  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12716  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12717  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12718  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12719  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12720  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12721  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12722  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
12723  *
12724  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
12725  * /firmware to indicate Reassocation response. Uses the following attributes
12726  * of enum qca_wlan_vendor_attr_diag:
12727  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12728  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12729  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12730  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12731  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
12732  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12733  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12734  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
12735  */
12736 enum qca_vendor_attr_diag_event_type {
12737 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
12738 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
12739 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
12740 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
12741 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
12742 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
12743 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
12744 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
12745 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
12746 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
12747 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
12748 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
12749 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
12750 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
12751 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
12752 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
12753 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
12754 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
12755 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
12756 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
12757 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
12758 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
12759 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
12760 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
12761 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
12762 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
12763 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
12764 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
12765 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
12766 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
12767 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
12768 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
12769 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
12770 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
12771 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
12772 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
12773 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
12774 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
12775 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
12776 
12777 	/* keep last */
12778 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
12779 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
12780 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
12781 };
12782 
12783 /**
12784  * enum qca_wlan_vendor_tx_status - Used by attribute
12785  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
12786  * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
12787  * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
12788  * is not received.
12789  * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
12790  * acknowledged.
12791  */
12792 enum qca_wlan_vendor_tx_status {
12793 	QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
12794 	QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
12795 	QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
12796 };
12797 
12798 /**
12799  * enum qca_roam_sub_reason - Used by attribute
12800  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
12801  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
12802  * timer expiry
12803  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
12804  * to no candidate found during LOW RSSI trigger.
12805  * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
12806  * Imminent timeout
12807  * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
12808  * failure
12809  * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
12810  * emergency like deauth/disassoc.
12811  * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
12812  * BSS transition management request.
12813  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
12814  * Roam scan triggered due to Low RSSI periodic timer
12815  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
12816  * Roam trigger due to periodic timer after no candidate found during CU
12817  * inactivity timer scan.
12818  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
12819  * found in high CU roam trigger.
12820  */
12821 enum qca_roam_sub_reason {
12822 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
12823 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
12824 	QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
12825 	QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
12826 	QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
12827 	QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
12828 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
12829 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
12830 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
12831 };
12832 
12833 /*
12834  * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
12835  * to send diag data to the userspace. The attributes defined in this enum are
12836  * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
12837  *
12838  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
12839  * by driver/firmware to send diag data. Each instance of this nested attribute
12840  * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
12841  * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
12842  * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
12843  * nested attribute can be sent with one vendor command
12844  * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
12845  *
12846  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
12847  * attribute indicates the type of the diag event from driver/firmware. Uses
12848  * values from enum qca_vendor_attr_diag_event_type.
12849  *
12850  * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
12851  * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
12852  * API to send time of the day in microseconds to userspace.
12853  *
12854  * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
12855  * This attribute indicates firmware timestamp in microseconds.
12856  *
12857  * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
12858  * indicates wlan interface index.
12859  *
12860  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
12861  * indicates 6-byte MAC address representing the BSSID of the AP.
12862  *
12863  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
12864  * indicates the 6-byte MAC address representing the BSSID hint sent in
12865  * the connect request.
12866  *
12867  * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
12868  * indicates the SSID in u8 array with a maximum length of 32.
12869  *
12870  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
12871  * indicates the frequency of AP in MHz.
12872  *
12873  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
12874  * indicates frequency hint given in the connect request in MHz.
12875  *
12876  * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
12877  * This attribute indicates RSSI of the 802.11 frame in dBm.
12878  *
12879  * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
12880  * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
12881  * Table 12-10—Integrity and key wrap algorithms.
12882  *
12883  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
12884  * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
12885  * Table 12-10—Integrity and key wrap algorithms.
12886  *
12887  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
12888  * attribute indicates Group management cipher suite defined in IEEE Std
12889  * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
12890  *
12891  * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
12892  * indicates Auth key management suite defined in IEEE Std 802.11‐2020
12893  * Table 9-151—AKM suite selectors.
12894  *
12895  * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
12896  * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
12897  * Section 9.4.1.1 Authentication Algorithm Number field.
12898  *
12899  * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
12900  * indicates bluetooth COEX is active or not.
12901  *
12902  * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
12903  * attribute indicates SAE authentication frame type. The possible values are
12904  * 1 - SAE commit frame
12905  * 2 - SAE confirm frame
12906  *
12907  * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
12908  * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
12909  * Table 9-49—Reason codes.
12910  *
12911  * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
12912  * attribute indicates sequence number of the frame defined in IEEE Std
12913  * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
12914  * field.
12915  *
12916  * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
12917  * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
12918  * 9-50—Status codes.
12919  *
12920  * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
12921  * Uses enum qca_wlan_vendor_tx_status.
12922  *
12923  * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
12924  * indicates if frame transmission is retried.
12925  *
12926  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
12927  * Uses enum qca_roam_reason.
12928  *
12929  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
12930  * Uses enum qca_roam_sub_reason.
12931  *
12932  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
12933  * indicates channel utilization in percentage.
12934  *
12935  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
12936  * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
12937  *
12938  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
12939  * This attribute indicates current RSSI threshold in dBm.
12940  *
12941  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
12942  * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
12943  * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
12944  *
12945  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
12946  * This attribute indicates number of scanned candidate APs.
12947  *
12948  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
12949  * attribute indicates roam AP rank computed based on connection preference.
12950  *
12951  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
12952  * This attribute indicates expected throughput in kbps.
12953  *
12954  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
12955  * This attribute indicates the preference value of candidate AP / connected AP
12956  * calculated in the firmware.
12957  *
12958  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
12959  * indicates connection/roaming is successful or not.
12960  *
12961  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
12962  * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
12963  * IE present in the BTM frame.
12964  *
12965  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
12966  * This attribute indicates BTM WTC duration in milliseconds.
12967  *
12968  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
12969  * indicates dialog token value of BTM query/request/response frames.
12970  *
12971  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
12972  * attribute indicates the Transition Reason field indicates the reason why
12973  * a transition attempt occurred and contains one of the values defined in IEEE
12974  * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
12975  *
12976  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
12977  * indicates BTM mode defined in IEEE Std 802.11‐2020
12978  * Figure 9-924—Request Mode field format.
12979  *
12980  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
12981  * This attribute indicates the Disassociation Timer field which is the number
12982  * of beacon transmission times (TBTTs) until the serving AP will send a
12983  * Disassociation frame to this STA.
12984  *
12985  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
12986  * This attribute indicates BTM validity interval field in TBTTs defined in
12987  * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
12988  * Action field format.
12989  *
12990  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
12991  * This attribute indicates BTM candidate list entries.
12992  *
12993  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
12994  * This attribute indicates network preference for BTM transition defined in
12995  * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
12996  *
12997  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
12998  * This attribute indicates BTM transition status code defined in IEEE Std
12999  * 802.11‐2020 Table 9-428—BTM status code definitions.
13000  *
13001  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
13002  * This attribute indicates BSS termination delay defined in IEEE Std
13003  * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
13004  *
13005  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
13006  * This attribute indicates 6-byte MAC address representing the BSSID of the
13007  * BSS that the non-AP STA transitions to.
13008  *
13009  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
13010  * indicates EAP frame type. The methods are enumerated by IANA at
13011  * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
13012  *
13013  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
13014  * indicates EAP frame length.
13015  *
13016  * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
13017  * attribute indicates the kernel timestamp. Driver uses ktime_get() API
13018  * (Time from boot but not the time spent in suspend) to send in microseconds
13019  * to userspace.
13020  *
13021  * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
13022  * indicates the association id received in the (re)association response frame
13023  * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
13024  */
13025 enum qca_wlan_vendor_attr_diag {
13026 	QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
13027 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
13028 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
13029 	QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
13030 	QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
13031 	QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
13032 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
13033 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
13034 	QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
13035 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
13036 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
13037 	QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
13038 	QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
13039 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
13040 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
13041 	QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
13042 	QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
13043 	QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
13044 	QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
13045 	QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
13046 	QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
13047 	QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
13048 	QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
13049 	QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
13050 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
13051 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
13052 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
13053 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
13054 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
13055 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
13056 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
13057 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
13058 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
13059 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
13060 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
13061 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
13062 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
13063 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
13064 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
13065 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
13066 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
13067 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
13068 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
13069 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
13070 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
13071 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
13072 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
13073 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
13074 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
13075 	QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
13076 	QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
13077 
13078 	/* keep last */
13079 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
13080 	QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
13081 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
13082 };
13083 
13084 /**
13085  * qca_wlan_vendor_monitor_data_frame_type - Represent the various
13086  * data types to be sent over the monitor interface.
13087  */
13088 enum qca_wlan_vendor_monitor_data_frame_type {
13089 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
13090 
13091 	/* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
13092 	not set */
13093 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
13094 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
13095 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
13096 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
13097 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
13098 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
13099 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
13100 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
13101 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
13102 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
13103 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
13104 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
13105 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
13106 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
13107 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
13108 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
13109 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
13110 };
13111 
13112 /**
13113  * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
13114  * mgmt types to be sent over the monitor interface.
13115  * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
13116  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
13117  * except the Beacons. Valid only in the Connect state.
13118  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
13119  * BSSID Beacons. Valid only in the Connect state.
13120  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
13121  * the Beacons obtained during the scan (off channel and connected channel)
13122  * when in connected state.
13123  */
13124 
13125 enum qca_wlan_vendor_monitor_mgmt_frame_type {
13126 	QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
13127 	/* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
13128 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
13129 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
13130 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
13131 };
13132 
13133 /**
13134  * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
13135  * ctrl types to be sent over the monitor interface.
13136  * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
13137  * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
13138  */
13139 enum qca_wlan_vendor_monitor_ctrl_frame_type {
13140 	QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
13141 	/* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
13142 	QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
13143 };
13144 
13145 /**
13146  * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
13147  * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
13148  * monitor mode.
13149  *
13150  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
13151  * Represents the tx data packet type to be monitored (u32). These data packets
13152  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13153  *
13154  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
13155  * Represents the tx data packet type to be monitored (u32). These data packets
13156  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13157  *
13158  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
13159  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13160  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13161  *
13162  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
13163  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13164  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13165  *
13166  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
13167  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13168  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13169  *
13170  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
13171  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13172  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13173  *
13174  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
13175  * u32 attribute, An interval only for the connected beacon interval, which
13176  * expects that the connected BSSID's beacons shall be sent on the monitor
13177  * interface only on this specific interval.
13178  */
13179 enum qca_wlan_vendor_attr_set_monitor_mode {
13180 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
13181 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
13182 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
13183 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
13184 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
13185 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
13186 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
13187 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
13188 
13189 	/* keep last */
13190 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
13191 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
13192 		QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
13193 
13194 };
13195 
13196 /**
13197  * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
13198  * Bits will be set to 1 if the corresponding state is enabled.
13199  *
13200  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
13201  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
13202  */
13203 enum qca_wlan_vendor_roam_scan_state {
13204 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
13205 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
13206 };
13207 
13208 /**
13209  * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
13210  * Bits will be set to 1 if the corresponding event is notified.
13211  *
13212  * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
13213  * carries the trigger reason. When set, it is expected that the roam event
13214  * carries the respective reason via the attribute
13215  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
13216  * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
13217  *
13218  * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
13219  * carries the roam fail reason. When set, it is expected that the roam event
13220  * carries the respective reason via the attribute
13221  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
13222  * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
13223  *
13224  * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
13225  * event carries the roam invoke fail reason. When set, it is expected that
13226  * the roam event carries the respective reason via the attribute
13227  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
13228  *
13229  * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
13230  * carries the roam scan state. When set, it is expected that the roam event
13231  * carries the respective scan state via the attribute
13232  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
13233  * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
13234  */
13235 enum qca_wlan_vendor_roam_event_type {
13236 	QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
13237 	QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
13238 	QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
13239 	QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
13240 };
13241 
13242 /**
13243  * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
13244  * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
13245  *
13246  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
13247  * representing the BSSID of the AP to which the Roam is attempted.
13248  *
13249  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
13250  * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
13251  * attempted.
13252  *
13253  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
13254  * on which the roam is attempted.
13255  *
13256  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
13257  * STA mode only. This represents the roam fail reason for the last failed
13258  * roaming attempt by the firmware for the specific BSSID. Different roam
13259  * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
13260  */
13261 enum qca_wlan_vendor_attr_roam_events_candidate_info {
13262 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
13263 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
13264 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
13265 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
13266 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
13267 
13268 	/* keep last */
13269 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
13270 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
13271 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
13272 };
13273 
13274 /**
13275  * enum qca_wlan_vendor_attr_roam_events - Used by the
13276  * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
13277  * roam events to the driver or notify these events from the driver.
13278  *
13279  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
13280  * driver/firmware to enable/disable the notification of roam events. It's a
13281  * mandatory attribute and used only in the request from the userspace to the
13282  * host driver. 1-Enable, 0-Disable.
13283  * If the roaming is totally offloaded to the firmware, this request when
13284  * enabled shall mandate the firmware to notify all the relevant roam events
13285  * represented by the below attributes. If the host is in the suspend mode,
13286  * the behavior of the firmware to notify these events is guided by
13287  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
13288  * these events in the suspend state, the firmware is expected to wake up the
13289  * host before the respective events are notified. Please note that such a
13290  * request to get the events in the suspend state will have a definite power
13291  * implication.
13292  *
13293  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
13294  * that the roam events need to be notified in the suspend state too. By
13295  * default, these roam events are notified in the resume state. With this flag,
13296  * the roam events are notified in both resume and suspend states.
13297  * This attribute is used in the request from the userspace to the host driver.
13298  *
13299  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
13300  * Represents the different roam event types, signified by the enum
13301  * qca_wlan_vendor_roam_event_type.
13302  * Each bit of this attribute represents the different roam even types reported
13303  * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13304  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13305  *
13306  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
13307  * mode only. This represents the roam trigger reason for the last roaming
13308  * attempted by the firmware. Each bit of this attribute represents the
13309  * different roam trigger reason code which are defined in enum
13310  * qca_vendor_roam_triggers.
13311  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13312  *
13313  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
13314  * STA mode only. This represents the roam invoke fail reason for the last
13315  * failed roam invoke. Different roam invoke failure reason codes
13316  * are specified in enum qca_vendor_roam_invoke_fail_reasons.
13317  *
13318  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
13319  * for which the roam is attempted. Each entry is a nested attribute defined
13320  * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
13321  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13322  *
13323  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
13324  * the scan state on which the roam events need to be notified. The values for
13325  * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
13326  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13327  *
13328  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
13329  * u32 values. List of frequencies in MHz considered for a roam scan.
13330  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13331  */
13332 
13333 enum qca_wlan_vendor_attr_roam_events {
13334 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
13335 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
13336 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
13337 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
13338 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
13339 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
13340 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
13341 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
13342 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
13343 
13344 	/* keep last */
13345 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
13346 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
13347 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
13348 };
13349 
13350 /*
13351  * enum qca_wlan_ratemask_params_type - Rate mask config type.
13352  *
13353  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
13354  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
13355  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
13356  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
13357  */
13358 enum qca_wlan_ratemask_params_type {
13359 	QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
13360 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
13361 	QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
13362 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
13363 };
13364 
13365 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
13366  * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
13367  * This is used to set the rate mask value to be used in rate selection.
13368  *
13369  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
13370  * Array of nested containing attributes
13371  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
13372  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
13373  *
13374  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
13375  * the different phy types to which the rate mask config is to be applied.
13376  * The values for this attribute are referred from enum
13377  * qca_wlan_vendor_ratemask_params_type.
13378  *
13379  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
13380  * A bit value of 1 represents rate is enabled and a value of 0
13381  * represents rate is disabled.
13382  * For HE targets, 12 bits correpond to one NSS setting.
13383  * b0-13  => NSS1, MCS 0-13
13384  * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
13385  * For VHT targets, 10 bits correspond to one NSS setting.
13386  * b0-9   => NSS1, MCS 0-9
13387  * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
13388  * For HT targets, 8 bits correspond to one NSS setting.
13389  * b0-7  => NSS1, MCS 0-7
13390  * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
13391  * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
13392  */
13393 
13394 enum qca_wlan_vendor_attr_ratemask_params {
13395 	QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
13396 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
13397 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
13398 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
13399 
13400 	/* keep last */
13401 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
13402 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
13403 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
13404 };
13405 
13406 /**
13407  * enum qca_wlan_vendor_flush_pending_policy: Represents values for
13408  * the policy to flush pending frames, configured via
13409  * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
13410  * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
13411  *
13412  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
13413  * the flush policy configured before. This command basically disables the
13414  * flush config set by the user.
13415  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
13416  * the flush policy to be immediate. All pending packets for the peer/TID are
13417  * flushed when this command/policy is received.
13418  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
13419  * the flush policy to the end of TWT SP. All pending packets for the peer/TID
13420  * are flushed when the end of TWT SP is reached.
13421  */
13422 enum qca_wlan_vendor_flush_pending_policy  {
13423 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
13424 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
13425 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
13426 };
13427 
13428 /**
13429  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
13430  * flushing pending traffic in firmware.
13431  *
13432  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
13433  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
13434  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
13435  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
13436  * flush packets with access category. This is optional. See below.
13437  * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
13438  * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
13439  * bit to 1 to act upon the TID. This is optional. Either this attribute or
13440  * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
13441  * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
13442  * it is an error.
13443  * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
13444  * packets corresponding to the peer/TID provided. It is a u32 value,
13445  * represented by %enum qca_wlan_vendor_flush_pending_policy. This
13446  * value is honored only when TID mask is provided. This is not honored when AC
13447  * mask is provided.
13448  */
13449 enum qca_wlan_vendor_attr_flush_pending {
13450 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
13451 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
13452 	QCA_WLAN_VENDOR_ATTR_AC = 2,
13453 	QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
13454 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
13455 	/* keep last */
13456 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
13457 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
13458 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
13459 };
13460 
13461 /**
13462  * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
13463  *	for) or drop existing PASN security association for the listed the
13464  *	peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
13465  *	to userspace.
13466  *
13467  * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
13468  *	devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
13469  * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
13470  *	the driver to userspace to inform that the existing PASN keys of the
13471  *	peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
13472  *	not valid anymore.
13473  */
13474 enum qca_wlan_vendor_pasn_action {
13475 	QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
13476 	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
13477 };
13478 
13479 /**
13480  * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
13481  *	QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
13482  *
13483  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
13484  *	event from the driver to userspace and represents the local MAC address
13485  *	to be used for PASN handshake. When this attribute is present, userspace
13486  *	shall use the source address specified in this attribute by the driver
13487  *	for PASN handshake with peer device.
13488  *	This attribute is required in a command response from userspace to the
13489  *	driver and represents the MAC address that was used in PASN handshake
13490  *	with the peer device.
13491  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
13492  *	peer device to which PASN handshake is requested in an event from the
13493  *	driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13494  *	QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
13495  *	Indicates the MAC address of the peer device for which the keys are to
13496  *	be invalidated in an event from the driver to userspace when
13497  *	QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13498  *	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
13499  *	Indicates the MAC address of the peer device for which the status is
13500  *	being sent in a status report from userspace to the driver.
13501  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
13502  *	in the event from the driver to userspace. When set, userspace is
13503  *	required to derive LTF key seed from KDK and set it to the driver.
13504  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
13505  *	attribute is used in the command response from userspace to the driver.
13506  *	If present, it indicates the successful PASN handshake with the peer. If
13507  *	this flag is not present, it indicates that the PASN handshake with the
13508  *	peer device failed.
13509  */
13510 enum qca_wlan_vendor_attr_pasn_peer {
13511 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
13512 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
13513 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
13514 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
13515 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
13516 
13517 	/* keep last */
13518 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
13519 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
13520 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
13521 };
13522 
13523 /**
13524  * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
13525  *	QCA_NL80211_VENDOR_SUBCMD_PASN command.
13526  *
13527  * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
13528  *	defined in enum qca_wlan_vendor_pasn_action and used only in an event
13529  *	from the driver to userspace.
13530  * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
13531  *	details for each peer and used in both an event and a command response.
13532  *	The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
13533  *	defined in enum qca_wlan_vendor_attr_pasn_peer.
13534  */
13535 enum qca_wlan_vendor_attr_pasn {
13536 	QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
13537 	QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
13538 	QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
13539 
13540 	/* keep last */
13541 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
13542 	QCA_WLAN_VENDOR_ATTR_PASN_MAX =
13543 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
13544 };
13545 
13546 /**
13547  * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
13548  *	the ranging security context derived from PASN for each peer. Used in
13549  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
13550  *
13551  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
13552  *	context for the peer.
13553  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
13554  *	context for the peer.
13555  */
13556 enum qca_wlan_vendor_secure_ranging_ctx_action {
13557 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
13558 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
13559 };
13560 
13561 /**
13562  * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
13563  *	used for deriving PASN keys to the driver. Used in
13564  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
13565  * @QCA_WLAN_VENDOR_SHA_256: SHA-256
13566  * @QCA_WLAN_VENDOR_SHA_384: SHA-384
13567  */
13568 enum qca_wlan_vendor_sha_type {
13569 	QCA_WLAN_VENDOR_SHA_256,
13570 	QCA_WLAN_VENDOR_SHA_384,
13571 };
13572 
13573 /**
13574  * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
13575  *	to set security context for the PASN peer from userspace to the driver.
13576  *	Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
13577  *
13578  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
13579  *	values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
13580  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
13581  *	was used during the PASN handshake.
13582  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
13583  *	the peer device for which secure ranging context is being configured.
13584  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
13585  *	hash algorithm to be used, possible values are defined in enum
13586  *	qca_wlan_vendor_sha_type.
13587  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
13588  *	the temporal key generated from the PASN handshake. The length of this
13589  *	attribute is dependent on the value of
13590  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
13591  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
13592  *	TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
13593  *	(e.g., 0x000FAC04).
13594  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
13595  *	attribute, holds the LTF keyseed derived from KDK of PASN handshake.
13596  *	The length of this attribute is dependent on the value of
13597  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
13598  *
13599  */
13600 enum qca_wlan_vendor_attr_secure_ranging_ctx {
13601 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
13602 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
13603 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
13604 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
13605 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
13606 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
13607 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
13608 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
13609 
13610 	/* keep last */
13611 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
13612 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
13613 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
13614 };
13615 
13616 /**
13617  * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
13618  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
13619  * nested attribute. The packets that match a filter will be replied with
13620  * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
13621  *
13622  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
13623  * u32 attribute. Destination IPv4 address in network byte order, the
13624  * IPv4 packets with different address will be filtered out.
13625  * This attribute is optional.
13626  *
13627  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
13628  * Flag attribute. If it's present, indicates that
13629  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
13630  * address; while if not, indicates that the address is a unicast/multicast
13631  * address.
13632  * This attribute is optional.
13633  *
13634  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
13635  * NLA_BINARY attribute, length is 16 bytes.
13636  * Destination IPv6 address in network byte order, the IPv6 packets
13637  * with different destination address will be filtered out.
13638  * This attribute is optional.
13639  *
13640  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
13641  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
13642  * Packets on both IPv4 and IPv6 will be processed if both are configured.
13643  *
13644  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
13645  * u16 attribute. Destination UDP port, the packets with different destination
13646  * UDP port will be filtered out.
13647  * This attribute is mandatory.
13648  *
13649  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
13650  * u32 attribute. Represents the offset (in UDP payload) of the data
13651  * to be matched.
13652  * This attribute is mandatory.
13653  *
13654  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
13655  * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
13656  * Binary data that is compared bit-by-bit against the data (specified
13657  * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
13658  * payload, the packets don't match will be filtered out.
13659  * This attribute is mandatory.
13660  */
13661 enum qca_wlan_vendor_attr_coap_offload_filter {
13662 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
13663 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
13664 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
13665 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
13666 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
13667 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
13668 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
13669 
13670 	/* keep last */
13671 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
13672 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
13673 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
13674 };
13675 
13676 /**
13677  * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
13678  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
13679  *
13680  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
13681  * u32 attribute. Source address (in network byte order) for replying
13682  * the matching broadcast/multicast IPv4 packets.
13683  * This attribute is optional.
13684  *
13685  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
13686  * NLA_BINARY attribute, length is 16 bytes.
13687  * Source address (in network byte order) for replying the matching
13688  * multicast IPv6 packets.
13689  * This attribute is optional.
13690  *
13691  * For broadcast/multicast offload reply, one of
13692  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
13693  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
13694  * configured according to version of the IP address(es) configured in
13695  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
13696  * while for unicast case, firmware will take the destination IP address
13697  * in the received matching packet as the source address for replying.
13698  *
13699  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
13700  * Nested attribute. Filter for the received UDP packets, only the matching
13701  * packets will be replied and cached.
13702  * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
13703  * attributes.
13704  * This attribute is mandatory.
13705  *
13706  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
13707  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13708  * CoAP message (UDP payload) to be sent upon receiving matching packets.
13709  * Firmware is responsible for adding any necessary protocol headers.
13710  * This attribute is mandatory.
13711  *
13712  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
13713  * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
13714  * A cached message will be dropped by firmware if it's expired.
13715  * This attribute is optional. A default value of 40000 will be used in the
13716  * absence of it.
13717  */
13718 enum qca_wlan_vendor_attr_coap_offload_reply {
13719 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
13720 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
13721 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
13722 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
13723 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
13724 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
13725 
13726 	/* keep last */
13727 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
13728 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
13729 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
13730 };
13731 
13732 /**
13733  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
13734  * CoAP message (UDP) transmitting on IPv4.
13735  *
13736  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
13737  * u32 attribute. Source address (in network byte order) for transmitting
13738  * packets on IPv4.
13739  * This attribute is mandatory.
13740  *
13741  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
13742  * u16 attribute. Source UDP port.
13743  * This attribute is optional, a random port is taken if it's not present.
13744  *
13745  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
13746  * u32 attribute. Destination IPv4 address (in network byte order).
13747  * This attribute is mandatory.
13748  *
13749  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
13750  * Flag attribute. If it's present, indicates that
13751  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
13752  * address; while if not, indicates that the address is unicast/multicast
13753  * address.
13754  * This attribute is optional.
13755  *
13756  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
13757  * u16 attribute. Destination UDP port.
13758  * This attribute is mandatory.
13759  */
13760 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
13761 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
13762 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
13763 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
13764 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
13765 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
13766 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
13767 
13768 	/* keep last */
13769 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
13770 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
13771 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
13772 };
13773 
13774 /**
13775  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
13776  * CoAP message (UDP) transmitting on IPv6.
13777  *
13778  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
13779  * NLA_BINARY attribute, length is 16 bytes.
13780  * Source address (in network byte order) for transmitting packets on IPv6.
13781  * This attribute is mandatory.
13782  *
13783  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
13784  * u16 attribute. Source UDP port.
13785  * This attribute is optional, a random port is taken if it's not present.
13786  *
13787  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
13788  * NLA_BINARY attribute, length is 16 bytes.
13789  * Destination IPv6 address (in network byte order).
13790  * This attribute is mandatory.
13791  *
13792  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
13793  * u16 attribute. Destination UDP port.
13794  * This attribute is mandatory.
13795  */
13796 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
13797 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
13798 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
13799 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
13800 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
13801 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
13802 
13803 	/* keep last */
13804 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
13805 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
13806 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
13807 };
13808 
13809 /**
13810  * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
13811  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
13812  *
13813  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
13814  * Nested attribute. The IPv4 source/destination address/port for offload
13815  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
13816  * of supported attributes.
13817  * This attribute is optional.
13818  *
13819  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
13820  * Nested attribute. The IPv6 source/destination address/port for offload
13821  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
13822  * of supported attributes.
13823  * This attribute is optional.
13824  *
13825  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
13826  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
13827  * Firmware will transmit the packets on both IPv4 and IPv6 if both are
13828  * configured.
13829  *
13830  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
13831  * u32 attribute. Period in milliseconds for the periodic transmitting.
13832  * This attribute is mandatory.
13833  *
13834  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
13835  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13836  * CoAP message (UDP payload) to be periodically transmitted. Firmware
13837  * is responsible for adding any necessary protocol headers.
13838  * This attribute is mandatory.
13839  */
13840 enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
13841 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
13842 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
13843 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
13844 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
13845 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
13846 
13847 	/* keep last */
13848 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
13849 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
13850 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
13851 };
13852 
13853 /**
13854  * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
13855  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
13856  *
13857  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
13858  * u64 attribute. Received time (since system booted in microseconds) of
13859  * the cached CoAP message.
13860  * This attribute is mandatory.
13861  *
13862  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
13863  * u32 attribute. Source IPv4 address (in network byte order) of the cached
13864  * CoAP message.
13865  * This attribute is optional.
13866  *
13867  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
13868  * NLA_BINARY attribute, length is 16 bytes.
13869  * Source IPv6 address (in network byte order) of the cached CoAP message.
13870  * This attribute is optional.
13871  *
13872  * At most and at least one of
13873  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
13874  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
13875  * an entry.
13876  *
13877  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
13878  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13879  * The cached CoAP message (UDP payload). If the actual message size is
13880  * greater than the maximum size, it will be truncated and leaving only
13881  * the first 1152 bytes.
13882  * This attribute is mandatory.
13883  */
13884 enum qca_wlan_vendor_attr_coap_offload_cache_info {
13885 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
13886 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
13887 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
13888 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
13889 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
13890 
13891 	/* keep last */
13892 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
13893 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
13894 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
13895 };
13896 
13897 /**
13898  * enum qca_wlan_vendor_coap_offload_action - Actions for
13899  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13900  *
13901  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
13902  * Enable CoAP offload reply.
13903  * If it's enabled, firmware will start offload processing on each suspend
13904  * and stop on each resume.
13905  *
13906  * Offload reply on match works as follows:
13907  * Reply the packets that match the filter with the given CoAP
13908  * message (with necessary protocol headers), increase the CoAP message
13909  * ID in the given CoAP message by one for the next use after each successful
13910  * transmission, and try to store the information of the received packet,
13911  * including the received time, source IP address, and CoAP message (UDP
13912  * payload).
13913  *
13914  * Firmware has a limit to the maximum stored entries, it takes the source IP
13915  * address as the key of an entry, and keeps at most one entry for each key.
13916  * A packet won't be stored if no entry for the same key is present and the
13917  * total number of the existing unexpired entries reaches the maximum value.
13918  *
13919  * If any configured item is changed, user space should disable offload reply
13920  * first and then issue a new enable request.
13921  *
13922  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
13923  * Disable CoAP offload reply and return information of any cached CoAP
13924  * messages.
13925  *
13926  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
13927  * Enable CoAP offload periodic transmitting.
13928  * If it's enabled, firmware will start offload periodic transmitting on
13929  * each suspend and stop on each resume.
13930  *
13931  * Offload periodic transmitting works as follows:
13932  * Send the given CoAP message (with necessary protocol headers) with the given
13933  * source/destination IP address/UDP port periodically based on the given
13934  * period and increase the CoAP message ID in the given CoAP message by one
13935  * for the next use after each successful transmission.
13936  *
13937  * If any configured item is changed, user space should disable offload
13938  * periodic transmitting first and then issue a new enable request.
13939  *
13940  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
13941  * Disable CoAP offload periodic transmitting.
13942  *
13943  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
13944  * Get information of the CoAP messages cached during offload reply
13945  * processing. The cache is cleared after retrieval.
13946  */
13947 enum qca_wlan_vendor_coap_offload_action {
13948 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
13949 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
13950 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
13951 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
13952 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
13953 };
13954 
13955 /**
13956  * enum qca_wlan_vendor_attr_coap_offload - Used by the
13957  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13958  * This is used to set parameters for CoAP offload processing, or get
13959  * cached CoAP messages from firmware.
13960  *
13961  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
13962  * u32 attribute. Action to take in this vendor command.
13963  * See enum qca_wlan_vendor_coap_offload_action for supported actions.
13964  * This attribute is mandatory.
13965  *
13966  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
13967  * u32 attribute. Represents the Request ID for the CoAP offload
13968  * configuration, which can help to identify the user entity starting
13969  * the CoAP offload processing and accordingly stop the respective
13970  * ones/get the cached CoAP messages with the matching ID.
13971  * This attribute is mandatory.
13972  *
13973  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
13974  * Nested attribute. Parameters for offload reply.
13975  * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
13976  * supported attributes.
13977  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13978  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
13979  * otherwise.
13980  *
13981  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
13982  * Nested attribute. Parameters for offload periodic transmitting.
13983  * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
13984  * supported attributes.
13985  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
13986  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
13987  * otherwise.
13988  *
13989  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
13990  * Array of nested attributes. Information of the cached CoAP messages,
13991  * where each entry is taken from
13992  * enum qca_wlan_vendor_attr_coap_offload_cache_info.
13993  * This attribute is used for reporting the cached CoAP messages
13994  * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13995  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
13996  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
13997  * cached item if this attribute is not present.
13998  */
13999 enum qca_wlan_vendor_attr_coap_offload {
14000 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
14001 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
14002 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
14003 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
14004 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
14005 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
14006 
14007 	/* keep last */
14008 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
14009 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
14010 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
14011 };
14012 
14013 /**
14014  * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
14015  * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
14016  * Service (SCS) rule.
14017  *
14018  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
14019  * Represents the unique id of SCS rule to be configured.
14020 
14021  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
14022  * Represents the request type: add, remove, or change.
14023  * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
14024  * Type definitions).
14025  *
14026  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
14027  * in case of add/change request type.
14028  * Represents the output traffic identifier (TID) to be assigned to the flow
14029  * matching the rule.
14030  *
14031  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
14032  * attribute in case of add/change request type.
14033  * Represents type of classifier parameters present in SCS rule.
14034  * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
14035  * Only classifier types 4 and 10 are supported for SCS.
14036  *
14037  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
14038  * in case of add/change request type when classifier type is TCLAS4.
14039  * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
14040  *
14041  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
14042  * attribute in case of add/change request type when classifier type is TCLAS4
14043  * and version attribute is IPv4.
14044  * Represents the source IPv4 address in the rule which is to be compared
14045  * against the source IP address in the IPv4 header.
14046  *
14047  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
14048  * attribute in case of add/change request type when classifier type is TCLAS4
14049  * and version attribute is IPv4.
14050  * Represents the destination IPv4 address in the rule which is to be compared
14051  * against the destination IP address in the IPv4 header.
14052  *
14053  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
14054  * attribute in case of add/change request type when classifier type is TCLAS4
14055  * and version attribute is IPv6.
14056  * Represents the source IPv6 address in the rule which is to be compared
14057  * against the source IP address in the IPv6 header.
14058  *
14059  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
14060  * attribute in case of add/change request type when classifier type is TCLAS4
14061  * and version attribute is IPv6.
14062  * Represents the destination IPv6 address in the rule which is to be compared
14063  * against the destination IP address in the IPv6 header.
14064  *
14065  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
14066  * in case of add/change request type when classifier type is TCLAS4.
14067  * Represents the source port number in the rule which is to be compared against
14068  * the source port number in the protocol header.
14069  *
14070  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
14071  * in case of add/change request type when classifier type is TCLAS4.
14072  * Represents the destination port number in the rule which is to be compared
14073  * against the destination port number in the protocol header.
14074  *
14075  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
14076  * in case of add/change request type when classifier type is TCLAS4.
14077  * Represents the DSCP value in the rule which is to be compared against the
14078  * DSCP field present in the IP header.
14079  *
14080  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
14081  * attribute in case of add/change request type when classifier type is TCLAS4.
14082  * Represents the protocol/next header in the rule which is to be compared
14083  * against the protocol/next header field present in the IPv4/IPv6 header.
14084  *
14085  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
14086  * attribute of size 3 bytes present in case of add/change request type
14087  * when classifier type is TCLAS4 and version is IPv6.
14088  * Represents the flow label value in the rule which is to be compared against
14089  * the flow label field present in the IPv6 header.
14090  *
14091  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
14092  * attribute in case of add/change request type when classifier type is TCLAS10.
14093  * Represents the protocol instance number in the rule.
14094  *
14095  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
14096  * attribute in case of add/change request type when classifier type is TCLAS10.
14097  * Represents the protocol/next header in the rule which is to be compared
14098  * against the protocol/next header field present in the IPv4/IPv6 header.
14099  *
14100  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
14101  * attribute of variable length present when request type is add/change and
14102  * classifier type is TCLAS10.
14103  * Represents the mask to be used for masking the header contents of the header
14104  * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
14105  * attribute.
14106  *
14107  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
14108  * attribute of variable length present when request type is add/change and
14109  * classifier type is TCLAS10.
14110  * Represents the value to be compared against after masking the header contents
14111  * of the header specified by the
14112  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
14113  * filter mask specified by the
14114  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
14115  *
14116  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
14117  * attribute.
14118  * Represents the service class id of the configured SCS rule.
14119  */
14120 enum qca_wlan_vendor_attr_scs_rule_config {
14121 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
14122 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
14123 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
14124 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
14125 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
14126 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
14127 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
14128 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
14129 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
14130 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
14131 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
14132 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
14133 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
14134 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
14135 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
14136 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
14137 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
14138 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
14139 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
14140 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
14141 
14142 	/* Keep last */
14143 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
14144 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
14145 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
14146 };
14147 
14148 /**
14149  * enum qca_wlan_vendor_sar_version - This describes the current SAR version
14150  * used in the firmware.
14151  *
14152  * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
14153  * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
14154  *
14155  * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
14156  * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
14157  * each CTL group. So user can select up to 6 SAR indexes from the current CTL
14158  * groups.
14159  *
14160  * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
14161  * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
14162  * CTL group but user can choose up to 3 SAR set index only, as the top half
14163  * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
14164  * the SAR index (3 to 5) is used for DBS mode.
14165  */
14166 enum qca_wlan_vendor_sar_version {
14167 	QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
14168 	QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
14169 	QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
14170 	QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
14171 };
14172 
14173 /**
14174  * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
14175  * CTL grouping is enabled or disabled in the firmware.
14176  *
14177  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
14178  * is enabled in firmware.
14179  *
14180  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
14181  * is disabled in firmware.
14182  *
14183  */
14184 enum qca_wlan_vendor_sar_ctl_group_state {
14185 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
14186 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
14187 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
14188 };
14189 
14190 /**
14191  * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
14192  * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
14193  * supported by the firmware.
14194 
14195  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
14196  * u32 attribute. This field describes current SAR version supported by the
14197  * firmware.
14198  * See enum qca_wlan_vendor_sar_version for more information.
14199  * This attribute is mandatory.
14200 
14201  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
14202  * u32 attribute. This field describes whether CTL groups are enabled
14203  * or disabled in the firmware.
14204  * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
14205  * This attribute is optional.
14206  */
14207 
14208 enum qca_wlan_vendor_attr_sar_capability {
14209 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
14210 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
14211 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
14212 
14213 	/* Keep last */
14214 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
14215 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
14216 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
14217 };
14218 
14219 /**
14220  * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
14221  * These statistics are sent from the driver in a response when userspace
14222  * queries to get the statistics using the operation
14223  * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
14224  * by the driver when the SR feature is enabled, when the driver receives
14225  * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
14226  *
14227  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14228  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14229  * This represents the number of non-SRG TX opportunities.
14230  *
14231  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14232  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14233  * This represents the number of non-SRG PPDUs tried to transmit.
14234  *
14235  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14236  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14237  * This represents the number of non-SRG PPDUs successfully transmitted.
14238  *
14239  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14240  * Mandatory only when SRG is supported by the AP and optional otherwise.
14241  * This represents the number of SRG TX opportunities.
14242  *
14243  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14244  * Mandatory only when SRG is supported by the AP and optional otherwise.
14245  * This represents the number of SRG PPDUs tried to transmit.
14246  *
14247  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14248  * Mandatory only when SRG is supported by the AP and optional otherwise.
14249  * This represents the number of SRG PPDUs successfully transmitted.
14250  */
14251 enum qca_wlan_vendor_attr_sr_stats {
14252 	QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
14253 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
14254 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
14255 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
14256 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
14257 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
14258 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
14259 
14260 	/* Keep last */
14261 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
14262 	QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
14263 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
14264 };
14265 
14266 /**
14267  * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
14268  * Spatial Reuse feature.
14269  *
14270  * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
14271  * roaming to an AP that doesn't support/supports SR feature, respectively.
14272  *
14273  * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
14274  * to change in concurrent interfaces that are supported by the driver.
14275  */
14276 enum qca_wlan_sr_reason_code {
14277 	QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
14278 	QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
14279 };
14280 
14281 /**
14282  * enum qca_wlan_sr_operation - Defines the different types of SR operations.
14283  * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
14284  *
14285  * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
14286  * driver to enable the Spatial Reuse feature. Attributes
14287  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14288  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
14289  * operation.
14290  *
14291  * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
14292  * driver to disable the Spatial Reuse feature.
14293  *
14294  * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
14295  * asynchronous event sent to userspace when the SR feature is disabled.
14296  * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
14297  * and sent along with the asynchronous event.
14298  *
14299  * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
14300  * asynchronous event when the SR feature is enabled again after the SR feature
14301  * was suspended by the driver earlier. The enable reason is
14302  * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
14303  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14304  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
14305  *
14306  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
14307  * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14308  * reuse transmissions. Userspace sends this operation to the driver.
14309  * The driver/firmware upon receiving this operation shall prohibit PSR-based
14310  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14311  *
14312  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
14313  * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14314  * reuse transmissions. Userspace sends this operation to the driver.
14315  * The driver/firmware upon receiving this operation shall allow PSR-based
14316  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14317  *
14318  * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
14319  * driver to get the SR statistics and the driver sends a synchronous response
14320  * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
14321  * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
14322  *
14323  * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
14324  * driver to clear the SR statistics and upon receiving this operation
14325  * the driver/firmware shall clear the SR statistics.
14326  *
14327  * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
14328  * driver to get the SR parameters and the driver sends the synchronous response
14329  * with the following required attributes:
14330  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14331  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14332  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14333  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14334  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14335  *
14336  * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
14337  * asynchronous event to userspace to update any changes in SR parameters.
14338  * The following attributes are used with this operation:
14339  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14340  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14341  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14342  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14343  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14344  */
14345 enum qca_wlan_sr_operation {
14346 	QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
14347 	QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
14348 	QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
14349 	QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
14350 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
14351 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
14352 	QCA_WLAN_SR_OPERATION_GET_STATS = 6,
14353 	QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
14354 	QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
14355 	QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
14356 };
14357 
14358 /**
14359  * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
14360  * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
14361  *
14362  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
14363  * This attribute is optionally set in response to
14364  * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
14365  * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
14366  * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
14367  * about HESIGA_Spatial_reuse_value15_allowed.
14368  *
14369  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
14370  * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
14371  * operation. This indicates whether non-SRG OBSS PD SR transmissions are
14372  * allowed or not at non-AP STAs that are associated with the AP. If present
14373  * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
14374  *
14375  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
14376  * attribute. This attribute is used in response to
14377  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
14378  * Min Offset field which contains an unsigned integer that is added to -82 dBm
14379  * to generate the value of the SRG OBSS PD Min parameter.
14380  *
14381  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
14382  * attribute. This attribute is used in response to
14383  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
14384  * Max Offset field which contains an unsigned integer that is added to -82 dBm
14385  * to generate the value of the SRG OBSS PD Max parameter.
14386  *
14387  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
14388  * attribute. This attribute is used in response to
14389  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
14390  * PD Max Offset field which contains an unsigned integer that is added to -82
14391  * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
14392  *
14393  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
14394  * Userspace optionally sends this attribute with
14395  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
14396  * preferred SRG PD threshold. The driver shall send this attribute to
14397  * userspace in SR resume event to indicate the PD threshold being used for SR.
14398  * When there is change in SRG PD threshold (for example, due to roaming, etc.)
14399  * the driver shall indicate the userspace the newly configured SRG PD threshold
14400  * using an asynchronous event.
14401  *
14402  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
14403  * Userspace optionally sends this attribute with
14404  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
14405  * preferred non-SRG PD threshold. The driver shall send this attribute to
14406  * userspace in SR resume event to indicate the PD threshold being used for SR.
14407  * When there is change in non-SRG PD threshold (for example, due to roaming,
14408  * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
14409  * threshold using an asynchronous event.
14410  *
14411  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
14412  * values are defined in enum qca_wlan_sr_reason_code. This
14413  * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
14414  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
14415  */
14416 enum qca_wlan_vendor_attr_sr_params {
14417 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
14418 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
14419 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
14420 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
14421 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
14422 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
14423 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
14424 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
14425 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
14426 
14427 	/* keep last */
14428 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
14429 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
14430 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
14431 };
14432 
14433 /**
14434  * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
14435  * command QCA_NL80211_VENDOR_SUBCMD_SR.
14436  *
14437  * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
14438  * from userspace to the driver. Possible values are defined in enum
14439  * qca_wlan_sr_operation.
14440  *
14441  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
14442  * configuration parameters. The possible attributes inside this attribute are
14443  * defined in enum qca_wlan_vendor_attr_sr_params.
14444  * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
14445  * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
14446  * also in response from the driver to userspace when the response is sent for
14447  * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
14448  * The driver uses this attribute in asynchronous events in which the operation
14449  * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
14450  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
14451  *
14452  * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
14453  * statistics. These attributes used inside this are defined in enum
14454  * qca_wlan_vendor_attr_sr_stats.
14455  * This attribute is used in response from the driver to a command in which
14456  * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
14457  * %QCA_WLAN_SR_OPERATION_GET_STATS.
14458  */
14459 enum qca_wlan_vendor_attr_sr {
14460 	QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
14461 	QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
14462 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
14463 	QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
14464 
14465 	/* Keep last */
14466 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
14467 	QCA_WLAN_VENDOR_ATTR_SR_MAX =
14468 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
14469 };
14470 
14471 #endif
14472