xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/qca_vendor.h (revision 2f4b444fb7e689b83a4ab0e7b3b38f0bf4def8e0)
1 /*
2  * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for
5  * any purpose with or without fee is hereby granted, provided that the
6  * above copyright notice and this permission notice appear in all
7  * copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16  * PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 /**
20  * DOC: declares vendor commands interfacing with linux kernel
21  */
22 
23 
24 #ifndef _WLAN_QCA_VENDOR_H_
25 #define _WLAN_QCA_VENDOR_H_
26 
27 /* Vendor id to be used in vendor specific command and events
28  * to user space.
29  * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
30  * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
31  * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
32  * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
33  */
34 
35 #define QCA_NL80211_VENDOR_ID           0x001374
36 
37 #ifndef BIT
38 #define BIT(x) (1U << (x))
39 #endif
40 
41 /**
42  * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
43  *
44  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
45  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
46  *	Sub commands 2 to 8 are not used
47  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
48  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
49  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
50  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
51  *	NAN Request/Response and NAN Indication messages. These messages are
52  *	interpreted between the framework and the firmware component. While
53  *	sending the command from userspace to the driver, payload is not
54  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
55  *	is used when receiving vendor events in userspace from the driver.
56  * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
57  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
58  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
59  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
60  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
61  *	results
62  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
63  *	results
64  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
65  *	results
66  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
67  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
68  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
69  *	channels
70  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
71  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
72  *	results
73  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
74  *	available. Used when report_threshold is reached in scan cache.
75  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
76  *	result. Used to report scan results when each probe rsp. is received,
77  *	if report_events enabled in wifi_scan_cmd_params.
78  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
79  *	Indicates progress of scanning state-machine.
80  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
81  *	ap found
82  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
83  *	bssid
84  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
85  *	hotlist bssid
86  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
87  *	change
88  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
89  *	significant change
90  *	ap found
91  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
92  *	significant change
93  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
94  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
95  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
96  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
97  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
98  * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
99  * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
100  * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
101  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
102  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
103  * roaming and auth information.
104  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
105  *
106  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
107  *	invoke the ACS function in device and pass selected channels to
108  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
109  *
110  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
111  * driver.
112  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
113  *	started CAC on DFS channel
114  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
115  * 	completed the CAC check on DFS channel
116  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
117  * 	check was aborted by the driver
118  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
119  * 	driver completed NOP
120  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
121  * 	driver detected radar signal on the current operating channel
122  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
123  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
124  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
125  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
126  * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
127  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
128  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
129  *	extscan reset ssid hotlist
130  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
131  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
132  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
133  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
134  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
135  *	reset passpoint list
136  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
137  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
138  *	passpoint network found
139  * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
140  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
141  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
142  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
143  * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
144  * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
145 	list
146  * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
147  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
148  *	to the host driver. This command sets the band through either
149  *	the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
150  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
151  *	refers enum qca_set_band as unsigned integer values and
152  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
153  *	values. Also, the acceptable values for
154  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
155  *	values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
156  *	attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
157  *	recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
158  *	implementations configure using both the attributes, the configurations
159  *	through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
160  *	precedence.
161  * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
162  * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
163  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
164  * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
165  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
166  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
167  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
168  * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
169  * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
170  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
171  *	start the P2P Listen Offload function in device and pass the listen
172  *	channel, period, interval, count, number of device types, device
173  *	types and vendor information elements to device driver and firmware.
174  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
175  *	indicate stop request/response of the P2P Listen Offload function in
176  *	device. As an event, it indicates either the feature stopped after it
177  *	was already running or feature has actually failed to start.
178  * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
179  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
180  *     beaconing, this sub command provides the driver, the frequencies on the
181  *     5 GHz to check for any radar activity. Driver selects one channel from
182  *     this priority list provided through
183  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
184  *     to check for radar activity on it. If no radar activity is detected
185  *     during the channel availability check period, driver internally switches
186  *     to the selected frequency of operation. If the frequency is zero, driver
187  *     internally selects a channel. The status of this conditional switch is
188  *     indicated through an event using the same sub command through
189  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
190  *     listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
191  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
192  *      indication period and threshold for MAC layer counters.
193  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
194  *	in the host driver. The different TDLS configurations are defined
195  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
196  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
197  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
198  *	(SAR) power limits. A critical regulation for FCC compliance, OEMs
199  *	require methods to set SAR limits on TX power of WLAN/WWAN.
200  *	enum qca_vendor_attr_sar_limits attributes are used with this command.
201  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
202  *      configuration of vendor ACS.
203  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
204  *      requisite information leading to a power save failure. The information
205  *      carried as part of this event is represented by the
206  *      enum qca_attr_chip_power_save_failure attributes.
207  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
208  *      collection. Uses attributes defined in enum qca_attr_nud_stats_set.
209  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
210  *      statistics are represented by the enum qca_attr_nud_stats_get
211  *      attributes.
212  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
213  *      the BSS transition status, whether accept or reject, for a list of
214  *      candidate BSSIDs provided by the userspace. This uses the vendor
215  *      attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
216  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
217  *      the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
218  *      array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
219  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
220  *      the driver shall specify array of
221  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
222  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
223  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
224  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
225  *      specific QCA module. The trace levels are represented by
226  *      enum qca_attr_trace_level attributes.
227  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
228  *      Protocol antenna limit in different modes. See enum
229  *      qca_wlan_vendor_attr_brp_ant_limit_mode.
230  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
231  *      parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
232  *      This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
233  *      identifying the operation in success case. In failure cases an
234  *      error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
235  *      describing the reason for the failure is returned.
236  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
237  *      a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
238  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
239  *      be stopped.
240  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
241  *     specific interface. This can be used to modify some of the low level
242  *     scan parameters (off channel dwell time, home channel time) in the
243  *     driver/firmware. These parameters are maintained within the host
244  *     driver.
245  *     This command is valid only when the interface is in the connected
246  *     state.
247  *     These scan parameters shall be reset by the driver/firmware once
248  *     disconnected. The attributes used with this command are defined in
249  *     enum qca_wlan_vendor_attr_active_tos.
250  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
251  *      driver has detected an internal failure. This event carries the
252  *      information indicating the reason that triggered this detection. The
253  *      attributes for this command are defined in
254  *      enum qca_wlan_vendor_attr_hang.
255  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
256  *     of spectral parameters used. The spectral scan parameters are specified
257  *     by enum qca_wlan_vendor_attr_spectral_scan.
258  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
259  *     for spectral scan functionality. The debug stats are specified by
260  *     enum qca_wlan_vendor_attr_spectral_diag_stats.
261  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
262  *     scan system capabilities. The capabilities are specified
263  *     by enum qca_wlan_vendor_attr_spectral_cap.
264  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
265  *     status of spectral scan. The status values are specified
266  *     by enum qca_wlan_vendor_attr_spectral_scan_status.
267  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
268  *     peer pending packets. Specify the peer MAC address in
269  *     QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
270  *     in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
271  *     in enum qca_wlan_vendor_attr_flush_pending.
272  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
273  *     RF Operating Parameter (RROP) information. The attributes for this
274  *     information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
275  *     intended for use by external Auto Channel Selection applications.
276  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
277  *	(SAR) power limits. This is a companion to the command
278  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
279  *	settings currently in use. The attributes returned by this command are
280  *	defined by enum qca_vendor_attr_sar_limits.
281  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
282  *      the WLAN hardware MAC's associated with each WLAN netdev interface.
283  *      This works both as a query (user space asks the current mode) or event
284  *      interface (driver advertizing the current mode to the user space).
285  *      Driver does not trigger this event for temporary hardware mode changes.
286  *      Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
287  *      channel change etc ) are updated with this event. Attributes for this
288  *      interface are defined in enum qca_wlan_vendor_attr_mac.
289  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
290  *	per peer per TID. Attributes for this command are define in
291  *	enum qca_wlan_set_qdepth_thresh_attr
292  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
293  *	guide for WLAN driver. Request to suspend of driver and FW if the
294  *	temperature is higher than the suspend threshold; resume action is
295  *	requested to driver if the temperature is lower than the resume
296  *	threshold. In user poll mode, request temperature data by user. For test
297  *	purpose, getting thermal shutdown configuration parameters is needed.
298  *	Attributes for this interface are defined in
299  *	enum qca_wlan_vendor_attr_thermal_cmd.
300  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
301  *	driver. Thermal temperature and indication of resume completion are
302  *	reported as thermal events. The attributes for this command are defined
303  *	in enum qca_wlan_vendor_attr_thermal_event.
304  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
305  *	test configuration. Attributes for this command are defined in
306  *	enum qca_wlan_vendor_attr_wifi_test_config.
307  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
308  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
309  *	carried a payload which was a binary blob of data. The command was not
310  *	extendable to send more information. The newer version carries the
311  *	legacy blob encapsulated within an attribute and can be extended with
312  *	additional vendor attributes that can enhance the NAN command
313  *	interface.
314  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
315  *	configure parameters per peer to capture Channel Frequency Response
316  *	(CFR) and enable Periodic CFR capture. The attributes for this command
317  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
318  *	can also be used to send CFR data from the driver to userspace when
319  *	netlink events are used to send CFR data.
320  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
321  *	The returned firmware state is specified in the attribute
322  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
323  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
324  *	is used by host driver to flush per-peer cached statistics to user space
325  *	application. This interface is used as an event from host driver to
326  *	user space application. Attributes for this event are specified in
327  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
328  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
329  *	sent as event from host driver.
330  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
331  *	improve the success rate of Zigbee joining network.
332  *	Due to PTA master limitation, zigbee joining network success rate is
333  *	low while wlan is working. Wlan host driver need to configure some
334  *	parameters including Zigbee state and specific WLAN periods to enhance
335  *	PTA master. All this parameters are delivered by the NetLink attributes
336  *	defined in "enum qca_mpta_helper_vendor_attr".
337  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
338  *	implement Beacon frame reporting feature.
339  *
340  *	Userspace can request the driver/firmware to periodically report
341  *	received Beacon frames whose BSSID is same as the current connected
342  *	BSS's MAC address.
343  *
344  *	In case the STA seamlessly (without sending disconnect indication to
345  *	userspace) roams to a different BSS, Beacon frame reporting will be
346  *	automatically enabled for the Beacon frames whose BSSID is same as the
347  *	MAC address of the new BSS. Beacon reporting will be stopped when the
348  *	STA is disconnected (when the disconnect indication is sent to
349  *	userspace) and need to be explicitly enabled by userspace for next
350  *	connection.
351  *
352  *	When a Beacon frame matching configured conditions is received, and if
353  *	userspace has requested to send asynchronous beacon reports, the
354  *	driver/firmware will encapsulate the details of the Beacon frame in an
355  *	event and send it to userspace along with updating the BSS information
356  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
357  *	scan cache with the information from the received Beacon frame but
358  *	will not send any active report to userspace.
359  *
360  *	The userspace can request the driver/firmware to stop reporting Beacon
361  *	frames. If the driver/firmware is not able to receive Beacon frames
362  *	due to other Wi-Fi operations such as off-channel activities, etc.,
363  *	the driver/firmware will send a pause event to userspace and stop
364  *	reporting Beacon frames. Whether the beacon reporting will be
365  *	automatically resumed or not by the driver/firmware later will be
366  *	reported to userspace using the
367  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
368  *	reporting shall be resumed for all the cases except either when
369  *	userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
370  *	in the command which triggered the current beacon reporting or during
371  *	any disconnection case as indicated by setting
372  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
373  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
374  *	driver.
375  *
376  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
377  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
378  *	flag not set, the next first
379  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
380  *	shall be considered as un-pause event.
381  *
382  *	All the attributes used with this command are defined in
383  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
384  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
385  *	interop issues with the DUT. This sub command is used to transfer the
386  *	ap info between driver and user space. This works both as a command
387  *	or event. As a command, it configs the stored list of aps from user
388  *	space to firmware; as an event, it indicates the ap info detected by
389  *	firmware to user space for persistent storage. The attributes defined
390  *	in enum qca_vendor_attr_interop_issues_ap are used to deliver the
391  *	parameters.
392  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
393  *	binary blobs from application/service to firmware. The attributes
394  *	defined in enum qca_wlan_vendor_attr_oem_data_params are used to
395  *	deliver the parameters.
396  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
397  *	to send/receive avoid frequency data using
398  *	enum qca_wlan_vendor_attr_avoid_frequency_ext.
399  *	This new command is alternative to existing command
400  *	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
401  *	is using stream of bytes instead of structured data using vendor
402  *	attributes.
403  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
404  *	add the STA node details in driver/firmware. Attributes for this event
405  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
406  * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
407  *	coex chain mode from application/service.
408  *	The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
409  *	to deliver the parameters.
410  * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
411  *	get information of a station from driver to userspace. This command can
412  *	be used in both STA and AP modes. For STA mode, it provides information
413  *	of the current association when in connected state or the last
414  *	association when in disconnected state. For AP mode, only information
415  *	of the currently connected stations is available. This command uses
416  *	attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
417  * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
418  *	Host drivers can request the user space entity to set the SAR power
419  *	limits with this event. Accordingly, the user space entity is expected
420  *	to set the SAR power limits. Host drivers can retry this event to the
421  *	user space for the SAR power limits configuration from user space. If
422  *	the driver does not get the SAR power limits from user space for all
423  *	the retried attempts, it can configure a default SAR power limit.
424  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
425  *	is used to update the information about the station from the driver to
426  *	userspace. Uses attributes from enum
427  *	qca_wlan_vendor_attr_update_sta_info.
428  *
429  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
430  *	The host driver initiates the disconnection for scenarios such as beacon
431  *	miss, NUD failure, peer kick out, etc. The disconnection indication
432  *	through cfg80211_disconnected() expects the reason codes from enum
433  *	ieee80211_reasoncode which does not signify these various reasons why
434  *	the driver has triggered the disconnection. This event will be used to
435  *	send the driver specific reason codes by the host driver to userspace.
436  *	Host drivers should trigger this event and pass the respective reason
437  *	code immediately prior to triggering cfg80211_disconnected(). The
438  *	attributes used with this event are defined in enum
439  *	qca_wlan_vendor_attr_driver_disconnect_reason.
440  *
441  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
442  *	add/delete TSPEC for each AC. One command is for one specific AC only.
443  *	This command can only be used in STA mode and the STA must be
444  *	associated with an AP when the command is issued. Uses attributes
445  *	defined in enum qca_wlan_vendor_attr_config_tspec.
446  *
447  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
448  *	Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
449  *
450  * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
451  *	the host driver. The band configurations obtained are referred through
452  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
453  *
454  * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
455  *	assessment.
456  *	Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
457  *
458  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
459  *	used to update SSID information in hostapd when it is updated in the
460  *	driver. Uses the attribute NL80211_ATTR_SSID.
461  *
462  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
463  *	the driver to send opaque data from the firmware to userspace. The
464  *	driver sends an event to userspace whenever such data is received from
465  *	the firmware.
466  *
467  *	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
468  *	send this opaque data for this event.
469  *
470  *	The format of the opaque data is specific to the particular firmware
471  *	version and there is no guarantee of the format remaining same.
472  *
473  * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
474  *	The host driver selects Tx VDEV, and notifies user. The attributes
475  *	used with this event are defined in enum
476  *	qca_wlan_vendor_attr_mbssid_tx_vdev_status.
477  *	This event contains Tx VDEV group information contains other VDEVs
478  *	interface index and status information.
479  *
480  * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY: Vendor command to
481  *	configure the concurrent session policies when multiple STA interfaces
482  *	are (getting) active. The attributes used by this command are defined
483  *	in enum qca_wlan_vendor_attr_concurrent_sta_policy.
484  *
485  * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
486  *	to query usable channels for different interface types such as STA,
487  *	AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
488  *	channels in the response based on country code, different static
489  *	configurations, concurrency combinations, etc. The attributes used
490  *	with this command are defined in
491  *	enum qca_wlan_vendor_attr_usable_channels.
492  *
493  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
494  *	to get DFS radar history from the driver to userspace. The driver
495  *	returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
496  *	array of nested entries.
497  * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
498  *	enable/disable mDNS offload to the firmware. The attributes used with
499  *	this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
500  *
501  * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
502  *	important debug events that are required for various issues. The
503  *	attributes used with this command are defined in
504  *	enum qca_wlan_vendor_attr_diag.
505  *	This command is defined for temporary usage until this interface is
506  *	moved to the existing diag infra with cnss diag events. This command
507  *	will be deprecated soon and it is not recommended to do any further
508  *	enhancements to this command.
509  */
510 
511 enum qca_nl80211_vendor_subcmds {
512 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
513 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
514 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
515 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
516 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
517 	QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
518 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
519 
520 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
521 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
522 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
523 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
524 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
525 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
526 
527 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
528 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
529 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
530 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
531 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
532 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
533 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
534 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
535 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
536 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
537 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
538 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
539 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
540 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
541 
542 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
543 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
544 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
545 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
546 
547 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
548 
549 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
550 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
551 
552 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
553 
554 	/* Get Concurrency Matrix */
555 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
556 
557 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
558 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
559 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
560 
561 	/* Deprecated */
562 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
563 
564 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
565 
566 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
567 
568 	/* Off loaded DFS events */
569 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
570 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
571 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
572 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
573 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
574 
575 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
576 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
577 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
578 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
579 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
580 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
581 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
582 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
583 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
584 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
585 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
586 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
587 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
588 
589 	/* Wi-Fi Configuration subcommands */
590 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
591 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
592 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
593 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
594 
595 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
596 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
597 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
598 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
599 
600 	/* NS Offload enable/disable cmd */
601 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
602 
603 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
604 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
605 
606 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
607 
608 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
609 	/* OCB commands */
610 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
611 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
612 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
613 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
614 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
615 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
616 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
617 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
618 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
619 
620 	/* subcommand to get link properties */
621 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
622 	/* LFR Subnet Detection */
623 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
624 
625 	/* DBS subcommands */
626 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
627 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
628 
629 	/* Vendor setband command */
630 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
631 
632 	/* Vendor scan commands */
633 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
634 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
635 
636 	/* OTA test subcommand */
637 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
638 	/* Tx power scaling subcommands */
639 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
640 	/* Tx power scaling in db subcommands */
641 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
642 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
643 	QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
644 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG  = 118,
645 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
646 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
647 	QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
648 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
649 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
650 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
651 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
652 
653 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
654 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
655 	/* FTM/indoor location subcommands */
656 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
657 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
658 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
659 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
660 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
661 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
662 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
663 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
664 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
665 
666 	/* Encrypt/Decrypt command */
667 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
668 
669 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
670 	/* DMG low level RF sector operations */
671 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
672 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
673 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
674 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
675 
676 	/* Configure the TDLS mode from user space */
677 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
678 
679 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
680 
681 	/* Vendor abort scan command */
682 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
683 
684 	/* Set Specific Absorption Rate(SAR) Power Limits */
685 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
686 
687 	/* External Auto channel configuration setting */
688 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
689 
690 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
691 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
692 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
693 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
694 
695 	/* Set the trace level for QDF */
696 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
697 
698 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
699 
700 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
701 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
702 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
703 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
704 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
705 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
706 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
707 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
708 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
709 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
710 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
711 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
712 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
713 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
714 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
715 	/* Wi-Fi test configuration subcommand */
716 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
717 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
718 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
719 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
720 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
721 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
722 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
723 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
724 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
725 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
726 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
727 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
728 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
729 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
730 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
731 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
732 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
733 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
734 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
735 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
736 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
737 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
738 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
739 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
740 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
741 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197,
742 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
743 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
744 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
745 	QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
746 };
747 
748 enum qca_wlan_vendor_tos {
749 	QCA_WLAN_VENDOR_TOS_BK = 0,
750 	QCA_WLAN_VENDOR_TOS_BE = 1,
751 	QCA_WLAN_VENDOR_TOS_VI = 2,
752 	QCA_WLAN_VENDOR_TOS_VO = 3,
753 };
754 
755 /**
756  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
757  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
758  */
759 enum qca_wlan_vendor_attr_active_tos {
760 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
761 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
762 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
763 	/* Flag attribute representing the start (attribute included) or stop
764 	 * (attribute not included) of the respective TOS.
765 	 */
766 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
767 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
768 };
769 
770 enum qca_wlan_vendor_hang_reason {
771 	/* Unspecified reason */
772 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
773 	/* No Map for the MAC entry for the received frame */
774 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
775 	/* peer deletion timeout happened */
776 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
777 	/* peer unmap timeout */
778 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
779 	/* Scan request timed out */
780 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
781 	/* Consecutive Scan attempt failures */
782 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
783 	/* Unable to get the message buffer */
784 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
785 	/* Current command processing is timedout */
786 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
787 	/* Timeout for an ACK from FW for suspend request */
788 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
789 	/* Timeout for an ACK from FW for resume request */
790 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
791 	/* Transmission timeout for consecutive data frames */
792 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
793 	/* Timeout for the TX completion status of data frame */
794 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
795 	/* DXE failure for tx/Rx, DXE resource unavailability */
796 	QCA_WLAN_HANG_DXE_FAILURE = 12,
797 	/* WMI pending commands exceed the maximum count */
798 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
799 	/* Timeout for peer STA connection accept command's response from the
800 	 * FW in AP mode. This command is triggered when a STA (peer) connects
801 	 * to AP (DUT).
802 	 */
803 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
804 	/* Timeout for the AP connection accept command's response from the FW
805 	 * in STA mode. This command is triggered when the STA (DUT) connects
806 	 * to an AP (peer).
807 	 */
808 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
809 	/* Timeout waiting for the response to the MAC HW mode change command
810 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
811 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
812 	 * Channel Concurrency) mode.
813 	 */
814 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
815 	/* Timeout waiting for the response from FW to configure the MAC HW's
816 	 * mode. This operation is to configure the single/two MACs in either
817 	 * SCC/MCC/DBS mode.
818 	 */
819 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
820 	/* Timeout waiting for response of VDEV start command from the FW */
821 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
822 	/* Timeout waiting for response of VDEV restart command from the FW */
823 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
824 	/* Timeout waiting for response of VDEV stop command from the FW */
825 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
826 	/* Timeout waiting for response of VDEV delete command from the FW */
827 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
828 	/* Timeout waiting for response of peer all delete request command to
829 	 * the FW on a specific VDEV.
830 	 */
831 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
832 	/* WMI sequence mismatch between WMI command and Tx completion */
833 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
834 	/* Write to Device HAL register failed */
835 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
836 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
837 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
838 	/* Bus failure */
839 	QCA_WLAN_HANG_BUS_FAILURE = 26,
840 	/* tasklet/credit latency found */
841 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
842 };
843 
844 /**
845  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
846  * QCA_NL80211_VENDOR_SUBCMD_HANG.
847  */
848 enum qca_wlan_vendor_attr_hang {
849 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
850 	/*
851 	 * Reason for the Hang - Represented by enum
852 	 * qca_wlan_vendor_hang_reason.
853 	 */
854 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
855 	/* The binary blob data associated with the hang reason specified by
856 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
857 	 * contain the required dump to analyze the reason for the hang.
858 	 * NLA_BINARY attribute, the max size is 1024 bytes.
859 	 */
860 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
861 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
862 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
863 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
864 };
865 
866 /**
867  * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
868  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
869  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
870  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
871     level needs to be updated.
872  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
873  * to be set.
874  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
875  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
876  */
877 enum qca_vendor_attr_set_trace_level {
878 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
879 	/*
880 	* Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
881 	* attributes.
882 	*/
883 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
884 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
885 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
886 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
887 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
888 		QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
889 };
890 
891 /**
892  * enum qca_wlan_vendor_attr_get_station - Sub commands used by
893  * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
894  * station information. The information obtained through these
895  * commands signify the current info in connected state and
896  * latest cached information during the connected state , if queried
897  * when in disconnected state.
898  *
899  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
900  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
901  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
902  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
903  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
904  */
905 enum qca_wlan_vendor_attr_get_station {
906 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
907 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
908 	QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
909 	QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
910 
911 	/* keep last */
912 	QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
913 	QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
914 		QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
915 };
916 
917 /**
918  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
919  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
920  *
921  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
922  * Used in STA mode. This attribute represents the list of channel center
923  * frequencies in MHz (u32) the station has learnt during the last connection
924  * or roaming attempt. This information shall not signify the channels for
925  * an explicit scan request from the user space. Host drivers can update this
926  * information to the user space in both connected and disconnected state.
927  * In the disconnected state this information shall signify the channels
928  * scanned in the last connection/roam attempt that lead to the disconnection.
929  */
930 enum qca_wlan_vendor_attr_update_sta_info {
931 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
932 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
933 
934 	/* keep last */
935 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
936 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
937 		QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
938 };
939 
940 /**
941  * enum qca_wlan_802_11_mode - dot11 mode
942  * @QCA_WLAN_802_11_MODE_11B: mode B
943  * @QCA_WLAN_802_11_MODE_11G: mode G
944  * @QCA_WLAN_802_11_MODE_11N: mode N
945  * @QCA_WLAN_802_11_MODE_11A: mode A
946  * @QCA_WLAN_802_11_MODE_11AC: mode AC
947  * @QCA_WLAN_802_11_MODE_11AX: mode AX
948  * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
949  */
950 enum qca_wlan_802_11_mode {
951 	QCA_WLAN_802_11_MODE_11B,
952 	QCA_WLAN_802_11_MODE_11G,
953 	QCA_WLAN_802_11_MODE_11N,
954 	QCA_WLAN_802_11_MODE_11A,
955 	QCA_WLAN_802_11_MODE_11AC,
956 	QCA_WLAN_802_11_MODE_11AX,
957 	QCA_WLAN_802_11_MODE_INVALID,
958 };
959 
960 /**
961  * enum qca_wlan_auth_type - Authentication key management type
962  * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
963  * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
964  * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
965  * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
966  * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
967  * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
968  * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
969  * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
970  * @QCA_WLAN_AUTH_TYPE_FT: ft key
971  * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
972  * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
973  * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
974  * @QCA_WLAN_AUTH_TYPE_WAI: wai key
975  * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
976  * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
977  * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
978  * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
979  * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
980  * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
981  * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
982  * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
983  * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
984  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
985  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
986  * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
987  * @QCA_WLAN_AUTH_TYPE_OWE: owe key
988  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
989  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
990  */
991 enum qca_wlan_auth_type {
992 	QCA_WLAN_AUTH_TYPE_INVALID,
993 	QCA_WLAN_AUTH_TYPE_OPEN,
994 	QCA_WLAN_AUTH_TYPE_SHARED,
995 	QCA_WLAN_AUTH_TYPE_WPA,
996 	QCA_WLAN_AUTH_TYPE_WPA_PSK,
997 	QCA_WLAN_AUTH_TYPE_WPA_NONE,
998 	QCA_WLAN_AUTH_TYPE_RSN,
999 	QCA_WLAN_AUTH_TYPE_RSN_PSK,
1000 	QCA_WLAN_AUTH_TYPE_FT,
1001 	QCA_WLAN_AUTH_TYPE_FT_PSK,
1002 	QCA_WLAN_AUTH_TYPE_SHA256,
1003 	QCA_WLAN_AUTH_TYPE_SHA256_PSK,
1004 	QCA_WLAN_AUTH_TYPE_WAI,
1005 	QCA_WLAN_AUTH_TYPE_WAI_PSK,
1006 	QCA_WLAN_AUTH_TYPE_CCKM_WPA,
1007 	QCA_WLAN_AUTH_TYPE_CCKM_RSN,
1008 	QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
1009 	QCA_WLAN_AUTH_TYPE_FT_SAE,
1010 	QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
1011 	QCA_WLAN_AUTH_TYPE_SAE,
1012 	QCA_WLAN_AUTH_TYPE_FILS_SHA256,
1013 	QCA_WLAN_AUTH_TYPE_FILS_SHA384,
1014 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
1015 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
1016 	QCA_WLAN_AUTH_TYPE_DPP_RSN,
1017 	QCA_WLAN_AUTH_TYPE_OWE,
1018 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
1019 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
1020 };
1021 
1022 /**
1023  * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
1024  * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
1025  *
1026  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
1027  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
1028  *  Get the standard NL attributes Nested with this attribute.
1029  *  Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
1030  *  NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
1031  *  NL80211_ATTR_STA_INFO
1032  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
1033  *  Get the standard NL attributes Nested with this attribute.
1034  *  Ex : Query HT/VHT Capability advertized by the AP.
1035  *  NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
1036  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
1037  *  Number of successful Roam attempts before a
1038  *  disconnect, Unsigned 32 bit value
1039  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
1040  *  Authentication Key Management Type used for the connected session.
1041  *  Signified by enum qca_wlan_auth_type
1042  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
1043  *  connected Session, signified by enum qca_wlan_802_11_mode
1044  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
1045  *  HS20 Indication Element
1046  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
1047  *  Status Code Corresponding to the Association Failure.
1048  *  Unsigned 32 bit value.
1049  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
1050  *  Max phy rate of remote station
1051  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
1052  *  TX packets to remote station
1053  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
1054  *  TX bytes to remote station
1055  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
1056  *  RX packets from remote station
1057  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
1058  *  RX bytes from remote station
1059  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
1060  *  Last TX rate with remote station
1061  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
1062  *  Last RX rate with remote station
1063  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
1064  *  Remote station enable/disable WMM
1065  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
1066  *  Remote station connection mode
1067  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
1068  *  Remote station AMPDU enable/disable
1069  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
1070  *  Remote station TX Space-time block coding enable/disable
1071  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
1072  *  Remote station RX Space-time block coding enable/disable
1073  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
1074  *  Remote station channel width
1075  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
1076  *  Remote station short GI enable/disable
1077  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
1078  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
1079  *  containing the raw information elements from Beacon frames. Represents
1080  *  the Beacon frames of the current BSS in the connected state. When queried
1081  *  in the disconnected state, these IEs correspond to the last connected BSSID.
1082  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
1083  *  disconnect reason for the last disconnection if the disconnection is
1084  *  triggered from the host driver. The values are referred from
1085  *  enum qca_disconnect_reason_codes. If the disconnect is from
1086  *  peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
1087  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
1088  *  Applicable in AP mode only. It contains the raw information elements
1089  *  from assoc request frame of the given peer station. User queries with the
1090  *  mac address of peer station when it disconnects. Host driver sends
1091  *  assoc request frame of the given station. Host driver doesn't provide
1092  *  the IEs when the peer station is still in connected state.
1093  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
1094  * sending HE operation info.
1095  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
1096  *
1097  */
1098 enum qca_wlan_vendor_attr_get_station_info {
1099 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
1100 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
1101 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
1102 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
1103 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
1104 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
1105 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
1106 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
1107 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
1108 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
1109 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
1110 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
1111 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
1112 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
1113 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
1114 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
1115 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
1116 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
1117 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
1118 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
1119 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
1120 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
1121 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
1122 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
1123 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
1124 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
1125 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
1126 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
1127 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
1128 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
1129 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
1130 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
1131 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
1132 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
1133 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
1134 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
1135 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
1136 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
1137 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
1138 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
1139 
1140 	/* keep last */
1141 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
1142 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
1143 		QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
1144 };
1145 
1146 /**
1147  * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
1148  *
1149  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
1150  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
1151  *	value
1152  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
1153  *	keep as unsigned for now
1154  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
1155  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
1156  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
1157  *	in KBPS
1158  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
1159  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
1160  */
1161 enum qca_wlan_vendor_attr_tdls_enable {
1162 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
1163 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
1164 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
1165 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
1166 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
1167 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
1168 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
1169 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
1170 		QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
1171 };
1172 
1173 /**
1174  * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
1175  *
1176  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
1177  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
1178  *	8-bit value
1179  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
1180  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
1181  */
1182 enum qca_wlan_vendor_attr_tdls_disable {
1183 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
1184 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
1185 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
1186 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
1187 		QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
1188 };
1189 
1190 /**
1191  * qca_chip_power_save_failure_reason: Power save failure reason
1192  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1193  * due to protocol/module.
1194  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1195  * due to hardware
1196  */
1197 enum qca_chip_power_save_failure_reason {
1198 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1199 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1200 };
1201 
1202 /**
1203  * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1204  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1205  * information leading to the power save failure.
1206  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1207  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1208  * represented by enum qca_chip_power_save_failure_reason
1209  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1210  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1211  */
1212 enum qca_attr_chip_power_save_failure {
1213 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1214 
1215 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1216 
1217 	/* keep last */
1218 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1219 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1220 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1221 };
1222 
1223 
1224 /**
1225  * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
1226  *
1227  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
1228  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
1229  *	8-bit value
1230  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
1231  *	unsigned 32-bit value
1232  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
1233  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
1234  *	unsigned 32-bit value
1235  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
1236  *	class, unsigned 32-bit value
1237  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
1238  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
1239  */
1240 enum qca_wlan_vendor_attr_tdls_get_status {
1241 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
1242 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
1243 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
1244 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
1245 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
1246 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
1247 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
1248 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
1249 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
1250 };
1251 
1252 /**
1253  * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
1254  *
1255  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
1256  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
1257  *	8-bit value
1258  * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
1259  *	unsigned 32-bit value
1260  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
1261  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
1262  *	unsigned 32-bit value
1263  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
1264  *	operating class, unsigned 32-bit value
1265  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
1266  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
1267  */
1268 enum qca_wlan_vendor_attr_tdls_state {
1269 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
1270 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
1271 	QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
1272 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
1273 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
1274 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
1275 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
1276 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
1277 		QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
1278 };
1279 
1280 /* enum's to provide TDLS capabilities */
1281 enum qca_wlan_vendor_attr_get_tdls_capabilities {
1282 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1283 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1284 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1285 
1286 	/* keep last */
1287 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1288 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1289 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1290 };
1291 
1292 enum qca_wlan_vendor_attr {
1293 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1294 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1295 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1296 	/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1297 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1298 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1299 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1300 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1301 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1302 	/*
1303 	 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1304 	 * by enum qca_roaming_policy.
1305 	 */
1306 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1307 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1308 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1309 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1310 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1311 	/*
1312 	 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1313 	 * Unsigned 32-bit value.
1314 	 */
1315 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1316 	/* Unsigned 32-bit value */
1317 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1318 	/* Unsigned 32-bit value */
1319 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1320 	/* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
1321 	 * value for this attribute are only till QCA_SETBAND_2G. This attribute
1322 	 * is deprecated. Recommendation is to use
1323 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
1324 	 * using both the attributes, the ones configured through
1325 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
1326 	 */
1327 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1328 	/* Dummy (NOP) attribute for 64 bit padding */
1329 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1330 	/*
1331 	 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1332 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1333 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1334 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1335 	 */
1336 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1337 	/*
1338 	 * Indoor location capabilities, returned by
1339 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1340 	 * see enum qca_wlan_vendor_attr_loc_capa.
1341 	 */
1342 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1343 	/*
1344 	 * Array of nested attributes containing information about each peer
1345 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1346 	 * for supported attributes for each peer.
1347 	 */
1348 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1349 	/*
1350 	 * Array of nested attributes containing measurement results for
1351 	 * one or more peers, reported by the
1352 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1353 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1354 	 * attributes.
1355 	 */
1356 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1357 	/* Flag attribute for enabling or disabling responder functionality. */
1358 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1359 	/*
1360 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1361 	 * command to specify the LCI report that will be sent by
1362 	 * the responder during a measurement exchange. The format is
1363 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1364 	 */
1365 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1366 	/*
1367 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1368 	 * command to specify the location civic report that will
1369 	 * be sent by the responder during a measurement exchange.
1370 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1371 	 */
1372 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1373 	/*
1374 	 * Session/measurement completion status code,
1375 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1376 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1377 	 * see enum qca_vendor_attr_loc_session_status.
1378 	 */
1379 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1380 	/*
1381 	 * Initial dialog token used by responder (0 if not specified),
1382 	 * unsigned 8 bit value.
1383 	 */
1384 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1385 	/*
1386 	 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1387 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1388 	 * AOA measurements are needed as part of an FTM session.
1389 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1390 	 * enum qca_wlan_vendor_attr_aoa_type.
1391 	 */
1392 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1393 	/*
1394 	 * A bit mask (unsigned 32 bit value) of antenna arrays used
1395 	 * by indoor location measurements. Refers to the antenna
1396 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1397 	 */
1398 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1399 	/*
1400 	 * AOA measurement data. Its contents depends on the AOA measurement
1401 	 * type and antenna array mask:
1402 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1403 	 * phase of the strongest CIR path for each antenna in the measured
1404 	 * array(s).
1405 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1406 	 * values, phase and amplitude of the strongest CIR path for each
1407 	 * antenna in the measured array(s).
1408 	 */
1409 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1410 	/*
1411 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1412 	 * to specify the chain number (unsigned 32 bit value) to inquire
1413 	 * the corresponding antenna RSSI value */
1414 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1415 	/*
1416 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1417 	 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1418 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1419 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1420 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1421 	/*
1422 	 *  TSF timer value, unsigned 64 bit value.
1423 	 * May be returned by various commands.
1424 	 */
1425 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1426 	/*
1427 	 * DMG RF sector index, unsigned 16 bit number. Valid values are
1428 	 * 0..127 for sector indices or 65535 as special value used to
1429 	 * unlock sector selection in
1430 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1431 	 */
1432 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1433 	/*
1434 	 * DMG RF sector type, unsigned 8 bit value. One of the values
1435 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1436 	 */
1437 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1438 	/*
1439 	 * Bitmask of DMG RF modules for which information is requested. Each
1440 	 * bit corresponds to an RF module with the same index as the bit
1441 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1442 	 * all DMG chips currently have up to 8 RF modules.
1443 	 */
1444 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1445 	/*
1446 	 * Array of nested attributes where each entry is DMG RF sector
1447 	 * configuration for a single RF module.
1448 	 * Attributes for each entry are taken from enum
1449 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1450 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1451 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1452 	 */
1453 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1454 	/*
1455 	 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1456 	 * to report frame aggregation statistics to userspace.
1457 	 */
1458 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1459 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1460 	/*
1461 	 * Unsigned 8-bit value representing MBO transition reason code as
1462 	 * provided by the AP used by subcommand
1463 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1464 	 * specified by the userspace in the request to the driver.
1465 	 */
1466 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1467 	/*
1468 	 * Array of nested attributes, BSSID and status code, used by subcommand
1469 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1470 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1471 	 * The userspace space specifies the list/array of candidate BSSIDs in
1472 	 * the order of preference in the request. The driver specifies the
1473 	 * status code, for each BSSID in the list, in the response. The
1474 	 * acceptable candidates are listed in the order preferred by the
1475 	 * driver.
1476 	 */
1477 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1478 	/*
1479 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1480 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1481 	 */
1482 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1483 	/*
1484 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1485 	 * to define the number of antennas to use for BRP.
1486 	 * different purpose in each ANT_LIMIT_MODE:
1487 	 * DISABLE - ignored
1488 	 * EFFECTIVE - upper limit to number of antennas to be used
1489 	 * FORCE - exact number of antennas to be used
1490 	 * unsigned 8 bit value
1491 	 */
1492 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1493 	/*
1494 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1495 	 * to report the corresponding antenna index to the chain RSSI value
1496 	 */
1497 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1498 	/*
1499 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1500 	 * to report the specific antenna EVM value (unsigned 32 bit value).
1501 	 * With a determinate group of antennas, the driver specifies the
1502 	 * EVM value for each antenna ID, and application extract them
1503 	 * in user space.
1504 	 */
1505 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1506 	/*
1507 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1508 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1509 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1510 	 */
1511 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1512 
1513 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1514 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
1515 	 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
1516 	 * This attribute shall consider the bitmask combinations to define
1517 	 * the respective Band combinations and always takes precedence over
1518 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
1519 	 */
1520 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1521 
1522 	/* keep last */
1523 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1524 	QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1525 };
1526 
1527 enum qca_wlan_vendor_attr_extscan_config_params {
1528 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1529 
1530 	/* Unsigned 32-bit value */
1531 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
1532 
1533 	/*
1534 	 * Attributes for data used by
1535 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1536 	 */
1537 
1538 	/* Unsigned 32-bit value */
1539 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1540 	= 2,
1541 	/* Unsigned 32-bit value */
1542 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1543 	= 3,
1544 
1545 	/*
1546 	 * Attributes for input params used by
1547 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1548 	 */
1549 
1550 	/* Unsigned 32-bit value; channel frequency */
1551 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1552 	/* Unsigned 32-bit value; dwell time in ms. */
1553 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1554 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1555 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1556 	/* Unsigned 8-bit value; channel class */
1557 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
1558 
1559 	/* Unsigned 8-bit value; bucket index, 0 based */
1560 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1561 	/* Unsigned 8-bit value; band. */
1562 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1563 	/* Unsigned 32-bit value; desired period, in ms. */
1564 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1565 	/* Unsigned 8-bit value; report events semantics. */
1566 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1567 	/*
1568 	 * Unsigned 32-bit value. Followed by a nested array of
1569 	 * EXTSCAN_CHANNEL_SPEC_* attributes.
1570 	 */
1571 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
1572 
1573 	/*
1574 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1575 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1576 	 */
1577 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
1578 
1579 	/* Unsigned 32-bit value; base timer period in ms. */
1580 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1581 	/*
1582 	 * Unsigned 32-bit value; number of APs to store in each scan in the
1583 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1584 	 */
1585 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1586 	/*
1587 	 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1588 	 * up AP.
1589 	 */
1590 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1591 	= 16,
1592 
1593 	/*
1594 	 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1595 	 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1596 	 * of the array is determined by NUM_BUCKETS.
1597 	 */
1598 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
1599 
1600 	/*
1601 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1602 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1603 	 */
1604 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
1605 
1606 	/* Unsigned 8-bit value */
1607 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1608 	= 19,
1609 	/* Unsigned 32-bit value; maximum number of results to be returned. */
1610 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1611 	= 20,
1612 
1613 	/* An array of 6 x unsigned 8-bit value */
1614 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1615 	/* Signed 32-bit value */
1616 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1617 	/* Signed 32-bit value */
1618 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1619 	/* Unsigned 32-bit value */
1620 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
1621 
1622 	/*
1623 	 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1624 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1625 	 * array is determined by NUM_AP.
1626 	 */
1627 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
1628 
1629 	/*
1630 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1631 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1632 	 */
1633 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
1634 
1635 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
1636 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1637 	= 27,
1638 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1639 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1640 	= 28,
1641 	/* Unsigned 32-bit value; number of APs breaching threshold. */
1642 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1643 	/*
1644 	 * Unsigned 32-bit value; number of APs. Followed by an array of
1645 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1646 	 */
1647 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1648 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1649 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1650 	= 31,
1651 	/*
1652 	 * Unsigned 32-bit value. If max_period is non zero or different than
1653 	 * period, then this bucket is an exponential backoff bucket.
1654 	 */
1655 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1656 	/* Unsigned 32-bit value. */
1657 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1658 	/*
1659 	 * Unsigned 32-bit value. For exponential back off bucket, number of
1660 	 * scans to perform for a given period.
1661 	 */
1662 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1663 	/*
1664 	 * Unsigned 8-bit value; in number of scans, wake up AP after these
1665 	 * many scans.
1666 	 */
1667 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1668 	= 35,
1669 
1670 	/*
1671 	 * Attributes for data used by
1672 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1673 	 */
1674 
1675 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1676 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1677 	= 36,
1678 	/*
1679 	 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1680 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1681 	 * size of the array is determined by NUM_SSID.
1682 	 */
1683 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1684 	/*
1685 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1686 	 * attributes.
1687 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1688 	 */
1689 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1690 
1691 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1692 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1693 	/* Unsigned 8-bit value */
1694 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1695 	/* Signed 32-bit value */
1696 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1697 	/* Signed 32-bit value */
1698 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1699 	/* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1700 	 */
1701 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1702 
1703 	/* keep last */
1704 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1705 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
1706 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
1707 };
1708 
1709 enum qca_wlan_vendor_attr_extscan_results {
1710 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1711 
1712 	/*
1713 	 * Unsigned 32-bit value; must match the request Id supplied by
1714 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
1715 	 */
1716 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
1717 
1718 	/*
1719 	 * Unsigned 32-bit value; used to indicate the status response from
1720 	 * firmware/driver for the vendor sub-command.
1721 	 */
1722 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
1723 
1724 	/*
1725 	 * EXTSCAN Valid Channels attributes */
1726 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
1727 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
1728 	/*
1729 	 * An array of NUM_CHANNELS x unsigned 32-bit value integers
1730 	 * representing channel numbers.
1731 	 */
1732 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
1733 
1734 	/* EXTSCAN Capabilities attributes */
1735 
1736 	/* Unsigned 32-bit value */
1737 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
1738 	/* Unsigned 32-bit value */
1739 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
1740 	/* Unsigned 32-bit value */
1741 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
1742 	= 7,
1743 	/* Unsigned 32-bit value */
1744 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
1745 	= 8,
1746 	/* Signed 32-bit value */
1747 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
1748 	= 9,
1749 	/* Unsigned 32-bit value */
1750 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
1751 	/* Unsigned 32-bit value */
1752 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
1753 	= 11,
1754 	/* Unsigned 32-bit value */
1755 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
1756 	= 12,
1757 
1758 	/*
1759 	 * EXTSCAN Attributes used with
1760 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
1761 	 */
1762 
1763 	/* Unsigned 32-bit value */
1764 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
1765 
1766 	/*
1767 	 * EXTSCAN attributes used with
1768 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
1769 	 */
1770 
1771 	/*
1772 	 * An array of NUM_RESULTS_AVAILABLE x
1773 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
1774 	 */
1775 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
1776 
1777 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
1778 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
1779 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
1780 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
1781 	/* An array of 6 x unsigned 8-bit value */
1782 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
1783 	/* Unsigned 32-bit value; channel frequency in MHz */
1784 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
1785 	/* Signed 32-bit value */
1786 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
1787 	/* Unsigned 32-bit value */
1788 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
1789 	/* Unsigned 32-bit value */
1790 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
1791 	/* Unsigned 16-bit value */
1792 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
1793 	/* Unsigned 16-bit value */
1794 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
1795 	/* Unsigned 32-bit value; size of the IE DATA blob */
1796 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
1797 	/*
1798 	 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
1799 	 * information elements found in the beacon; this data should be a
1800 	 * packed list of wifi_information_element objects, one after the
1801 	 * other.
1802 	 */
1803 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
1804 
1805 	/*
1806 	 * Unsigned 8-bit value; set by driver to indicate more scan results are
1807 	 * available.
1808 	 */
1809 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
1810 
1811 	/*
1812 	 * EXTSCAN attributes for
1813 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
1814 	 */
1815 	/* Unsigned 8-bit value */
1816 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
1817 	/* Unsigned 32-bit value */
1818 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
1819 
1820 	/*
1821 	 * EXTSCAN attributes for
1822 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
1823 	 */
1824 	/*
1825 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1826 	 * to indicate number of results.
1827 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
1828 	 * list of results.
1829 	 */
1830 
1831 	/*
1832 	 * EXTSCAN attributes for
1833 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
1834 	 */
1835 	/* An array of 6 x unsigned 8-bit value */
1836 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
1837 	/* Unsigned 32-bit value */
1838 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
1839 	= 30,
1840 	/* Unsigned 32-bit value. */
1841 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
1842 	= 31,
1843 	/*
1844 	 * A nested array of signed 32-bit RSSI values. Size of the array is
1845 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
1846 	 */
1847 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
1848 	= 32,
1849 
1850 	/*
1851 	 * EXTSCAN attributes used with
1852 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
1853 	 */
1854 	/*
1855 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1856 	 * to indicate number of extscan cached results returned.
1857 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
1858 	 *  the list of extscan cached results.
1859 	 */
1860 
1861 	/*
1862 	 * An array of NUM_RESULTS_AVAILABLE x
1863 	 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
1864 	 */
1865 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
1866 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
1867 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
1868 	/*
1869 	 * Unsigned 32-bit value; a bitmask w/additional information about scan.
1870 	 */
1871 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
1872 	/*
1873 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1874 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
1875 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
1876 	 * list of wifi scan results returned for each cached result block.
1877 	 */
1878 
1879 	/*
1880 	 * EXTSCAN attributes for
1881 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
1882 	 */
1883 	/*
1884 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
1885 	 * number of results.
1886 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
1887 	 * list of wifi scan results returned for each
1888 	 * wifi_passpoint_match_result block.
1889 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
1890 	 */
1891 
1892 	/*
1893 	 * EXTSCAN attributes for
1894 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
1895 	 */
1896 	/* Unsigned 32-bit value */
1897 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
1898 	= 36,
1899 	/*
1900 	 * A nested array of
1901 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
1902 	 * attributes. Array size =
1903 	 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
1904 	 */
1905 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
1906 
1907 	/* Unsigned 32-bit value; network block id for the matched network */
1908 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
1909 	/*
1910 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
1911 	 * list of wifi scan results returned for each
1912 	 * wifi_passpoint_match_result block.
1913 	 */
1914 	/* Unsigned 32-bit value */
1915 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
1916 	/*
1917 	 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
1918 	 * ANQP data in the information_element format.
1919 	 */
1920 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
1921 
1922 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1923 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
1924 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1925 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
1926 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1927 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
1928 	= 43,
1929 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1930 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
1931 	= 44,
1932 
1933 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
1934 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
1935 
1936 	/* keep last */
1937 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
1938 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
1939 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
1940 };
1941 
1942 /**
1943  * enum qca_vendor_interop_issues_ap_type - interop issues type
1944  * This enum defines the valid set of values of interop issues type. These
1945  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
1946  *
1947  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
1948  * when the STA's Qpower feature is enabled.
1949  */
1950 enum qca_vendor_interop_issues_ap_type {
1951 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
1952 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
1953 };
1954 
1955 /**
1956  * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
1957  * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
1958  *
1959  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
1960  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
1961  * 32-bit unsigned value, The type defined in enum
1962  * qca_vendor_interop_issues_ap_type are used.
1963  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
1964  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
1965  * it is present and mandatory for the command but is not used for
1966  * the event since only a single BSSID is reported in an event.
1967  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
1968  * 6-byte MAC address. It is used within the nested
1969  * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
1970  * and without such encapsulation in the event case.
1971  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
1972  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
1973  */
1974 enum qca_vendor_attr_interop_issues_ap {
1975 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
1976 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
1977 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
1978 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
1979 	/* keep last */
1980 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
1981 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
1982 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
1983 };
1984 
1985 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
1986 
1987 /**
1988  * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
1989  *
1990  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
1991  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
1992  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
1993  *	Aggresive stats gathering
1994  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
1995  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
1996  */
1997 enum qca_wlan_vendor_attr_ll_stats_set {
1998 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
1999 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2000 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
2001 	/* keep last */
2002 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2003 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2004 		QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
2005 };
2006 
2007 /**
2008  * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
2009  *
2010  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
2011  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
2012  *	provided by the caller issuing the GET stats command. When reporting
2013  *	the stats results, the driver uses the same value to indicate which
2014  *	GET request the results correspond to.
2015  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
2016  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2017  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2018  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
2019  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
2020  */
2021 enum qca_wlan_vendor_attr_ll_stats_get {
2022 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2023 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
2024 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
2025 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2026 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2027 		QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
2028 };
2029 
2030 /**
2031  * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
2032  *
2033  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
2034  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
2035  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
2036  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2037  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2038  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
2039  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
2040  */
2041 enum qca_wlan_vendor_attr_ll_stats_clr {
2042 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2043 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
2044 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
2045 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
2046 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
2047 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2048 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2049 		QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
2050 };
2051 
2052 /**
2053  * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
2054  *
2055  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
2056  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
2057  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
2058  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
2059  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
2060  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
2061  */
2062 enum qca_wlan_vendor_attr_ll_stats_results_type {
2063 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
2064 
2065 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
2066 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
2067 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
2068 
2069 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
2070 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
2071 		QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
2072 };
2073 
2074 enum qca_wlan_vendor_attr_ll_stats_results {
2075 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2076 	/* Unsigned 32bit value. Used by the driver; must match the request id
2077 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2078 	 */
2079 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2080 
2081 	/* Unsigned 32 bit value */
2082 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2083 	/* Unsigned 32 bit value */
2084 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2085 	/* Unsigned 32 bit value */
2086 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2087 	/* Unsigned 32 bit value */
2088 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2089 	/* Signed 32 bit value */
2090 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2091 	/* Signed 32 bit value */
2092 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2093 	/* Signed 32 bit value */
2094 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2095 
2096 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2097 	 * nested within the interface stats.
2098 	 */
2099 
2100 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2101 	 * Type = enum wifi_interface_mode.
2102 	 */
2103 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2104 	/* Interface MAC address. An array of 6 Unsigned int8 */
2105 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2106 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2107 	 * AUTHENTICATING, etc. valid for STA, CLI only.
2108 	 */
2109 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2110 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2111 	 */
2112 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2113 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2114 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2115 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2116 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2117 	/* BSSID. An array of 6 unsigned 8 bit values */
2118 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2119 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
2120 	 * values.
2121 	 */
2122 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2123 	/* Country string for this association. An array of 3 unsigned 8 bit
2124 	 * values.
2125 	 */
2126 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2127 
2128 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2129 	 * be nested within the interface stats.
2130 	 */
2131 
2132 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2133 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2134 	/* Unsigned int 32 value corresponding to respective AC */
2135 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2136 	/* Unsigned int 32 value corresponding to respective AC */
2137 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2138 	/* Unsigned int 32 value corresponding to respective AC */
2139 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2140 	/* Unsigned int 32 value corresponding to respective AC */
2141 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2142 	/* Unsigned int 32 value corresponding to respective AC */
2143 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2144 	/* Unsigned int 32 value corresponding to respective AC */
2145 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2146 	/* Unsigned int 32 value corresponding to respective AC */
2147 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2148 	/* Unsigned int 32 value corresponding to respective AC */
2149 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2150 	/* Unsigned int 32 value corresponding to respective AC  */
2151 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2152 	/* Unsigned int 32 values corresponding to respective AC */
2153 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2154 	/* Unsigned int 32 values corresponding to respective AC */
2155 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2156 	/* Unsigned int 32 values corresponding to respective AC */
2157 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2158 	/* Unsigned int 32 values corresponding to respective AC */
2159 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2160 	/* Unsigned int 32 values corresponding to respective AC */
2161 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2162 	/* Unsigned 32 bit value. Number of peers */
2163 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2164 
2165 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2166 	 * nested within the interface stats.
2167 	 */
2168 
2169 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2170 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2171 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
2172 	 * 8 bit values.
2173 	 */
2174 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2175 	/* Unsigned int 32 bit value representing capabilities corresponding
2176 	 * to respective peer.
2177 	 */
2178 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2179 	/* Unsigned 32 bit value. Number of rates */
2180 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2181 
2182 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2183 	 * are nested within the rate stat.
2184 	 */
2185 
2186 	/* Wi-Fi Rate - separate attributes defined for individual fields */
2187 
2188 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2189 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2190 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2191 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2192 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2193 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2194 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2195 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2196 	 */
2197 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2198 
2199 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2200 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2201 
2202 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2203 	 * nested within the peer info stats.
2204 	 */
2205 
2206 	/* Unsigned int 32 bit value. Number of successfully transmitted data
2207 	 * packets, i.e., with ACK received corresponding to the respective
2208 	 * rate.
2209 	 */
2210 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2211 	/* Unsigned int 32 bit value. Number of received data packets
2212 	 * corresponding to the respective rate.
2213 	 */
2214 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2215 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2216 	 * received corresponding to the respective rate.
2217 	 */
2218 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2219 	/* Unsigned int 32 bit value. Total number of data packet retries for
2220 	 * the respective rate.
2221 	 */
2222 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2223 	/* Unsigned int 32 bit value. Total number of short data packet retries
2224 	 * for the respective rate.
2225 	 */
2226 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2227 	/* Unsigned int 32 bit value. Total number of long data packet retries
2228 	 * for the respective rate.
2229 	 */
2230 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2231 
2232 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2233 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
2234 	 * accruing over time.
2235 	 */
2236 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2237 	/* Unsigned 32 bit value. Total number of msecs the radio is
2238 	 * transmitting accruing over time.
2239 	 */
2240 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2241 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
2242 	 * receive accruing over time.
2243 	 */
2244 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2245 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2246 	 * to all scan accruing over time.
2247 	 */
2248 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2249 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2250 	 * to NAN accruing over time.
2251 	 */
2252 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2253 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2254 	 * to GSCAN accruing over time.
2255 	 */
2256 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2257 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2258 	 * to roam scan accruing over time.
2259 	 */
2260 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2261 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2262 	 * to PNO scan accruing over time.
2263 	 */
2264 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2265 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2266 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2267 	 */
2268 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2269 	/* Unsigned 32 bit value. Number of channels. */
2270 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2271 
2272 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2273 	 * be nested within the channel stats.
2274 	 */
2275 
2276 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2277 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2278 	/* Unsigned 32 bit value. Primary 20 MHz channel. */
2279 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2280 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2281 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2282 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2283 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2284 
2285 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2286 	 * nested within the radio stats.
2287 	 */
2288 
2289 	/* Unsigned int 32 bit value representing total number of msecs the
2290 	 * radio is awake on that channel accruing over time, corresponding to
2291 	 * the respective channel.
2292 	 */
2293 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2294 	/* Unsigned int 32 bit value representing total number of msecs the CCA
2295 	 * register is busy accruing over time corresponding to the respective
2296 	 * channel.
2297 	 */
2298 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2299 
2300 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2301 
2302 	/* Signifies the nested list of channel attributes
2303 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
2304 	 */
2305 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2306 
2307 	/* Signifies the nested list of peer info attributes
2308 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2309 	 */
2310 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2311 
2312 	/* Signifies the nested list of rate info attributes
2313 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2314 	 */
2315 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2316 
2317 	/* Signifies the nested list of wmm info attributes
2318 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2319 	 */
2320 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2321 
2322 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2323 	 * that more stats, e.g., peers or radio, are to follow in the next
2324 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2325 	 * Otherwise, it is set to 0.
2326 	 */
2327 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2328 
2329 	/* Unsigned 64 bit value */
2330 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2331 
2332 	/* Unsigned 32 bit value */
2333 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2334 
2335 	/* Unsigned 32 bit value */
2336 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2337 
2338 	/* Unsigned 32 bit value */
2339 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2340 
2341 	/* Unsigned 32 bit value */
2342 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2343 
2344 	/* Unsigned 32 bit value */
2345 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2346 
2347 	/* Number of msecs the radio spent in transmitting for each power level
2348 	 */
2349 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2350 
2351 	/* Unsigned 32 bit value */
2352 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2353 	/* Unsigned 32 bit value */
2354 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2355 	/* Unsigned 32 bit value */
2356 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2357 	/* Unsigned 32 bit value */
2358 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2359 
2360 	/* Unsigned int 32 value.
2361 	 * Pending MSDUs corresponding to respective AC.
2362 	 */
2363 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2364 
2365 	/* u32 value representing total time in milliseconds for which the radio
2366 	 * is transmitting on this channel. This attribute will be nested
2367 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2368 	 */
2369 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
2370 	/* u32 value representing total time in milliseconds for which the radio
2371 	 * is receiving all 802.11 frames intended for this device on this
2372 	 * channel. This attribute will be nested within
2373 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2374 	 */
2375 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
2376 	/* u8 value representing the channel load percentage. Possible values
2377 	 * are 0-100.
2378 	 */
2379 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
2380 	/* u8 value representing the time slicing duty cycle percentage.
2381 	 * Possible values are 0-100.
2382 	 */
2383 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
2384 	/* keep last */
2385 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2386 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2387 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2388 };
2389 
2390 enum qca_wlan_vendor_attr_ll_stats_type {
2391 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2392 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2393 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2394 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2395 
2396 	/* keep last */
2397 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2398 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2399 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2400 };
2401 
2402 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2403 
2404 /**
2405  * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2406  *
2407  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2408  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2409  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2410  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2411  */
2412 enum qca_wlan_vendor_attr_get_supported_features {
2413 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2414 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2415 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2416 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2417 		QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2418 };
2419 
2420 /**
2421  * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2422  *
2423  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2424  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2425  *	value
2426  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2427  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2428  */
2429 enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2430 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2431 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2432 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2433 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2434 		QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2435 };
2436 
2437 /**
2438  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2439  *
2440  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2441  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2442  *	with frequencies to be scanned (in MHz)
2443  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2444  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2445  *	rates to be included
2446  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2447  *	at non CCK rate in 2GHz band
2448  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2449  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2450  *	driver for the specific scan request
2451  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2452  *	request decoded as in enum scan_status
2453  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2454  *	scan flag is set
2455  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2456  *	randomisation
2457  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2458  *	specific BSSID to scan for.
2459  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2460  *	microseconds. This is a common value which applies across all
2461  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
2462  */
2463 enum qca_wlan_vendor_attr_scan {
2464 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2465 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2466 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2467 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2468 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2469 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2470 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2471 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2472 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2473 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2474 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2475 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
2476 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
2477 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2478 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2479 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2480 };
2481 
2482 /**
2483  * enum scan_status - Specifies the valid values the vendor scan attribute
2484  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2485  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2486  *	new scan results
2487  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2488  */
2489 enum scan_status {
2490 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2491 	VENDOR_SCAN_STATUS_ABORTED,
2492 	VENDOR_SCAN_STATUS_MAX,
2493 };
2494 
2495 /**
2496  * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2497  *
2498  * NL attributes for data used by
2499  * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2500  *
2501  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2502  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2503  *	Unsigned 32-bit value
2504  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
2505  *	Unsigned 32-bit value
2506  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
2507  *	array of SET_SIZE x Unsigned 32bit values representing concurrency
2508  *	combinations
2509  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
2510  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
2511  */
2512 enum qca_wlan_vendor_attr_get_concurrency_matrix {
2513 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
2514 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
2515 									= 1,
2516 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
2517 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
2518 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
2519 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
2520 		QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
2521 };
2522 
2523 /**
2524  * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
2525  *
2526  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
2527  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
2528  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
2529  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
2530  */
2531 enum qca_wlan_vendor_attr_set_no_dfs_flag {
2532 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
2533 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
2534 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
2535 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
2536 		QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
2537 };
2538 
2539 /**
2540  * enum qca_vendor_attr_wisa_cmd
2541  * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
2542  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
2543  * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
2544  * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
2545  * WISA setup vendor commands
2546  */
2547 enum qca_vendor_attr_wisa_cmd {
2548 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2549 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2550 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2551 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2552 		QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2553 };
2554 
2555 enum qca_roaming_policy {
2556 	QCA_ROAMING_NOT_ALLOWED,
2557 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
2558 };
2559 
2560 /**
2561  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
2562  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
2563  *
2564  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
2565  * reasons.
2566  *
2567  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
2568  * the configured threshold.
2569  *
2570  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
2571  * beacon misses from the then connected AP.
2572  *
2573  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
2574  * by the connected AP.
2575  *
2576  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
2577  * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
2578  * not poor.
2579  *
2580  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
2581  * or environment being very noisy / congested.
2582  *
2583  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
2584  * from the user (user space).
2585  *
2586  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
2587  * connected AP.
2588  *
2589  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
2590  * breaching out the configured threshold.
2591  *
2592  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
2593  * transition request.
2594  *
2595  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
2596  * there is no data activity with the AP and the current rssi falls below a
2597  * certain threshold.
2598  *
2599  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
2600  * deauthentication or disassociation frames received from the connected AP.
2601  *
2602  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
2603  * scan that happens when there is no candiate AP found during the poor
2604  * RSSI scan trigger.
2605  *
2606  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
2607  * results obtained from an external scan (not aimed at roaming).
2608  *
2609  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
2610  * connection is established when the station is connected in 2.4 Ghz band.
2611  */
2612 enum qca_roam_reason {
2613 	QCA_ROAM_REASON_UNKNOWN,
2614 	QCA_ROAM_REASON_PER,
2615 	QCA_ROAM_REASON_BEACON_MISS,
2616 	QCA_ROAM_REASON_POOR_RSSI,
2617 	QCA_ROAM_REASON_BETTER_RSSI,
2618 	QCA_ROAM_REASON_CONGESTION,
2619 	QCA_ROAM_REASON_USER_TRIGGER,
2620 	QCA_ROAM_REASON_BTM,
2621 	QCA_ROAM_REASON_BSS_LOAD,
2622 	QCA_ROAM_REASON_WTC,
2623 	QCA_ROAM_REASON_IDLE,
2624 	QCA_ROAM_REASON_DISCONNECTION,
2625 	QCA_ROAM_REASON_PERIODIC_TIMER,
2626 	QCA_ROAM_REASON_BACKGROUND_SCAN,
2627 	QCA_ROAM_REASON_BT_ACTIVITY,
2628 };
2629 
2630 /**
2631  * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
2632  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP
2633  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
2634  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
2635  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
2636  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
2637  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
2638  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
2639  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
2640  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
2641  * Indicates the status of re-association requested by user space for
2642  * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
2643  * Type u16.
2644  * Represents the status code from AP. Use
2645  * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
2646  * real status code for failures.
2647  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
2648  * This attribute indicates that the old association was maintained when
2649  * a re-association is requested by user space and that re-association
2650  * attempt fails (i.e., cannot connect to the requested BSS, but can
2651  * remain associated with the BSS with which the association was in
2652  * place when being requested to roam). Used along with
2653  * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
2654  * re-association status. Type flag.
2655  * This attribute is applicable only for re-association failure cases.
2656  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
2657  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
2658  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
2659  * seq number
2660  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
2661  * representing the reasons for the roaming. Defined by enum
2662  * qca_roam_reason.
2663  */
2664 enum qca_wlan_vendor_attr_roam_auth {
2665 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
2666 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
2667 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
2668 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
2669 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
2670 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
2671 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
2672 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
2673 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
2674 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
2675 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
2676 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
2677 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
2678 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
2679 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
2680 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
2681 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
2682 		QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
2683 };
2684 
2685 /**
2686  * enum qca_wlan_vendor_attr_wifi_config - wifi config
2687  *
2688  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
2689  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
2690  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
2691  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
2692  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
2693  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
2694  */
2695 enum qca_wlan_vendor_attr_wifi_config {
2696 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
2697 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
2698 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
2699 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
2700 
2701 	/* keep last */
2702 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
2703 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
2704 		QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
2705 };
2706 
2707 /**
2708  * enum qca_wlan_epno_type - the type of request to the EPNO command
2709  * @QCA_WLAN_EPNO: epno type request
2710  * @QCA_WLAN_PNO: pno type request
2711  */
2712 enum qca_wlan_epno_type {
2713 	QCA_WLAN_EPNO,
2714 	QCA_WLAN_PNO
2715 };
2716 
2717 /**
2718  * enum qca_wlan_vendor_attr_pno_config_params - pno config params
2719  *
2720  * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
2721  *
2722  *	NL attributes for data used by
2723  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
2724  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
2725  *	Unsigned 32-bit value; pno passpoint number of networks
2726  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
2727  *	Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
2728  *	attributes. Array size =
2729  *	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
2730  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
2731  *	Unsigned 32-bit value; network id
2732  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
2733  *	An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
2734  *	realm, 0 if unspecified.
2735  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
2736  *	An array of 16 x Unsigned 32-bit value; roaming consortium ids
2737  *	to match, 0 if unspecified.
2738  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
2739  *	An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
2740  *	unspecified.
2741  *
2742  *	NL attributes for data used by
2743  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
2744  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
2745  *	Unsigned 32-bit value; set pno number of networks
2746  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
2747  *	Array of nested
2748  *	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
2749  *	attributes. Array size =
2750  *		QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
2751  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
2752  *	An array of 33 x Unsigned 8-bit value; NULL terminated SSID
2753  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
2754  *	Signed 8-bit value; threshold for considering this SSID as found,
2755  *	required granularity for this threshold is 4dBm to 8dBm
2756  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
2757  *	Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
2758  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
2759  *	Unsigned 8-bit value; auth bit field for matching WPA IE
2760  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
2761  *	Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
2762  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
2763  *	Nested attribute to send the channel list
2764  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
2765  *	Unsigned 32-bit value; indicates the Interval between PNO scan
2766  *	cycles in msec
2767  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
2768  *	Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
2769  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
2770  *	Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
2771  *	This attribute is obsolete now.
2772  *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
2773  *	Signed 32-bit value; the maximum score that a network
2774  *	can have before bonuses
2775  *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
2776  *	Signed 32-bit value; only report when there is a network's
2777  *	score this much higher han the current connection
2778  *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
2779  *	Signed 32-bit value; score bonus for all networks with
2780  *	the same network flag
2781  *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
2782  *	Signed 32-bit value; score bonus for networks that are not open
2783  *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
2784  *	Signed 32-bit value; 5GHz RSSI score bonus applied to all
2785  *	5GHz networks
2786  *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
2787  *	Unsigned 32-bit value, representing the PNO Request ID
2788  * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
2789  * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
2790  */
2791 enum qca_wlan_vendor_attr_pno_config_params {
2792 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
2793 
2794 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
2795 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
2796 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
2797 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
2798 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
2799 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
2800 
2801 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
2802 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
2803 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
2804 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
2805 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
2806 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
2807 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
2808 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
2809 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
2810 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
2811 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
2812 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
2813 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
2814 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
2815 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
2816 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
2817 
2818 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
2819 	/* keep last */
2820 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
2821 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
2822 		QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
2823 };
2824 
2825 /**
2826  * enum qca_scan_freq_list_type: Frequency list types
2827  *
2828  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
2829  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
2830  *	a preferred frequency list for roaming.
2831  *
2832  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
2833  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
2834  *	a specific frequency list for roaming.
2835  */
2836 enum qca_scan_freq_list_type {
2837 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
2838 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
2839 };
2840 
2841 /**
2842  * enum qca_roam_scan_scheme: scan scheme
2843  *
2844  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
2845  *	Indicates the driver to not scan on a Roam Trigger scenario, but
2846  *	Disconnect.e.g., On a BTM request from the AP driver/firmware shall
2847  *	disconnect from the current connected AP by notifying a failure
2848  *	code in the BTM response.
2849  *
2850  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
2851  *	trigger partial frequency scans. These frequencies are the ones learnt
2852  *	or maintained by the driver based on the probability of finding the
2853  *	BSSID's in the ESS for which the roaming is triggered.
2854  *
2855  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
2856  *	trigger the scan on all the valid frequencies to find the better
2857  *	candidates to roam.
2858  */
2859 enum qca_roam_scan_scheme {
2860 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
2861 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
2862 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
2863 };
2864 
2865 /**
2866  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
2867  *
2868  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
2869  *	List of frequencies in MHz to be considered for a roam scan.
2870  *
2871  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
2872  *	Type of frequency list scheme being configured/gotten as defined by the
2873  *	enum qca_scan_freq_list_type.
2874  */
2875 enum qca_vendor_attr_scan_freq_list_scheme {
2876 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
2877 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
2878 
2879 	/* keep last */
2880 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
2881 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
2882 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
2883 };
2884 
2885 /*
2886  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
2887  *
2888  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
2889  *	a bad packet error rates (PER).
2890  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
2891  *	based on beacon misses from the connected AP.
2892  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
2893  *	due to poor RSSI of the connected AP.
2894  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
2895  *	upon finding a BSSID with a better RSSI than the connected BSSID.
2896  *	Here the RSSI of the current BSSID need not be poor.
2897  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
2898  *	by triggering a periodic scan to find a better AP to roam.
2899  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
2900  *	when the connected channel environment is too noisy/congested.
2901  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
2902  *	when BTM Request frame is received from the connected AP.
2903  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
2904  *	when the channel utilization is goes above the configured threshold.
2905  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
2906  *	based on the request from the user (space).
2907  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
2908  *	device receives Deauthentication/Disassociation frame from connected
2909  *	AP.
2910  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
2911  *	DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
2912  *	is determined to be a poor one.
2913  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
2914  *	based on continuous TX Data Frame failures to the connected AP.
2915  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
2916  *	based on the scan results obtained from an external scan (not
2917  *	triggered to aim roaming)
2918  *
2919  * Set the corresponding roam trigger reason bit to consider it for roam
2920  * trigger.
2921  * Userspace can set multiple bits and send to the driver. The driver shall
2922  * consider all of them to trigger/initiate a roam scan.
2923  */
2924 enum qca_vendor_roam_triggers {
2925 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
2926 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
2927 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
2928 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
2929 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
2930 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
2931 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
2932 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
2933 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
2934 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
2935 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
2936 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
2937 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
2938 };
2939 
2940 /*
2941  * enum qca_vendor_roam_fail_reasons: Defines the various roam
2942  * fail reasons. This enum value is used in
2943  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
2944  *
2945  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
2946  * able to trigger the scan.
2947  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
2948  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
2949  * scan.
2950  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
2951  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
2952  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
2953  * status code.
2954  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
2955  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
2956  * frame.
2957  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
2958  * with error status code.
2959  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
2960  * received.
2961  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
2962  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
2963  * frame.
2964  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
2965  * internally before transmission.
2966  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
2967  * Request frame.
2968  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
2969  * dropped internally.
2970  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
2971  * times out.
2972  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
2973  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
2974  * internally.
2975  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
2976  * M2 frame.
2977  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
2978  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
2979  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
2980  * internally.
2981  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
2982  * frame.
2983  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
2984  * started for final beacon miss case.
2985  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
2986  * received from the AP during roaming handoff.
2987  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
2988  * or host is suspended and gives the indication of the last roamed AP only
2989  * when the Apps is resumed. If the Apps is resumed while the roaming is in
2990  * progress, this ongoing roaming is aborted and the last roamed AP is
2991  * indicated to host.
2992  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
2993  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
2994  * out.
2995  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
2996  */
2997 enum qca_vendor_roam_fail_reasons {
2998 	QCA_ROAM_FAIL_REASON_NONE = 0,
2999 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
3000 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
3001 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
3002 	QCA_ROAM_FAIL_REASON_HOST = 4,
3003 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
3004 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
3005 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
3006 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
3007 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
3008 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
3009 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
3010 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
3011 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
3012 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
3013 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
3014 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
3015 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
3016 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
3017 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
3018 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
3019 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
3020 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
3021 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
3022 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
3023 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
3024 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
3025 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
3026 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
3027 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
3028 };
3029 
3030 /*
3031  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
3032  * invoke fail reasons. This enum value is used in
3033  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
3034  *
3035  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
3036  * in roam invoke command.
3037  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
3038  * enabled.
3039  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
3040  * length is invalid.
3041  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
3042  * in progress.
3043  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
3044  * of the AP in the roam invoke command to firmware. This reason is sent by the
3045  * firmware when the given AP is configured to be ignored or SSID/security
3046  * does not match.
3047  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
3048  * firmware internal reasons.
3049  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
3050  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
3051  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
3052  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
3053  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
3054  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
3055  */
3056 enum qca_vendor_roam_invoke_fail_reasons {
3057 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
3058 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
3059 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
3060 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
3061 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
3062 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
3063 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
3064 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
3065 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
3066 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
3067 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
3068 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
3069 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
3070 
3071 };
3072 
3073 /**
3074  * enum qca_vendor_attr_roam_candidate_selection_criteria:
3075  *
3076  * Each attribute carries a weightage in percentage (%).
3077  *
3078  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
3079  *	Represents the weightage to be given for the RSSI selection
3080  *	criteria among other parameters.
3081  *
3082  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
3083  *	Represents the weightage to be given for the rate selection
3084  *	criteria among other parameters.
3085  *
3086  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
3087  *	Represents the weightage to be given for the band width selection
3088  *	criteria among other parameters.
3089  *
3090  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
3091  *	Represents the weightage to be given for the band selection
3092  *	criteria among other parameters.
3093  *
3094  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
3095  *	Represents the weightage to be given for the NSS selection
3096  *	criteria among other parameters.
3097  *
3098  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
3099  *	Represents the weightage to be given for the channel congestion
3100  *	selection criteria among other parameters.
3101  *
3102  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
3103  *	Represents the weightage to be given for the beamforming selection
3104  *	criteria among other parameters.
3105  *
3106  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
3107  *	Represents the weightage to be given for the OCE selection
3108  *	criteria among other parameters.
3109  */
3110 enum qca_vendor_attr_roam_candidate_selection_criteria {
3111 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
3112 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
3113 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
3114 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
3115 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
3116 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
3117 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
3118 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
3119 
3120 	/* keep last */
3121 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
3122 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
3123 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
3124 };
3125 
3126 /**
3127  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
3128  *	The following attributes are used to set/get/clear the respective
3129  *	configurations to/from the driver.
3130  *	For the get, the attribute for the configuration to be queried shall
3131  *	carry any of its acceptable values to the driver. In return, the driver
3132  *	shall send the configured values within the same attribute to the user
3133  *	space.
3134  *
3135  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
3136  *	Signifies to enable/disable roam control in driver.
3137  *	1-enable, 0-disable
3138  *	Enable: Mandates the driver to do the further roams using the
3139  *	configuration parameters set through
3140  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
3141  *	Disable: Disables the driver/firmware roaming triggered through
3142  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
3143  *	expected to continue with the default configurations.
3144  *
3145  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
3146  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
3147  *	Roam control status is obtained through this attribute.
3148  *
3149  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
3150  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
3151  *	is to be cleared in the driver.
3152  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
3153  *	and shall be ignored if used with other sub commands.
3154  *	If this attribute is specified along with subcmd
3155  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
3156  *	all other attributes, if there are any.
3157  *	If this attribute is not specified when the subcmd
3158  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
3159  *	clear the data corresponding to the attributes specified.
3160  *
3161  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
3162  *	list of frequencies and its type, represented by
3163  *	enum qca_vendor_attr_scan_freq_list_scheme.
3164  *	Frequency list and its type are mandatory for this attribute to set
3165  *	the frequencies.
3166  *	Frequency type is mandatory for this attribute to get the frequencies
3167  *	and the frequency list is obtained through
3168  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
3169  *	Frequency list type is mandatory for this attribute to clear the
3170  *	frequencies.
3171  *
3172  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
3173  *	Carries the value of scan period in seconds to set.
3174  *	The value of scan period is obtained with the same attribute for get.
3175  *	Clears the scan period in the driver when specified with clear command.
3176  *	Scan period is the idle time in seconds between each subsequent
3177  *	channel scans.
3178  *
3179  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
3180  *	Carries the value of full scan period in seconds to set.
3181  *	The value of full scan period is obtained with the same attribute for
3182  *	get.
3183  *	Clears the full scan period in the driver when specified with clear
3184  *	command. Full scan period is the idle period in seconds between two
3185  *	successive full channel roam scans.
3186  *
3187  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
3188  *	Carries a bitmap of the roam triggers specified in
3189  *	enum qca_vendor_roam_triggers.
3190  *	The driver shall enable roaming by enabling corresponding roam triggers
3191  *	based on the trigger bits sent with this attribute.
3192  *	If this attribute is not configured, the driver shall proceed with
3193  *	default behavior.
3194  *	The bitmap configured is obtained with the same attribute for get.
3195  *	Clears the bitmap configured in driver when specified with clear
3196  *	command.
3197  *
3198  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
3199  *	weightage in percentage (%) to be given for each selection criteria.
3200  *	Different roam candidate selection criteria are represented by
3201  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
3202  *	The driver shall select the roam candidate based on corresponding
3203  *	candidate selection scores sent.
3204  *
3205  *	An empty nested attribute is used to indicate that no specific
3206  *	preference score/criteria is configured (i.e., to disable this mechanism
3207  *	in the set case and to show that the mechanism is disabled in the get
3208  *	case).
3209  *
3210  *	Userspace can send multiple attributes out of this enum to the driver.
3211  *	Since this attribute represents the weight/percentage of preference for
3212  *	the respective selection criteria, it is preferred to configure 100%
3213  *	total weightage. The value in each attribute or cumulative weight of the
3214  *	values in all the nested attributes should not exceed 100%. The driver
3215  *	shall reject such configuration.
3216  *
3217  *	If the weights configured through this attribute are less than 100%,
3218  *	the driver shall honor the weights (x%) passed for the corresponding
3219  *	selection criteria and choose/distribute rest of the weight (100-x)%
3220  *	for the other selection criteria, based on its internal logic.
3221  *
3222  *	The selection criteria configured is obtained with the same
3223  *	attribute for get.
3224  *
3225  *	Clears the selection criteria configured in the driver when specified
3226  *	with clear command.
3227  *
3228  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
3229  *	Represents value of scan frequency scheme from
3230  *      enum qca_roam_scan_scheme.
3231  *
3232  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3233  *	signifying the RSSI threshold of the current connected AP, indicating
3234  *	the driver to trigger roam only when the current connected AP's RSSI
3235  *	is lesser than this threshold.
3236  *
3237  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3238  *	signifying the RSSI threshold of the candidate AP, indicating
3239  *	the driver to trigger roam only to the candidate AP with RSSI
3240  *	better than this threshold. If RSSI thresholds for candidate APs found
3241  *	in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
3242  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
3243  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
3244  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
3245  *	will take precedence over the value configured using
3246  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
3247  *
3248  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
3249  *	user triggered reason code to be sent to the AP in response to AP's
3250  *	request to trigger the roam if the roaming cannot be triggered.
3251  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
3252  *
3253  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
3254  *	Carries a bitmap of the roam triggers specified in
3255  *	enum qca_vendor_roam_triggers.
3256  *	Represents the roam triggers for which the specific scan scheme from
3257  *	enum qca_roam_scan_scheme has to be applied.
3258  *	It's an optional attribute. If this attribute is not configured, but
3259  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
3260  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
3261  *	all the roams.
3262  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
3263  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
3264  *	driver shall proceed with the default behavior.
3265  *
3266  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
3267  *	in dBm, signifying the RSSI threshold of the candidate AP found in
3268  *	2.4GHz band. The driver/firmware shall trigger roaming to the candidate
3269  *	AP found in 2.4GHz band only if it's RSSI value is better than this
3270  *	threshold. Optional attribute. If this attribute is not included, then
3271  *	threshold value specified by the
3272  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3273  *
3274  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
3275  *	dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
3276  *	band. The driver/firmware shall trigger roaming to the candidate AP
3277  *	found in 5GHz band only if it's RSSI value is better than this
3278  *	threshold. Optional attribute. If this attribute is not included, then
3279  *	threshold value specified by the
3280  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3281  *
3282  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
3283  *	dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
3284  *	band. The driver/firmware shall trigger roaming to the candidate AP
3285  *	found in 6GHz band only if it's RSSI value is better than this
3286  *	threshold. Optional attribute. If this attribute is not included, then
3287  *	threshold value specified by the
3288  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3289  *
3290  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
3291  *	Carries bitmask value of bits from &enum qca_set_band and represents
3292  *	all the bands in which roaming is allowed. The configuration is valid
3293  *	until next disconnection. If this attribute is not present, the
3294  *	existing configuration shall be used. By default, roaming is allowed
3295  *	on all bands supported by local device. When the value is set to
3296  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
3297  *
3298  */
3299 enum qca_vendor_attr_roam_control {
3300 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
3301 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
3302 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
3303 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
3304 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
3305 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
3306 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
3307 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
3308 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
3309 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
3310 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
3311 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
3312 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
3313 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
3314 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
3315 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
3316 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
3317 
3318 	/* keep last */
3319 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
3320 	QCA_ATTR_ROAM_CONTROL_MAX =
3321 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
3322 };
3323 
3324 /**
3325  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
3326  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3327  *
3328  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
3329  *	Represents the different roam sub commands referred by
3330  *	enum qca_wlan_vendor_roaming_subcmd.
3331  *
3332  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
3333  *	Represents the Request ID for the specific set of commands.
3334  *	This also helps to map specific set of commands to the respective
3335  *	ID / client. e.g., helps to identify the user entity configuring the
3336  *	Blacklist BSSID and accordingly clear the respective ones with the
3337  *	matching ID.
3338  *
3339  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
3340  *	32-bit value.Represents the number of whitelist SSIDs configured.
3341  *
3342  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
3343  *	to carry the list of Whitelist SSIDs.
3344  *
3345  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
3346  *	0..32 octets). Represents the white list SSID. Whitelist SSIDs
3347  *	represent the list of SSIDs to which the firmware/driver can consider
3348  *	to roam to.
3349  *
3350  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
3351  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
3352  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
3353  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
3354  *
3355  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
3356  *	value, RSSI threshold above which 5GHz RSSI is favored.
3357  *
3358  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
3359  *	value, RSSI threshold below which 5GHz RSSI is penalized.
3360  *
3361  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
3362  *	value, factor by which 5GHz RSSI is boosted.
3363  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
3364  *
3365  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
3366  *	value, factor by which 5GHz RSSI is penalized.
3367  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3368  *
3369  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3370  *	value, maximum boost that can be applied to a 5GHz RSSI.
3371  *
3372  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3373  *	value, boost applied to current BSSID to ensure the currently
3374  *	associated BSSID is favored so as to prevent ping-pong situations.
3375  *
3376  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3377  *	value, RSSI below which "Alert" roam is enabled.
3378  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3379  *	because the RSSI is low, or because many successive beacons have been
3380  *	lost or other bad link conditions.
3381  *
3382  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3383  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3384  *	firmware is hunting for a better BSSID or white listed SSID even though
3385  *	the RSSI of the link is good. The parameters enabling the roaming are
3386  *	configured through the PARAM_A_BAND_XX attrbutes.
3387  *
3388  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3389  *	represents the BSSIDs preferred over others while evaluating them
3390  *	for the roaming.
3391  *
3392  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3393  *	32-bit value. Represents the number of preferred BSSIDs set.
3394  *
3395  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3396  *	address representing the BSSID to be preferred.
3397  *
3398  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3399  *	32-bit value, representing the modifier to be applied to the RSSI of
3400  *	the BSSID for the purpose of comparing it with other roam candidate.
3401  *
3402  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3403  *	represents the BSSIDs to get blacklisted for roaming.
3404  *
3405  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3406  *	32-bit value, represents the number of blacklisted BSSIDs.
3407  *
3408  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3409  *	address representing the Blacklisted BSSID.
3410  *
3411  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3412  *	indicates this BSSID blacklist as a hint to the driver. The driver can
3413  *	select this BSSID in the worst case (when no other BSSIDs are better).
3414  *
3415  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3416  *	set/get/clear the roam control config as
3417  *	defined @enum qca_vendor_attr_roam_control.
3418  *
3419  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
3420  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
3421  */
3422 enum qca_wlan_vendor_attr_roaming_config_params {
3423 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3424 
3425 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3426 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3427 
3428 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3429 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3430 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3431 
3432 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3433 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3434 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3435 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3436 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3437 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3438 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3439 
3440 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3441 
3442 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3443 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3444 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3445 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3446 
3447 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3448 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3449 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
3450 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
3451 
3452 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
3453 
3454 	/* keep last */
3455 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3456 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3457 		QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3458 };
3459 
3460 /**
3461  * enum qca_wlan_vendor_roaming_subcmd: Referred by
3462  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
3463  *
3464  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
3465  *	configure the white list SSIDs. These are configured through
3466  *	the following attributes.
3467  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3468  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3469  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3470  *
3471  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
3472  *	configure the Roam params. These parameters are evaluated on the extscan
3473  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
3474  *	params.
3475  *
3476  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
3477  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3478  *	to enable/disable Lazy roam.
3479  *
3480  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
3481  *	preference. Contains the attribute
3482  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
3483  *	preference.
3484  *
3485  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
3486  *
3487  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
3488  *	BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
3489  *	set the same.
3490  *
3491  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
3492  *	roam control config to the driver with the attribute
3493  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3494  *
3495  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
3496  *	roam control config from driver with the attribute
3497  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3498  *	For the get, the attribute for the configuration to be queried shall
3499  *	carry any of its acceptable value to the driver. In return, the driver
3500  *	shall send the configured values within the same attribute to the user
3501  *	space.
3502  *
3503  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
3504  *	roam control config in the driver with the attribute
3505  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3506  *	The driver shall continue with its default roaming behavior when data
3507  *	corresponding to an attribute is cleared.
3508  */
3509 enum qca_wlan_vendor_roaming_subcmd {
3510 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
3511 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
3512 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
3513 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
3514 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
3515 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
3516 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
3517 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
3518 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
3519 };
3520 
3521 /**
3522  * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
3523  *
3524  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
3525  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
3526  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
3527  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
3528  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
3529  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
3530  */
3531 enum qca_wlan_vendor_attr_get_wifi_info {
3532 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3533 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION     = 1,
3534 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION   = 2,
3535 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX        = 3,
3536 
3537 	/* KEEP LAST */
3538 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3539 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX  =
3540 		QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3541 };
3542 
3543 enum qca_wlan_vendor_attr_logger_results {
3544 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3545 
3546 	/*
3547 	 * Unsigned 32-bit value; must match the request Id supplied by
3548 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
3549 	 */
3550 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3551 
3552 	/*
3553 	 * Unsigned 32-bit value; used to indicate the size of memory
3554 	 * dump to be allocated.
3555 	 */
3556 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3557 
3558 	/* keep last */
3559 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3560 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3561 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3562 };
3563 
3564 /**
3565  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3566  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3567  */
3568 enum qca_wlan_vendor_channel_prop_flags {
3569 	/* Bits 0, 1, 2, and 3 are reserved */
3570 
3571 	/* Turbo channel */
3572 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
3573 	/* CCK channel */
3574 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
3575 	/* OFDM channel */
3576 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
3577 	/* 2.4 GHz spectrum channel. */
3578 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
3579 	/* 5 GHz spectrum channel */
3580 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
3581 	/* Only passive scan allowed */
3582 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
3583 	/* Dynamic CCK-OFDM channel */
3584 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
3585 	/* GFSK channel (FHSS PHY) */
3586 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
3587 	/* Radar found on channel */
3588 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
3589 	/* 11a static turbo channel only */
3590 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
3591 	/* Half rate channel */
3592 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
3593 	/* Quarter rate channel */
3594 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
3595 	/* HT 20 channel */
3596 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
3597 	/* HT 40 with extension channel above */
3598 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
3599 	/* HT 40 with extension channel below */
3600 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
3601 	/* HT 40 intolerant */
3602 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
3603 	/* VHT 20 channel */
3604 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
3605 	/* VHT 40 with extension channel above */
3606 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
3607 	/* VHT 40 with extension channel below */
3608 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
3609 	/* VHT 80 channel */
3610 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
3611 	/* HT 40 intolerant mark bit for ACS use */
3612 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3613 	/* Channel temporarily blocked due to noise */
3614 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
3615 	/* VHT 160 channel */
3616 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
3617 	/* VHT 80+80 channel */
3618 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
3619 	/* HE 20 channel */
3620 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
3621 	/* HE 40 with extension channel above */
3622 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
3623 	/* HE 40 with extension channel below */
3624 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
3625 	/* HE 40 intolerant */
3626 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1 << 31,
3627 };
3628 
3629 /**
3630  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3631  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3632  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3633  */
3634 enum qca_wlan_vendor_channel_prop_flags_2 {
3635 	/* HE 40 intolerant mark bit for ACS use */
3636 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3637 	/* HE 80 channel */
3638 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
3639 	/* HE 160 channel */
3640 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
3641 	/* HE 80+80 channel */
3642 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
3643 };
3644 
3645 /**
3646  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3647  * each channel. This is used by
3648  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3649  */
3650 enum qca_wlan_vendor_channel_prop_flags_ext {
3651 	/* Radar found on channel */
3652 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
3653 	/* DFS required on channel */
3654 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
3655 	/* DFS required on channel for 2nd band of 80+80 */
3656 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
3657 	/* If channel has been checked for DFS */
3658 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
3659 	/* Excluded in 802.11d */
3660 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
3661 	/* Channel Switch Announcement received on this channel */
3662 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
3663 	/* Ad-hoc is not allowed */
3664 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
3665 	/* Station only channel */
3666 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3667 	/* DFS radar history for slave device (STA mode) */
3668 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
3669 	/* DFS CAC valid for slave device (STA mode) */
3670 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
3671 };
3672 
3673 /**
3674  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3675  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3676  * information to start/stop the NUD statistics collection.
3677  */
3678 enum qca_attr_nud_stats_set {
3679 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
3680 
3681 	/*
3682 	 * Flag to start/stop the NUD statistics collection.
3683 	 * Start - If included, Stop - If not included
3684 	 */
3685 	QCA_ATTR_NUD_STATS_SET_START = 1,
3686 	/* IPv4 address of the default gateway (in network byte order) */
3687 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
3688 	/*
3689 	 * Represents the data packet type to be monitored.
3690 	 * Host driver tracks the stats corresponding to each data frame
3691 	 * represented by these flags.
3692 	 * These data packets are represented by
3693 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
3694 	 */
3695 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
3696 	/* keep last */
3697 	QCA_ATTR_NUD_STATS_SET_LAST,
3698 	QCA_ATTR_NUD_STATS_SET_MAX =
3699 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
3700 };
3701 
3702 /**
3703  * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
3704  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3705  *	information to start / stop the NUD stats collection.
3706  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
3707  *	Bitmap to Flag to Start / Stop the NUD stats collection
3708  *	Start - If included , Stop - If not included
3709  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
3710  *	IPv4 address of Default Gateway (in network byte order)
3711  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3712  *	information to start / stop the NUD stats collection.
3713  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
3714  *	Flag to Start / Stop the NUD stats collection
3715  *	Start - If included , Stop - If not included
3716  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
3717  *	IPv4 address of Default Gateway (in network byte order)
3718  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3719  *	information to start / stop the NUD stats collection.
3720  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
3721  *	Flag to Start / Stop the NUD stats collection
3722  *	Start - If included , Stop - If not included
3723  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
3724  *	IPv4 address of Default Gateway (in network byte order)
3725  */
3726 enum qca_attr_connectivity_check_stats_set {
3727 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
3728 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
3729 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
3730 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
3731 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
3732 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
3733 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
3734 	/* keep last */
3735 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
3736 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
3737 		QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
3738 };
3739 
3740 /**
3741  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
3742  * data types for which the stats have to get collected.
3743  */
3744 enum qca_wlan_vendor_connectivity_check_pkt_flags {
3745 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
3746 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
3747 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
3748 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
3749 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
3750 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
3751 	 * to represent the stats of respective data type.
3752 	 */
3753 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
3754 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
3755 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
3756 };
3757 
3758 enum qca_attr_connectivity_check_stats {
3759 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
3760 	/* Data packet type for which the stats are collected.
3761 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
3762 	 */
3763 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
3764 	/* ID corresponding to the DNS frame for which the respective DNS stats
3765 	 * are monitored (u32).
3766 	 */
3767 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
3768 	/* source / destination port on which the respective proto stats are
3769 	 * collected (u32).
3770 	 */
3771 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
3772 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
3773 	/* IPv4/IPv6 address for which the destined data packets are
3774 	 * monitored. (in network byte order)
3775 	 */
3776 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
3777 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
3778 	/* Data packet Request count received from netdev */
3779 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
3780 	/* Data packet Request count sent to lower MAC from upper MAC */
3781 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
3782 	/* Data packet Request count received by lower MAC from upper MAC */
3783 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
3784 	/* Data packet Request count successfully transmitted by the device */
3785 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
3786 	/* Data packet Response count received by lower MAC */
3787 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
3788 	/* Data packet Response count received by upper MAC */
3789 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
3790 	/* Data packet Response count delivered to netdev */
3791 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
3792 	/* Data Packet Response count that are dropped out of order */
3793 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
3794 
3795 	/* keep last */
3796 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
3797 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
3798 		QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
3799 };
3800 
3801 /**
3802  * qca_attr_nud_stats_get: Attributes to vendor subcmd
3803  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
3804  * NUD statistics collected when queried.
3805  */
3806 enum qca_attr_nud_stats_get {
3807 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
3808 	/* ARP Request count from netdev */
3809 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
3810 	/* ARP Request count sent to lower MAC from upper MAC */
3811 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
3812 	/* ARP Request count received by lower MAC from upper MAC */
3813 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
3814 	/* ARP Request count successfully transmitted by the device */
3815 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
3816 	/* ARP Response count received by lower MAC */
3817 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
3818 	/* ARP Response count received by upper MAC */
3819 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
3820 	/* ARP Response count delivered to netdev */
3821 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
3822 	/* ARP Response count delivered to netdev */
3823 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
3824 	/*
3825 	 * Flag indicating if the station's link to the AP is active.
3826 	 * Active Link - If included, Inactive link - If not included
3827 	 */
3828 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
3829 	/*
3830 	 * Flag indicating if there is any duplicate address detected (DAD).
3831 	 * Yes - If detected, No - If not detected.
3832 	 */
3833 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
3834 	/*
3835 	 * List of Data types for which the stats are requested.
3836 	 * This list does not carry ARP stats as they are done by the
3837 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
3838 	 */
3839 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
3840 	/* keep last */
3841 	QCA_ATTR_NUD_STATS_GET_LAST,
3842 	QCA_ATTR_NUD_STATS_GET_MAX =
3843 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
3844 };
3845 
3846 enum qca_wlan_btm_candidate_status {
3847 	QCA_STATUS_ACCEPT = 0,
3848 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
3849 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
3850 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
3851 	QCA_STATUS_REJECT_LOW_RSSI = 4,
3852 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
3853 	QCA_STATUS_REJECT_UNKNOWN = 6,
3854 };
3855 
3856 enum qca_wlan_vendor_attr_btm_candidate_info {
3857 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
3858 
3859 	/* 6-byte MAC address representing the BSSID of transition candidate */
3860 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
3861 	/*
3862 	 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
3863 	 * returned by the driver. It says whether the BSSID provided in
3864 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
3865 	 * the driver, if not it specifies the reason for rejection.
3866 	 * Note that the user-space can overwrite the transition reject reason
3867 	 * codes provided by driver based on more information.
3868 	 */
3869 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
3870 
3871 	/* keep last */
3872 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
3873 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
3874 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
3875 };
3876 
3877 enum qca_attr_trace_level {
3878 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
3879 	/*
3880 	 * Nested array of the following attributes:
3881 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
3882 	 * QCA_ATTR_TRACE_LEVEL_MASK.
3883 	 */
3884 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
3885 	/*
3886 	 * Specific QCA host driver module. Please refer to the QCA host
3887 	 * driver implementation to get the specific module ID.
3888 	 */
3889 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
3890 	/* Different trace level masks represented in the QCA host driver. */
3891 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
3892 
3893 	/* keep last */
3894 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
3895 	QCA_ATTR_TRACE_LEVEL_MAX =
3896 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
3897 };
3898 
3899 /**
3900  * enum qca_wlan_vendor_attr_get_logger_features - value for logger
3901  *                                                 supported features
3902  * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
3903  * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
3904  * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
3905  * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
3906  *
3907  * enum values are used for NL attributes for data used by
3908  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
3909  */
3910 enum qca_wlan_vendor_attr_get_logger_features {
3911 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
3912 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
3913 
3914 	/* keep last */
3915 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
3916 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
3917 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
3918 };
3919 
3920 /**
3921  * enum qca_wlan_vendor_attr_link_properties - link properties
3922  *
3923  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
3924  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
3925  *	specify the number of spatial streams negotiated
3926  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
3927  *	to specify negotiated rate flags i.e. ht, vht and channel width
3928  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
3929  *	specify the operating frequency
3930  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
3931  * (STA / AP ) for the connected link.
3932  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
3933  * &struct nl80211_sta_flag_update for the respective connected link. MAC
3934  * address of the peer represented by
3935  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
3936  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
3937  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
3938  */
3939 enum qca_wlan_vendor_attr_link_properties {
3940 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
3941 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
3942 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
3943 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
3944 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR  = 4,
3945 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS  = 5,
3946 
3947 	/* KEEP LAST */
3948 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
3949 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
3950 		QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
3951 };
3952 
3953 /**
3954  * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
3955  *
3956  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
3957  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
3958  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
3959  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
3960  *
3961  * enum values are used for NL attributes for data used by
3962  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
3963  */
3964 enum qca_wlan_vendor_attr_nd_offload {
3965 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
3966 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
3967 
3968 	/* Keep last */
3969 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
3970 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
3971 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
3972 };
3973 
3974 /**
3975  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
3976  *
3977  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
3978  *	management offload, a mechanism where the station's firmware
3979  *	does the exchange with the AP to establish the temporal keys
3980  *	after roaming, rather than having the user space wpa_supplicant do it.
3981  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
3982  *	band selection based on channel selection results.
3983  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
3984  *	simultaneous off-channel operations.
3985  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
3986  *	Listen offload; a mechanism where the station's firmware takes care of
3987  *	responding to incoming Probe Request frames received from other P2P
3988  *	Devices whilst in Listen state, rather than having the user space
3989  *	wpa_supplicant do it. Information from received P2P requests are
3990  *	forwarded from firmware to host whenever the host processor wakes up.
3991  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
3992  *	specific features.
3993  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
3994  *	features.
3995  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
3996  *	specific features only. If a Device sets this bit but not the
3997  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
3998  *	this Device may not support all OCE AP functionalities but can support
3999  *	only OCE STA-CFON functionalities.
4000  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
4001  *	managed regulatory.
4002  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
4003  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
4004  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
4005  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
4006  *	and applying thermal configuration through
4007  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
4008  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
4009  *	userspace.
4010  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
4011  *	With Adaptive 11r feature, access points advertise the vendor
4012  *	specific IEs and MDE but do not include FT AKM in the RSNE.
4013  *	The Adaptive 11r supported stations are expected to identify
4014  *	such vendor specific IEs and connect to the AP in FT mode though
4015  *	the profile is configured in non-FT mode.
4016  *	The driver-based SME cases also need to have this support for
4017  *	Adaptive 11r to handle the connection and roaming scenarios.
4018  *	This flag indicates the support for the same to the user space.
4019  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
4020  *	concurrent network sessions on different Wi-Fi Bands. This feature
4021  *	capability is attributed to the hardware's capability to support
4022  *	the same (e.g., DBS).
4023  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
4024  *	responses for the respective TWT operations are asynchronous (separate)
4025  *	event message) from the driver. If not specified, the responses are
4026  *	synchronous (in vendor command reply) to the request. Each TWT
4027  *	operation is specifically mentioned (against its respective)
4028  *	documentation) to support either of these or both modes.
4029  *
4030  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
4031  */
4032 enum qca_wlan_vendor_features {
4033 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
4034 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
4035 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
4036 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
4037 	QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
4038 	QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
4039 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
4040 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
4041 	QCA_WLAN_VENDOR_FEATURE_TWT = 8,
4042 	QCA_WLAN_VENDOR_FEATURE_11AX = 9,
4043 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
4044 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
4045 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
4046 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
4047 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
4048 
4049 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
4050 };
4051 
4052 /**
4053  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
4054  *     conditional channel switch
4055  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
4056  *     value
4057  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
4058  * frequency list (an array of u32 values in host byte order)
4059  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
4060  *     conditional switch (u32)- 0: Success, Non-zero: Failure
4061  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
4062  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
4063  */
4064 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
4065 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
4066 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
4067 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
4068 
4069 	/* Keep Last */
4070 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
4071 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
4072 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
4073 };
4074 
4075 /**
4076  * enum wifi_logger_supported_features - values for supported logger features
4077  * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
4078  * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
4079  * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
4080  * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
4081  * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
4082  * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
4083  * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
4084  * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
4085  */
4086 enum wifi_logger_supported_features {
4087 	WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
4088 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
4089 	WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
4090 	WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
4091 	WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
4092 	WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
4093 	WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
4094 	WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
4095 	WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
4096 };
4097 
4098 /**
4099  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
4100  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4101  *
4102  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
4103  * Used with event to notify the primary channel number selected in ACS
4104  * operation.
4105  * Note: If both the driver and user-space application supports the 6 GHz band,
4106  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
4107  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
4108  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4109  * is still used if either of the driver or user space application doesn't
4110  * support the 6 GHz band.
4111  *
4112  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
4113  * Used with event to notify the secondary channel number selected in ACS
4114  * operation.
4115  * Note: If both the driver and user-space application supports the 6 GHz band,
4116  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
4117  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
4118  * To maintain backward compatibility,
4119  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
4120  * the driver or user space application doesn't support 6 GHz band.
4121  *
4122  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
4123  * (a) Used with command to configure hw_mode from
4124  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
4125  * (b) Also used with event to notify the hw_mode of selected primary channel
4126  * in ACS operation.
4127  *
4128  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
4129  * Used with command to configure ACS operation for HT mode.
4130  * Disable (flag attribute not present) - HT disabled and
4131  * Enable (flag attribute present) - HT enabled.
4132  *
4133  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
4134  * Used with command to configure ACS operation for HT40 mode.
4135  * Disable (flag attribute not present) - HT40 disabled and
4136  * Enable (flag attribute present) - HT40 enabled.
4137  *
4138  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
4139  * Used with command to configure ACS operation for VHT mode.
4140  * Disable (flag attribute not present) - VHT disabled and
4141  * Enable (flag attribute present) - VHT enabled.
4142  *
4143  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
4144  * mandatory with event.
4145  * If specified in command path, ACS operation is configured with the given
4146  * channel width (in MHz).
4147  * In event path, specifies the channel width of the primary channel selected.
4148  *
4149  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
4150  * Used with command to configure channel list using an array of
4151  * channel numbers (u8).
4152  * Note: If both the driver and user-space application supports the 6 GHz band,
4153  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
4154  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
4155  *
4156  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
4157  * Used with event to notify the VHT segment 0 center channel number selected in
4158  * ACS operation.
4159  * Note: If both the driver and user-space application supports the 6 GHz band,
4160  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
4161  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
4162  * To maintain backward compatibility,
4163  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
4164  * the driver or user space application doesn't support the 6 GHz band.
4165  *
4166  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
4167  * Used with event to notify the VHT segment 1 center channel number selected in
4168  * ACS operation.
4169  * Note: If both the driver and user-space application supports the 6 GHz band,
4170  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
4171  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
4172  * To maintain backward compatibility,
4173  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
4174  * the driver or user space application doesn't support the 6 GHz band.
4175  *
4176  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
4177  * Used with command to configure the channel list using an array of channel
4178  * center frequencies in MHz (u32).
4179  * Note: If both the driver and user-space application supports the 6 GHz band,
4180  * the driver first parses the frequency list and if it fails to get a frequency
4181  * list, parses the channel list specified using
4182  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
4183  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
4184  *
4185  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
4186  * Used with event to notify the primary channel center frequency (MHz) selected
4187  * in ACS operation.
4188  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4189  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
4190  *
4191  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
4192  * Used with event to notify the secondary channel center frequency (MHz)
4193  * selected in ACS operation.
4194  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4195  * includes this attribute along with
4196  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
4197  *
4198  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
4199  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
4200  * selected in ACS operation.
4201  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4202  * includes this attribute along with
4203  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
4204  *
4205  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
4206  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
4207  * selected in ACS operation.
4208  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4209  * includes this attribute along with
4210  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
4211  *
4212  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
4213  * Used with command to notify the driver of EDMG request for ACS
4214  * operation.
4215  *
4216  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
4217  * Used with event to notify the EDMG channel number selected in ACS
4218  * operation.
4219  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4220  */
4221 enum qca_wlan_vendor_attr_acs_offload {
4222 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
4223 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
4224 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
4225 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
4226 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
4227 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
4228 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
4229 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
4230 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
4231 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
4232 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
4233 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
4234 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
4235 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
4236 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
4237 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
4238 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
4239 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
4240 
4241 	/* keep last */
4242 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
4243 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
4244 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
4245 };
4246 
4247 /**
4248  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
4249  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4250  *
4251  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
4252  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
4253  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
4254  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
4255  * @QCA_ACS_MODE_IEEE80211ANY: all modes
4256  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
4257  */
4258 enum qca_wlan_vendor_acs_hw_mode {
4259 	QCA_ACS_MODE_IEEE80211B,
4260 	QCA_ACS_MODE_IEEE80211G,
4261 	QCA_ACS_MODE_IEEE80211A,
4262 	QCA_ACS_MODE_IEEE80211AD,
4263 	QCA_ACS_MODE_IEEE80211ANY,
4264 	QCA_ACS_MODE_IEEE80211AX,
4265 };
4266 
4267 /**
4268  * enum qca_access_policy - access control policy
4269  *
4270  * Access control policy is applied on the configured IE
4271  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
4272  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
4273  *
4274  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
4275  *»       with the specific configuration (IE) set, i.e. allow all the
4276  *»       connections which do not match the configuration.
4277  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
4278  *»       with the specific configuration (IE) set, i.e. deny all the
4279  *»       connections which do not match the configuration.
4280  */
4281 enum qca_access_policy {
4282 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
4283 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
4284 };
4285 
4286 /**
4287  * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
4288  *
4289  * The valid values for the ignore assoc disallowed
4290  *
4291  * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
4292  * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
4293  *
4294  */
4295 enum qca_ignore_assoc_disallowed {
4296 	QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
4297 	QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
4298 };
4299 
4300 /* Attributes for data used by
4301  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
4302  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
4303  */
4304 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
4305 		QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
4306 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
4307 		QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
4308 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
4309 		QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
4310 enum qca_wlan_vendor_attr_config {
4311 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
4312 	/*
4313 	 * Unsigned 32-bit value to set the DTIM period.
4314 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
4315 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
4316 	 * DTIM beacons.
4317 	 */
4318 	QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
4319 	/*
4320 	 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
4321 	 * used to calculate statistics like average the TSF offset or average
4322 	 * number of frame leaked.
4323 	 * For instance, upon Beacon frame reception:
4324 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
4325 	 * For instance, when evaluating leaky APs:
4326 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
4327 	 */
4328 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
4329 	/*
4330 	 * Unsigned 32-bit value to configure guard time, i.e., when
4331 	 * implementing IEEE power management based on frame control PM bit, how
4332 	 * long the driver waits before shutting down the radio and after
4333 	 * receiving an ACK frame for a Data frame with PM bit set.
4334 	 */
4335 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
4336 	/* Unsigned 32-bit value to change the FTM capability dynamically */
4337 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
4338 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
4339 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
4340 	/*
4341 	 * Unsigned 32-bit value to configure the number of continuous
4342 	 * Beacon Miss which shall be used by the firmware to penalize
4343 	 * the RSSI.
4344 	 */
4345 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
4346 	/*
4347 	 * Unsigned 8-bit value to configure the channel avoidance indication
4348 	 * behavior. Firmware to send only one indication and ignore duplicate
4349 	 * indications when set to avoid multiple Apps wakeups.
4350 	 */
4351 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
4352 	/*
4353 	 * 8-bit unsigned value to configure the maximum TX MPDU for
4354 	 * aggregation.
4355 	 */
4356 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
4357 	/*
4358 	 * 8-bit unsigned value to configure the maximum RX MPDU for
4359 	 * aggregation.
4360 	 */
4361 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
4362 	/*
4363 	 * 8-bit unsigned value to configure the Non aggregrate/11g sw
4364 	 * retry threshold (0 disable, 31 max).
4365 	 */
4366 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
4367 	/*
4368 	 * 8-bit unsigned value to configure the aggregrate sw
4369 	 * retry threshold (0 disable, 31 max).
4370 	 */
4371 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
4372 	/*
4373 	 * 8-bit unsigned value to configure the MGMT frame
4374 	 * retry threshold (0 disable, 31 max).
4375 	 */
4376 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
4377 	/*
4378 	 * 8-bit unsigned value to configure the CTRL frame
4379 	 * retry threshold (0 disable, 31 max).
4380 	 */
4381 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
4382 	/*
4383 	 * 8-bit unsigned value to configure the propagation delay for
4384 	 * 2G/5G band (0~63, units in us)
4385 	 */
4386 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
4387 	/*
4388 	 * Unsigned 32-bit value to configure the number of unicast TX fail
4389 	 * packet count. The peer is disconnected once this threshold is
4390 	 * reached.
4391 	 */
4392 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
4393 	/*
4394 	 * Attribute used to set scan default IEs to the driver.
4395 	 *
4396 	 * These IEs can be used by scan operations that will be initiated by
4397 	 * the driver/firmware.
4398 	 *
4399 	 * For further scan requests coming to the driver, these IEs should be
4400 	 * merged with the IEs received along with scan request coming to the
4401 	 * driver. If a particular IE is present in the scan default IEs but not
4402 	 * present in the scan request, then that IE should be added to the IEs
4403 	 * sent in the Probe Request frames for that scan request.
4404 	 */
4405 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
4406 	/* Unsigned 32-bit attribute for generic commands */
4407 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
4408 	/* Unsigned 32-bit value attribute for generic commands */
4409 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
4410 	/* Unsigned 32-bit data attribute for generic command response */
4411 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
4412 	/*
4413 	 * Unsigned 32-bit length attribute for
4414 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4415 	 */
4416 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
4417 	/*
4418 	 * Unsigned 32-bit flags attribute for
4419 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4420 	 */
4421 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
4422 	/*
4423 	 * Unsigned 32-bit, defining the access policy.
4424 	 * See enum qca_access_policy. Used with
4425 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
4426 	 */
4427 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
4428 	/*
4429 	 * Sets the list of full set of IEs for which a specific access policy
4430 	 * has to be applied. Used along with
4431 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
4432 	 * Zero length payload can be used to clear this access constraint.
4433 	 */
4434 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
4435 	/*
4436 	 * Unsigned 32-bit, specifies the interface index (netdev) for which the
4437 	 * corresponding configurations are applied. If the interface index is
4438 	 * not specified, the configurations are attributed to the respective
4439 	 * wiphy.
4440 	 */
4441 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
4442 	/*
4443 	 * 8-bit unsigned value to trigger QPower:
4444 	 * 1-Enable, 0-Disable
4445 	 */
4446 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
4447 	/*
4448 	 * 8-bit unsigned value to configure the driver and below layers to
4449 	 * ignore the assoc disallowed set by APs while connecting
4450 	 * 1-Ignore, 0-Don't ignore
4451 	 */
4452 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
4453 	/*
4454 	 * 32-bit unsigned value to trigger antenna diversity features:
4455 	 * 1-Enable, 0-Disable
4456 	 */
4457 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
4458 	/* 32-bit unsigned value to configure specific chain antenna */
4459 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
4460 	/*
4461 	 * 32-bit unsigned value to trigger cycle selftest
4462 	 * 1-Enable, 0-Disable
4463 	 */
4464 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
4465 	/*
4466 	 * 32-bit unsigned to configure the cycle time of selftest
4467 	 * the unit is micro-second
4468 	 */
4469 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
4470 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
4471 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
4472 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
4473 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
4474 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
4475 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
4476 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
4477 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
4478 	/* 6-byte MAC address to point out the specific peer */
4479 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
4480 	/* 32-bit unsigned value to set window size for specific peer */
4481 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
4482 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
4483 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
4484 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
4485 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
4486 	/*
4487 	 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
4488 	 * station device while in disconnect state. The attribute use the
4489 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
4490 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
4491 	 * 10 MHz channel width, the station will not connect to a BSS using 20
4492 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
4493 	 * clear this constraint.
4494 	 */
4495 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
4496 	/*
4497 	 * 32-bit unsigned value to configure the propagation absolute delay
4498 	 * for 2G/5G band (units in us)
4499 	 */
4500 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
4501 	/* 32-bit unsigned value to set probe period */
4502 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
4503 	/* 32-bit unsigned value to set stay period */
4504 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
4505 	/* 32-bit unsigned value to set snr diff */
4506 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
4507 	/* 32-bit unsigned value to set probe dwell time */
4508 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
4509 	/* 32-bit unsigned value to set mgmt snr weight */
4510 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
4511 	/* 32-bit unsigned value to set data snr weight */
4512 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
4513 	/* 32-bit unsigned value to set ack snr weight */
4514 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
4515 	/*
4516 	 * 32-bit unsigned value to configure the listen interval.
4517 	 * This is in units of beacon intervals. This configuration alters
4518 	 * the negotiated listen interval with the AP during the connection.
4519 	 * It is highly recommended to configure a value less than or equal to
4520 	 * the one negotiated during the association. Configuring any greater
4521 	 * value can have adverse effects (frame loss, AP disassociating STA,
4522 	 * etc.).
4523 	 */
4524 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
4525 	/*
4526 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
4527 	 * disable operations that would cause the AP/GO to leave its operating
4528 	 * channel.
4529 	 *
4530 	 * This will restrict the scans to the AP/GO operating channel and the
4531 	 * channels of the other band, if DBS is supported.A STA/CLI interface
4532 	 * brought up after this setting is enabled, will be restricted to
4533 	 * connecting to devices only on the AP/GO interface's operating channel
4534 	 * or on the other band in DBS case. P2P supported channel list is
4535 	 * modified, to only include AP interface's operating-channel and the
4536 	 * channels of the other band if DBS is supported.
4537 	 *
4538 	 * These restrictions are only applicable as long as the AP/GO interface
4539 	 * is alive. If the AP/GO interface is brought down then this
4540 	 * setting/restriction is forgotten.
4541 	 *
4542 	 * If this variable is set on an AP/GO interface while a multi-channel
4543 	 * concurrent session is active, it has no effect on the operation of
4544 	 * the current interfaces, other than restricting the scan to the AP/GO
4545 	 * operating channel and the other band channels if DBS is supported.
4546 	 * However, if the STA is brought down and restarted then the new STA
4547 	 * connection will either be formed on the AP/GO channel or on the
4548 	 * other band in a DBS case. This is because of the scan being
4549 	 * restricted on these channels as mentioned above.
4550 	 *
4551 	 * 1-Disable offchannel operations, 0-Enable offchannel operations.
4552 	 */
4553 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
4554 
4555 	/*
4556 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
4557 	 * on an interface.
4558 	 * 1 - Enable , 0 - Disable.
4559 	 */
4560 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
4561 
4562 	/*
4563 	 * 8 bit unsigned value to globally enable/disable scan
4564 	 * 1 - Enable, 0 - Disable.
4565 	 */
4566 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
4567 
4568 	/* 8-bit unsigned value to set the total beacon miss count */
4569 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
4570 
4571 	/*
4572 	 * Unsigned 32-bit value to configure the number of continuous
4573 	 * Beacon Miss which shall be used by the firmware to penalize
4574 	 * the RSSI for BTC.
4575 	 */
4576 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
4577 
4578 	/*
4579 	 * 8-bit unsigned value to configure the driver and below layers to
4580 	 * enable/disable all fils features.
4581 	 * 0-enable, 1-disable
4582 	 */
4583 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
4584 
4585 	/* 16-bit unsigned value to configure the level of WLAN latency
4586 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
4587 	 */
4588 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
4589 
4590 	/*
4591 	 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
4592 	 * the connect interface. Exclusively used for the scenarios where the
4593 	 * device is used as a test bed device with special functionality and
4594 	 * not recommended for production. This helps driver to not validate the
4595 	 * RSNE passed from user space and thus allow arbitrary IE data to be
4596 	 * used for testing purposes.
4597 	 * 1-enable, 0-disable.
4598 	 * Applications set/reset this configuration. If not reset, this
4599 	 * parameter remains in use until the driver is unloaded.
4600 	 */
4601 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
4602 
4603 	/*
4604 	 * 8-bit unsigned value to trigger green Tx power saving.
4605 	 * 1-Enable, 0-Disable
4606 	 */
4607 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
4608 
4609 	/*
4610 	 * Attribute to configure disconnect IEs to the driver.
4611 	 * This carries an array of unsigned 8-bit characters.
4612 	 *
4613 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
4614 	 * frame.
4615 	 * These IEs are expected to be considered only for the next
4616 	 * immediate disconnection (disassoc/deauth frame) originated by
4617 	 * the DUT, irrespective of the entity (user space/driver/firmware)
4618 	 * triggering the disconnection.
4619 	 * The host drivers are not expected to use the IEs set through
4620 	 * this interface for further disconnections after the first immediate
4621 	 * disconnection initiated post the configuration.
4622 	 * If the IEs are also updated through cfg80211 interface (after the
4623 	 * enhancement to cfg80211_disconnect), host driver is expected to
4624 	 * take the union of IEs from both of these interfaces and send in
4625 	 * further disassoc/deauth frames.
4626 	 */
4627 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
4628 
4629 	/* 8-bit unsigned value for ELNA bypass.
4630 	 * 1-Enable, 0-Disable
4631 	 */
4632 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
4633 
4634 	/* 8-bit unsigned value. This attribute enables/disables the host driver
4635 	 * to send the Beacon Report response with failure reason for the
4636 	 * scenarios where STA cannot honor the Beacon report request from AP.
4637 	 * 1-Enable, 0-Disable.
4638 	 */
4639 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
4640 
4641 	/* 8-bit unsigned value. This attribute enables/disables the host driver
4642 	 * to send roam reason information in the reassociation request to the
4643 	 * AP. 1-Enable, 0-Disable.
4644 	 */
4645 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
4646 
4647 	/* 32-bit unsigned value to configure different PHY modes to the
4648 	 * driver/firmware. The possible values are defined in
4649 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
4650 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
4651 	 * the driver.
4652 	 */
4653 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
4654 
4655 	/* 8-bit unsigned value to configure the maximum supported channel width
4656 	 * for STA mode. If this value is configured when STA is in connected
4657 	 * state, it should not exceed the negotiated channel width. If it is
4658 	 * configured when STA is in disconnected state, the configured value
4659 	 * will take effect for the next immediate connection.
4660 	 * Possible values are:
4661 	 *   NL80211_CHAN_WIDTH_20
4662 	 *   NL80211_CHAN_WIDTH_40
4663 	 *   NL80211_CHAN_WIDTH_80
4664 	 *   NL80211_CHAN_WIDTH_80P80
4665 	 *   NL80211_CHAN_WIDTH_160
4666 	 */
4667 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
4668 
4669 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
4670 	 * This attribute is only applicable for STA mode. When dynamic
4671 	 * bandwidth adjustment is disabled, STA will use static channel width
4672 	 * the value of which is negotiated during connection.
4673 	 * 1-enable (default), 0-disable
4674 	 */
4675 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
4676 
4677 	/* 8-bit unsigned value to configure the maximum number of subframes of
4678 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
4679 	 * it is decided by hardware.
4680 	 */
4681 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
4682 
4683 	/* 8-bit unsigned value to configure the maximum number of subframes of
4684 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
4685 	 * it is decided by hardware.
4686 	 */
4687 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
4688 
4689 	/* 8-bit unsigned value. This attribute is used to dynamically
4690 	 * enable/disable the LDPC capability of the device. When configured in
4691 	 * the disconnected state, the updated configuration will be considered
4692 	 * for the immediately following connection attempt. If this
4693 	 * configuration is modified while the device is in the connected state,
4694 	 * the LDPC TX will be updated with this configuration immediately,
4695 	 * while the LDPC RX configuration update will take place starting from
4696 	 * the subsequent association attempt.
4697 	 * 1-Enable, 0-Disable.
4698 	 */
4699 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
4700 
4701 	/* 8-bit unsigned value. This attribute is used to dynamically
4702 	 * enable/disable the TX STBC capability of the device. When configured
4703 	 * in the disconnected state, the updated configuration will be
4704 	 * considered for the immediately following connection attempt. If the
4705 	 * connection is formed with TX STBC enabled and if this configuration
4706 	 * is disabled during that association, the TX will be impacted
4707 	 * immediately. Further connection attempts will disable TX STBC.
4708 	 * However, enabling the TX STBC for a connected session with disabled
4709 	 * capability is not allowed and will fail.
4710 	 * 1-Enable, 0-Disable.
4711 	 */
4712 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
4713 
4714 	/* 8-bit unsigned value. This attribute is used to dynamically
4715 	 * enable/disable the RX STBC capability of the device. When configured
4716 	 * in the disconnected state, the updated configuration will be
4717 	 * considered for the immediately following connection attempt. If the
4718 	 * configuration is modified in the connected state, there will be no
4719 	 * impact for the current association, but further connection attempts
4720 	 * will use the updated configuration.
4721 	 * 1-Enable, 0-Disable.
4722 	 */
4723 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
4724 
4725 	/* 8-bit unsigned value. This attribute is used to dynamically configure
4726 	 * the number of spatial streams. When configured in the disconnected
4727 	 * state, the updated configuration will be considered for the
4728 	 * immediately following connection attempt. If the NSS is updated after
4729 	 * the connection, the updated NSS value is notified to the peer using
4730 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
4731 	 * frame. The updated NSS value after the connection shall not be
4732 	 * greater than the one negotiated during the connection. Any such
4733 	 * higher value configuration shall be returned with a failure.
4734 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
4735 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
4736 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
4737 	 * configure the asymmetric NSS configuration (such as 1X2).
4738 	 */
4739 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
4740 
4741 	/*
4742 	 * 8-bit unsigned value to trigger Optimized Power Management:
4743 	 * 1-Enable, 0-Disable
4744 	 */
4745 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
4746 
4747 	/* 8-bit unsigned value. This attribute takes the QOS/access category
4748 	 * value represented by the enum qca_wlan_ac_type and expects the driver
4749 	 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
4750 	 * is invalid for this attribute. This will override the DSCP value
4751 	 * configured in the frame with the intention to only upgrade the QOS.
4752 	 * That said, it is not intended to downgrade the QOS for the frames.
4753 	 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
4754 	 * to disable.
4755 	 */
4756 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
4757 
4758 	/* 8-bit unsigned value. This attribute is used to dynamically configure
4759 	 * the number of chains to be used for transmitting data. This
4760 	 * configuration is allowed only when in connected state and will be
4761 	 * effective until disconnected. The driver rejects this configuration
4762 	 * if the number of spatial streams being used in the current connection
4763 	 * cannot be supported by this configuration.
4764 	 */
4765 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
4766 
4767 	/* 8-bit unsigned value. This attribute is used to dynamically configure
4768 	 * the number of chains to be used for receiving data. This
4769 	 * configuration is allowed only when in connected state and will be
4770 	 * effective until disconnected. The driver rejects this configuration
4771 	 * if the number of spatial streams being used in the current connection
4772 	 * cannot be supported by this configuration.
4773 	 */
4774 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
4775 
4776 	/* 8-bit unsigned value to configure ANI setting type.
4777 	 * See &enum qca_wlan_ani_setting for possible values.
4778 	 */
4779 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
4780 	/* 32-bit signed value to configure ANI level. This is used when
4781 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
4782 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
4783 	 * is invalid, the driver will return a failure.
4784 	 */
4785 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
4786 
4787 	/* 8-bit unsigned value. This attribute is used to dynamically configure
4788 	 * the number of spatial streams used for transmitting the data. When
4789 	 * configured in the disconnected state, the configured value will
4790 	 * be considered for the following connection attempt.
4791 	 * If the NSS is updated after the connection, the updated NSS value
4792 	 * is notified to the peer using the Operating Mode Notification/Spatial
4793 	 * Multiplexing Power Save frame.
4794 	 * The TX NSS value configured after the connection shall not be greater
4795 	 * than the value negotiated during the connection. Any such higher
4796 	 * value configuration shall be treated as invalid configuration by
4797 	 * the driver. This attribute shall be configured along with
4798 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
4799 	 * configuration (such as 2X2 or 1X1) or the asymmetric
4800 	 * configuration (such as 1X2).
4801 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
4802 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
4803 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
4804 	 */
4805 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
4806 
4807 	/* 8-bit unsigned value. This attribute is used to dynamically configure
4808 	 * the number of spatial streams used for receiving the data. When
4809 	 * configured in the disconnected state, the configured value will
4810 	 * be considered for the following connection attempt.
4811 	 * If the NSS is updated after the connection, the updated NSS value
4812 	 * is notified to the peer using the Operating Mode Notification/Spatial
4813 	 * Multiplexing Power Save frame.
4814 	 * The RX NSS value configured after the connection shall not be greater
4815 	 * than the value negotiated during the connection. Any such higher
4816 	 * value configuration shall be treated as invalid configuration by
4817 	 * the driver. This attribute shall be configured along with
4818 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
4819 	 * configuration (such as 2X2 or 1X1) or the asymmetric
4820 	 * configuration (such as 1X2).
4821 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
4822 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
4823 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
4824 	 */
4825 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
4826 
4827 	/*
4828 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
4829 	 * specified interface is the primary STA interface when there are more
4830 	 * than one STA interfaces concurrently active.
4831 	 *
4832 	 * This configuration helps the firmware/hardware to support certain
4833 	 * features (e.g., roaming) on this primary interface, if the same
4834 	 * cannot be supported on the concurrent STA interfaces simultaneously.
4835 	 *
4836 	 * This configuration is only applicable for a single STA interface on
4837 	 * a device and gives the priority for it only over other concurrent STA
4838 	 * interfaces.
4839 	 *
4840 	 * If the device is a multi wiphy/soc, this configuration applies to a
4841 	 * single STA interface across the wiphys.
4842 	 *
4843 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
4844 	 */
4845 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
4846 
4847 	/*
4848 	 * 8-bit unsigned value. This attribute can be used to configure the
4849 	 * driver to enable/disable FT-over-DS feature. Possible values for
4850 	 * this attribute are 1-Enable and 0-Disable.
4851 	 */
4852 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
4853 	/* keep last */
4854 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
4855 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
4856 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
4857 };
4858 
4859 /**
4860  * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
4861  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
4862  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
4863  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
4864  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
4865  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
4866  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
4867  */
4868 enum qca_wlan_vendor_attr_wifi_logger_start {
4869 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4870 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4871 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4872 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4873 	/* keep last */
4874 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4875 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
4876 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4877 };
4878 
4879 /*
4880  * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
4881  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
4882  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
4883  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
4884  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
4885  */
4886 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
4887 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
4888 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
4889 	/* keep last */
4890 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
4891 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
4892 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
4893 };
4894 
4895 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
4896 /**
4897  * enum wlan_offloaded_packets_control - control commands
4898  * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
4899  * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
4900  *
4901  */
4902 enum wlan_offloaded_packets_control {
4903 	WLAN_START_OFFLOADED_PACKETS = 1,
4904 	WLAN_STOP_OFFLOADED_PACKETS  = 2
4905 };
4906 
4907 /**
4908  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
4909  *
4910  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
4911  *      the offloaded data.
4912  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
4913  *      data.
4914  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
4915  *      indication.
4916  */
4917 enum qca_wlan_vendor_attr_data_offload_ind {
4918 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
4919 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
4920 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
4921 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
4922 
4923 	/* keep last */
4924 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
4925 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
4926 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
4927 };
4928 
4929 /**
4930  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
4931  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
4932  */
4933 enum qca_wlan_vendor_attr_offloaded_packets {
4934 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
4935 	/* Takes valid value from the enum
4936 	 * qca_wlan_offloaded_packets_sending_control
4937 	 * Unsigned 32-bit value
4938 	 */
4939 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
4940 	/* Unsigned 32-bit value */
4941 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
4942 	/* array of u8 len: Max packet size */
4943 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
4944 	/* 6-byte MAC address used to represent source MAC address */
4945 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
4946 	/* 6-byte MAC address used to represent destination MAC address */
4947 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
4948 	/* Unsigned 32-bit value, in milli seconds */
4949 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
4950 	/* This optional unsigned 16-bit attribute is used for specifying
4951 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
4952 	 */
4953 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
4954 
4955 	/* keep last */
4956 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
4957 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
4958 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
4959 };
4960 
4961 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS  */
4962 
4963 /**
4964  * enum qca_wlan_rssi_monitoring_control - rssi control commands
4965  * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
4966  * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
4967  * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
4968  */
4969 enum qca_wlan_rssi_monitoring_control {
4970 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
4971 	QCA_WLAN_RSSI_MONITORING_START,
4972 	QCA_WLAN_RSSI_MONITORING_STOP,
4973 };
4974 
4975 /**
4976  * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
4977  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
4978  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
4979  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
4980  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
4981  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
4982  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
4983  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
4984  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
4985  */
4986 enum qca_wlan_vendor_attr_rssi_monitoring {
4987 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
4988 
4989 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
4990 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
4991 
4992 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
4993 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
4994 
4995 	/* attributes to be used/received in callback */
4996 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
4997 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
4998 
4999 	/* keep last */
5000 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
5001 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
5002 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
5003 };
5004 
5005 /**
5006  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
5007  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5008  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
5009  * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
5010  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
5011  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
5012  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
5013  * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
5014  * address
5015  * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
5016  * created
5017  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
5018  * NCS_SK_TYPE/PMK/SCID instead
5019  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
5020  * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
5021  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
5022  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
5023  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
5024  * code: accept/reject
5025  * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
5026  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
5027  * driver
5028  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
5029  * driver
5030  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
5031  * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
5032  * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
5033  * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
5034  * PMKID
5035  * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
5036  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
5037  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
5038  * update:
5039  *     BIT_0: NSS Update
5040  *     BIT_1: Channel list update
5041  * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
5042  * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
5043  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
5044  *     0:20 MHz,
5045  *     1:40 MHz,
5046  *     2:80 MHz,
5047  *     3:160 MHz
5048  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
5049  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
5050  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
5051  * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
5052  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
5053  * transport port used by NDP.
5054  * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
5055  * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
5056  * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
5057 */
5058 enum qca_wlan_vendor_attr_ndp_params {
5059 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
5060 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
5061 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
5062 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
5063 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
5064 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
5065 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
5066 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
5067 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
5068 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
5069 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
5070 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
5071 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
5072 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
5073 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
5074 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
5075 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
5076 	QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
5077 	QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
5078 	QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
5079 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
5080 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
5081 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
5082 	QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
5083 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
5084 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
5085 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
5086 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
5087 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
5088 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
5089 
5090 	/* keep last */
5091 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
5092 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
5093 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
5094 };
5095 
5096 /**
5097  * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
5098  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5099  * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
5100  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: create a ndi
5101  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: delete a ndi
5102  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST: initiate a ndp session
5103  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
5104  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
5105  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
5106  * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
5107  * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
5108  * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
5109  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
5110  * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
5111  * being received
5112  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
5113  * update
5114  */
5115 enum qca_wlan_ndp_sub_cmd {
5116 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
5117 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
5118 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
5119 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
5120 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
5121 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
5122 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
5123 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
5124 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
5125 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
5126 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
5127 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
5128 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
5129 };
5130 
5131 /**
5132  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5133  * information. These attributes are sent as part of
5134  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5135  * attributes correspond to a single channel.
5136  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
5137  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5138  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
5139  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5140  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
5141  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
5142  * regulatory transmission power
5143  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
5144  * transmission power
5145  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
5146  * transmission power
5147  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
5148  * class id
5149  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
5150  * antenna gain in dbm
5151  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
5152  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
5153  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
5154  * segment 0 in center freq in MHz.
5155  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
5156  * segment 1 in center freq in MHz.
5157  *
5158  */
5159 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5160 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5161 
5162 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5163 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5164 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5165 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5166 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5167 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5168 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5169 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5170 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5171 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
5172 	/*
5173 	 * A bitmask (u32) with flags specified in
5174 	 * enum qca_wlan_vendor_channel_prop_flags_2.
5175 	 */
5176 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
5177 
5178 	/*
5179 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5180 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5181 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5182 	 * along with
5183 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5184 	 *
5185 	 * If both the driver and user-space application supports the 6 GHz
5186 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5187 	 * is deprecated and
5188 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5189 	 * should be used.
5190 	 *
5191 	 * To maintain backward compatibility,
5192 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5193 	 * is still used if either of the driver or user space application
5194 	 * doesn't support the 6 GHz band.
5195 	 */
5196 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
5197 
5198 	/*
5199 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
5200 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5201 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5202 	 * along with
5203 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
5204 	 *
5205 	 * If both the driver and user-space application supports the 6 GHz
5206 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
5207 	 * is deprecated and
5208 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5209 	 * should be considered.
5210 	 *
5211 	 * To maintain backward compatibility,
5212 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5213 	 * is still used if either of the driver or user space application
5214 	 * doesn't support the 6 GHz band.
5215 	 */
5216 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
5217 
5218 	/* keep last */
5219 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
5220 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
5221 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
5222 };
5223 
5224 /**
5225  * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
5226  * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
5227  * driver.
5228  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
5229  * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
5230  * ACS need to be started
5231  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
5232  * driver supports spectral scanning or not
5233  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
5234  * offloaded to firmware.
5235  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
5236  * provides additional channel capability as part of scan operation.
5237  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
5238  * interface status is UP
5239  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
5240  * interface. It takes one of nl80211_iftype values.
5241  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
5242  * of chan width. ACS logic should try to get a channel with specified width
5243  * if not found then look for lower values.
5244  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
5245  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
5246  * a/b/g/n/ac.
5247  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
5248  * among which ACS should choose best frequency.
5249  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
5250  * driver which will have <channel(u8), weight(u8)> format as array of
5251  * nested values.
5252  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
5253  * for each channel. It takes attr as defined in
5254  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
5255  * PCL mandatory, PCL preferred, etc.It uses values defined in enum
5256  * qca_wlan_vendor_attr_external_acs_policy.
5257  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
5258  * Operating Parameter (RROP) availability information (u16). It uses values
5259  * defined in enum qca_wlan_vendor_attr_rropavail_info.
5260  */
5261 enum qca_wlan_vendor_attr_external_acs_event {
5262 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
5263 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
5264 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
5265 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
5266 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
5267 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
5268 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
5269 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
5270 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
5271 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
5272 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
5273 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
5274 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
5275 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
5276 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
5277 
5278 	/* keep last */
5279 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
5280 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
5281 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
5282 };
5283 
5284 enum qca_iface_type {
5285 	QCA_IFACE_TYPE_STA,
5286 	QCA_IFACE_TYPE_AP,
5287 	QCA_IFACE_TYPE_P2P_CLIENT,
5288 	QCA_IFACE_TYPE_P2P_GO,
5289 	QCA_IFACE_TYPE_IBSS,
5290 	QCA_IFACE_TYPE_TDLS,
5291 };
5292 
5293 /**
5294  * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
5295  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
5296  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
5297  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
5298  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
5299  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
5300  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
5301  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
5302  */
5303 enum qca_wlan_vendor_attr_pcl_config {
5304 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
5305 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
5306 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
5307 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
5308 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
5309 };
5310 
5311 enum qca_set_band {
5312 	QCA_SETBAND_AUTO = 0,
5313 	QCA_SETBAND_5G = BIT(0),
5314 	QCA_SETBAND_2G = BIT(1),
5315 	QCA_SETBAND_6G = BIT(2),
5316 };
5317 
5318 /**
5319  * enum set_reset_packet_filter - set packet filter control commands
5320  * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
5321  * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
5322  * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
5323  * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
5324  * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
5325  * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
5326  */
5327 enum set_reset_packet_filter {
5328 	QCA_WLAN_SET_PACKET_FILTER = 1,
5329 	QCA_WLAN_GET_PACKET_FILTER = 2,
5330 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
5331 	QCA_WLAN_READ_PACKET_FILTER = 4,
5332 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
5333 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
5334 };
5335 
5336 /**
5337  * enum qca_wlan_vendor_attr_packet_filter - APF control commands
5338  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
5339  * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
5340  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
5341  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
5342  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
5343  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
5344  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
5345  *	section in packet filter buffer
5346  */
5347 enum qca_wlan_vendor_attr_packet_filter {
5348 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
5349 	QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
5350 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
5351 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
5352 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
5353 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
5354 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
5355 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
5356 
5357 	/* keep last */
5358 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
5359 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
5360 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
5361 };
5362 
5363 /**
5364  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
5365  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
5366  */
5367 enum qca_wlan_vendor_attr_wake_stats {
5368 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
5369 	/* Unsigned 32-bit value indicating the total count of wake event */
5370 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
5371 	/* Array of individual wake count, each index representing wake reason
5372 	 */
5373 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
5374 	/* Unsigned 32-bit value representing wake count array */
5375 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
5376 	/* Unsigned 32-bit total wake count value of driver/fw */
5377 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
5378 	/* Array of wake stats of driver/fw */
5379 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
5380 	/* Unsigned 32-bit total wake count value of driver/fw */
5381 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
5382 	/* Unsigned 32-bit total wake count value of packets received */
5383 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
5384 	/* Unsigned 32-bit wake count value unicast packets received */
5385 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
5386 	/* Unsigned 32-bit wake count value multicast packets received */
5387 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
5388 	/* Unsigned 32-bit wake count value broadcast packets received */
5389 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
5390 	/* Unsigned 32-bit wake count value of ICMP packets */
5391 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
5392 	/* Unsigned 32-bit wake count value of ICMP6 packets */
5393 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
5394 	/* Unsigned 32-bit value ICMP6 router advertisement */
5395 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
5396 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
5397 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
5398 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
5399 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
5400 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
5401 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
5402 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
5403 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
5404 	/* Unsigned 32-bit wake count value of receive side multicast */
5405 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
5406 	/* Unsigned 32-bit wake count value of a given RSSI breach */
5407 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
5408 	/* Unsigned 32-bit wake count value of low RSSI */
5409 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
5410 	/* Unsigned 32-bit value GSCAN count */
5411 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
5412 	/* Unsigned 32-bit value PNO complete count */
5413 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
5414 	/* Unsigned 32-bit value PNO match count */
5415 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
5416 	/* keep last */
5417 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
5418 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
5419 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
5420 };
5421 
5422 /**
5423  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
5424  * configured by userspace to the driver/firmware. The values will be
5425  * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
5426  * The driver/firmware takes necessary actions requested by userspace
5427  * such as throttling wifi tx etc. in order to mitigate high temperature.
5428  *
5429  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
5430  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
5431  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
5432  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
5433  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
5434  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
5435  */
5436 enum qca_wlan_vendor_thermal_level {
5437 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
5438 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
5439 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
5440 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
5441 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
5442 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
5443 };
5444 
5445 /**
5446  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
5447  * cmd value. Used for NL attributes for data used by
5448  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5449  */
5450 enum qca_wlan_vendor_attr_thermal_cmd {
5451 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
5452 	/* The value of command, driver will implement different operations
5453 	 * according to this value. It uses values defined in
5454 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
5455 	 * u32 attribute.
5456 	 */
5457 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
5458 	/* Userspace uses this attribute to configure thermal level to the
5459 	 * driver/firmware, or get thermal level from the driver/firmware.
5460 	 * Used in request or response, u32 attribute,
5461 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
5462 	 */
5463 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
5464 	/* Userspace uses this attribute to configure the time in which the
5465 	 * driver/firmware should complete applying settings it received from
5466 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
5467 	 * command type. Used in request, u32 attribute, value is in
5468 	 * milliseconds. A value of zero indicates to apply the settings
5469 	 * immediately. The driver/firmware can delay applying the configured
5470 	 * thermal settings within the time specified in this attribute if
5471 	 * there is any critical ongoing operation.
5472 	 */
5473 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
5474 	/* Nested attribute, driver/firmware uses this attribute to report
5475 	 * thermal stats of different thermal levels to userspace when requested
5476 	 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
5477 	 * type. This attribute contains nested array of records of thermal
5478 	 * statistics of multiple levels. The attributes used inside this nested
5479 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
5480 	 */
5481 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
5482 
5483 	/* keep last */
5484 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
5485 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
5486 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
5487 };
5488 
5489 /**
5490  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
5491  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
5492  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
5493  * thermal command types sent to driver.
5494  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
5495  * get thermal shutdown configuration parameters for display. Parameters
5496  * responded from driver are defined in
5497  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
5498  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
5499  * get temperature. Host should respond with a temperature data. It is defined
5500  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
5501  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
5502  * suspend action.
5503  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
5504  * resume action.
5505  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
5506  * the driver/firmware.
5507  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
5508  * thermal level from the driver/firmware. The driver should respond with a
5509  * thermal level defined in enum qca_wlan_vendor_thermal_level.
5510  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
5511  * current thermal stats from the driver/firmware. The driver should respond
5512  * with stats of all thermal levels encapsulated in attribute
5513  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
5514  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
5515  * the current thermal stats all thermal levels maintained in the
5516  * driver/firmware and start counting from zero again.
5517  */
5518 enum qca_wlan_vendor_attr_thermal_cmd_type {
5519 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
5520 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
5521 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
5522 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
5523 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
5524 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
5525 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
5526 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
5527 };
5528 
5529 /**
5530  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
5531  * to get chip temperature by user.
5532  * enum values are used for NL attributes for data used by
5533  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
5534  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5535  */
5536 enum qca_wlan_vendor_attr_thermal_get_temperature {
5537 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
5538 	/* Temperature value (degree Celsius) from driver.
5539 	 * u32 attribute.
5540 	 */
5541 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
5542 
5543 	/* keep last */
5544 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
5545 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
5546 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
5547 };
5548 
5549 /**
5550  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
5551  * report thermal events from driver to user space.
5552  * enum values are used for NL attributes for data used by
5553  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
5554  */
5555 enum qca_wlan_vendor_attr_thermal_event {
5556 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
5557 	/* Temperature value (degree Celsius) from driver.
5558 	 * u32 attribute.
5559 	 */
5560 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
5561 	/* Indication of resume completion from power save mode.
5562 	 * NLA_FLAG attribute.
5563 	 */
5564 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
5565 	/* Thermal level from the driver.
5566 	 * u32 attribute. Possible values are defined in
5567 	 * enum qca_wlan_vendor_thermal_level.
5568 	 */
5569 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
5570 
5571 	/* keep last */
5572 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
5573 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
5574 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
5575 };
5576 
5577 /**
5578  * enum qca_vendor_element_id - QCA Vendor Specific element types
5579  *
5580  * These values are used to identify QCA Vendor Specific elements. The
5581  * payload of the element starts with the three octet OUI (OUI_QCA) and
5582  * is followed by a single octet type which is defined by this enum.
5583  *
5584  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
5585  *      This element can be used to specify preference order for supported
5586  *      channels. The channels in this list are in preference order (the first
5587  *      one has the highest preference) and are described as a pair of
5588  *      (global) Operating Class and Channel Number (each one octet) fields.
5589  *
5590  *      This extends the standard P2P functionality by providing option to have
5591  *      more than one preferred operating channel. When this element is present,
5592  *      it replaces the preference indicated in the Operating Channel attribute.
5593  *      For supporting other implementations, the Operating Channel attribute is
5594  *      expected to be used with the highest preference channel. Similarly, all
5595  *      the channels included in this Preferred channel list element are
5596  *      expected to be included in the Channel List attribute.
5597  *
5598  *      This vendor element may be included in GO Negotiation Request, P2P
5599  *      Invitation Request, and Provision Discovery Request frames.
5600  *
5601  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
5602  *      This element can be used for pre-standard publication testing of HE
5603  *      before P802.11ax draft assigns the element ID. The payload of this
5604  *      vendor specific element is defined by the latest P802.11ax draft.
5605  *      Please note that the draft is still work in progress and this element
5606  *      payload is subject to change.
5607  *
5608  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
5609  *      This element can be used for pre-standard publication testing of HE
5610  *      before P802.11ax draft assigns the element ID. The payload of this
5611  *      vendor specific element is defined by the latest P802.11ax draft.
5612  *      Please note that the draft is still work in progress and this element
5613  *      payload is subject to change.
5614  *
5615  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
5616  *      element).
5617  *      This element can be used for pre-standard publication testing of HE
5618  *      before P802.11ax draft assigns the element ID extension. The payload of
5619  *      this vendor specific element is defined by the latest P802.11ax draft
5620  *      (not including the Element ID Extension field). Please note that the
5621  *      draft is still work in progress and this element payload is subject to
5622  *      change.
5623  *
5624  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
5625  *      This element can be used for pre-standard publication testing of HE
5626  *      before P802.11ax draft assigns the element ID extension. The payload of
5627  *      this vendor specific element is defined by the latest P802.11ax draft
5628  *      (not including the Element ID Extension field). Please note that the
5629  *      draft is still work in progress and this element payload is subject to
5630  *      change.
5631  *
5632  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
5633  *      This element can be used for pre-standard publication testing of HE
5634  *      before P802.11ax draft assigns the element ID extension. The payload of
5635  *      this vendor specific element is defined by the latest P802.11ax draft
5636  *      (not including the Element ID Extension field). Please note that the
5637  *      draft is still work in progress and this element payload is subject to
5638  *      change.
5639  */
5640 enum qca_vendor_element_id {
5641 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
5642 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
5643 	QCA_VENDOR_ELEM_HE_OPER = 2,
5644 	QCA_VENDOR_ELEM_RAPS = 3,
5645 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
5646 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
5647 };
5648 
5649 /**
5650  * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
5651  * @QCA_WLAN_VENDOR_ATTR_TSF_INVALID: Invalid attribute value
5652  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
5653  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
5654  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
5655  *	SOC timer value at TSF capture
5656  * @QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST: after last
5657  * @QCA_WLAN_VENDOR_ATTR_TSF_MAX: Max value
5658  */
5659 enum qca_vendor_attr_tsf_cmd {
5660 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
5661 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
5662 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
5663 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
5664 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
5665 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
5666 		QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
5667 };
5668 
5669 /**
5670  * enum qca_tsf_operation: TSF driver commands
5671  * @QCA_TSF_CAPTURE: Initiate TSF Capture
5672  * @QCA_TSF_GET: Get TSF capture value
5673  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
5674  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
5675  * will automatically send TSF report to the host. To query
5676  * QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
5677  * initiated first.
5678  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
5679  * will not automatically send TSF report to the host. If
5680  * QCA_TSF_AUTO_REPORT_ENABLE is initiated and
5681  * QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
5682  * operation needs to be initiated.
5683  */
5684 enum qca_tsf_cmd {
5685 	QCA_TSF_CAPTURE,
5686 	QCA_TSF_GET,
5687 	QCA_TSF_SYNC_GET,
5688 	QCA_TSF_AUTO_REPORT_ENABLE,
5689 	QCA_TSF_AUTO_REPORT_DISABLE,
5690 };
5691 
5692 /**
5693  * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
5694  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
5695  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
5696  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
5697  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
5698  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
5699  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
5700  */
5701 enum qca_vendor_attr_get_preferred_freq_list {
5702 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
5703 	/* A 32-unsigned value; the interface type/mode for which the preferred
5704 	 * frequency list is requested (see enum qca_iface_type for possible
5705 	 * values); used in both south- and north-bound.
5706 	 */
5707 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
5708 	/* An array of 32-unsigned values; values are frequency (MHz); used
5709 	 * in north-bound only.
5710 	 */
5711 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
5712 	/* An array of nested values as per enum
5713 	 *  qca_wlan_vendor_attr_pcl_config attribute.
5714 	 *  Each element contains frequency (MHz), weight, and flag
5715 	 *  bit mask indicating how the frequency should be used in P2P
5716 	 *  negotiation.
5717 	 */
5718 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
5719 	/* keep last */
5720 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
5721 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
5722 		QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
5723 };
5724 
5725 /**
5726  * enum qca_vendor_attr_probable_oper_channel - channel hint
5727  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
5728  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
5729  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
5730  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
5731  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
5732  */
5733 enum qca_vendor_attr_probable_oper_channel {
5734 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
5735 	/* 32-bit unsigned value; indicates the connection/iface type likely to
5736 	 * come on this channel (see enum qca_iface_type).
5737 	 */
5738 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
5739 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
5740 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
5741 	/* keep last */
5742 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
5743 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
5744 		QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
5745 };
5746 
5747 /**
5748  * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
5749  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
5750  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
5751  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
5752  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
5753  */
5754 enum qca_wlan_vendor_attr_gw_param_config {
5755 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
5756 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
5757 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
5758 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
5759 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
5760 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
5761 		QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
5762 };
5763 
5764 /**
5765  * enum drv_dbs_capability - DBS capability
5766  * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
5767  * @DRV_DBS_CAPABILITY_1X1: 1x1
5768  * @DRV_DBS_CAPABILITY_2X2: 2x2
5769  */
5770 enum drv_dbs_capability {
5771 	DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
5772 	DRV_DBS_CAPABILITY_1X1,
5773 	DRV_DBS_CAPABILITY_2X2,
5774 };
5775 
5776 /**
5777  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
5778  *
5779  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
5780  */
5781 enum qca_vendor_attr_txpower_decr_db {
5782 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
5783 	/*
5784 	 * 8-bit unsigned value to indicate the reduction of TX power in dB for
5785 	 * a virtual interface.
5786 	 */
5787 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
5788 	/* keep last */
5789 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
5790 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
5791 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
5792 };
5793 
5794 /**
5795  * enum qca_vendor_attr_ota_test - Enable OTA test
5796  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
5797  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
5798  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
5799  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
5800  */
5801 enum qca_vendor_attr_ota_test {
5802 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
5803 	/* 8-bit unsigned value to indicate if OTA test is enabled */
5804 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
5805 	/* keep last */
5806 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
5807 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
5808 		QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
5809 };
5810 
5811 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
5812  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
5813  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
5814  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
5815  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
5816  */
5817 enum qca_vendor_attr_txpower_scale {
5818 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
5819 	/* 8-bit unsigned value to indicate the scaling of tx power */
5820 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
5821 	/* keep last */
5822 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
5823 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
5824 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
5825 };
5826 
5827 /**
5828  * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
5829  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
5830  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
5831  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
5832  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
5833  */
5834 enum qca_vendor_attr_txpower_scale_decr_db {
5835 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
5836 	/* 8-bit unsigned value to indicate the scaling of tx power */
5837 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
5838 	/* keep last */
5839 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
5840 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
5841 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
5842 };
5843 
5844 /**
5845  * enum dfs_mode - state of DFS mode
5846  * @DFS_MODE_NONE: DFS mode attribute is none
5847  * @DFS_MODE_ENABLE:  DFS mode is enabled
5848  * @DFS_MODE_DISABLE: DFS mode is disabled
5849  * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
5850  */
5851 enum dfs_mode {
5852 	DFS_MODE_NONE,
5853 	DFS_MODE_ENABLE,
5854 	DFS_MODE_DISABLE,
5855 	DFS_MODE_DEPRIORITIZE
5856 };
5857 
5858 /**
5859  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
5860  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
5861  *
5862  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
5863  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
5864  *
5865  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
5866  * channel number hint for ACS operation, if valid channel is specified then
5867  * ACS operation gives priority to this channel.
5868  * Note: If both the driver and user space application supports the 6 GHz band,
5869  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
5870  * should be used.
5871  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
5872  * is still used if either of the driver or user space application doesn't
5873  * support the 6 GHz band.
5874  *
5875  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
5876  * Channel center frequency (MHz) hint for ACS operation, if a valid center
5877  * frequency is specified, ACS operation gives priority to this channel.
5878  */
5879 enum qca_wlan_vendor_attr_acs_config {
5880 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
5881 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
5882 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
5883 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
5884 
5885 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
5886 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
5887 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
5888 };
5889 
5890 /**
5891  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
5892  */
5893 enum qca_wlan_vendor_attr_get_hw_capability {
5894 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
5895 	/*
5896 	 * Antenna isolation
5897 	 * An attribute used in the response.
5898 	 * The content of this attribute is encoded in a byte array. Each byte
5899 	 * value is an antenna isolation value. The array length is the number
5900 	 * of antennas.
5901 	 */
5902 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
5903 	/*
5904 	 * Request HW capability
5905 	 * An attribute used in the request.
5906 	 * The content of this attribute is a u32 array for one or more of
5907 	 * hardware capabilities (attribute IDs) that are being requested. Each
5908 	 * u32 value has a value from this
5909 	 * enum qca_wlan_vendor_attr_get_hw_capability
5910 	 * identifying which capabilities are requested.
5911 	 */
5912 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
5913 
5914 	/* keep last */
5915 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
5916 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
5917 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
5918 };
5919 
5920 /**
5921  * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
5922  *                        config params for sta roam policy
5923  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
5924  * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
5925  * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
5926  * If sta should skip unsafe channels or not in scanning
5927  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
5928  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
5929  */
5930 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
5931 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
5932 	QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
5933 	QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
5934 
5935 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
5936 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
5937 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
5938 };
5939 
5940 /* Attributes for FTM commands and events */
5941 
5942 /**
5943  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
5944  *
5945  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
5946  *      enum qca_wlan_vendor_attr_loc_capa_flags.
5947  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
5948  *      of measurement sessions that can run concurrently.
5949  *      Default is one session (no session concurrency).
5950  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
5951  *      peers that are supported in running sessions. For example,
5952  *      if the value is 8 and maximum number of sessions is 2, you can
5953  *      have one session with 8 unique peers, or 2 sessions with 4 unique
5954  *      peers each, and so on.
5955  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
5956  *      of bursts per peer, as an exponent (2^value). Default is 0,
5957  *      meaning no multi-burst support.
5958  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
5959  *      of measurement exchanges allowed in a single burst.
5960  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
5961  *      types. A bit mask (unsigned 32 bit value), each bit corresponds
5962  *      to an AOA type as defined by enum qca_vendor_attr_aoa_type.
5963  */
5964 enum qca_wlan_vendor_attr_loc_capa {
5965 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
5966 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
5967 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
5968 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
5969 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
5970 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
5971 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
5972 	/* keep last */
5973 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
5974 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
5975 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
5976 };
5977 
5978 /**
5979  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
5980  *
5981  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
5982  *      can be configured as an FTM responder (for example, an AP that
5983  *      services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
5984  *      will be supported if set.
5985  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
5986  *      can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
5987  *      will be supported if set.
5988 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
5989  *      supports immediate (ASAP) response.
5990  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
5991  *      AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
5992  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
5993  *      requesting AOA measurements as part of an FTM session.
5994  */
5995 enum qca_wlan_vendor_attr_loc_capa_flags {
5996 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
5997 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
5998 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
5999 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
6000 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
6001 };
6002 
6003 /**
6004  * enum qca_wlan_ani_setting - ANI setting type
6005  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
6006  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
6007  */
6008 enum qca_wlan_ani_setting {
6009 	QCA_WLAN_ANI_SETTING_AUTO = 0,
6010 	QCA_WLAN_ANI_SETTING_FIXED = 1,
6011 };
6012 
6013 /**
6014  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
6015  *
6016  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
6017  * Channel number on which Access Point should restart.
6018  * Note: If both the driver and user space application supports the 6 GHz band,
6019  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
6020  * should be used.
6021  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
6022  * is still used if either of the driver or user space application doesn't
6023  * support the 6 GHz band.
6024  *
6025  * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
6026  * Nested attribute to hold list of center frequencies on which AP is
6027  * expected to operate. This is irrespective of ACS configuration.
6028  * This list is a priority based one and is looked for before the AP is
6029  * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
6030  * co-exist in the system.
6031  *
6032  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
6033  * Channel center frequency (MHz) on which the access point should restart.
6034  */
6035 enum qca_wlan_vendor_attr_sap_config {
6036 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
6037 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
6038 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
6039 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
6040 
6041 	/* Keep last */
6042 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
6043 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
6044 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
6045 };
6046 
6047 /**
6048  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
6049  * a single peer in a measurement session.
6050  *
6051  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
6052  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
6053  *      to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
6054  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
6055  *      FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
6056  *      9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
6057  *      list of supported attributes.
6058  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
6059  *      secure measurement.
6060  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
6061  *      measurement every <value> bursts. If 0 or not specified,
6062  *      AOA measurements will be disabled for this peer.
6063  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
6064  *      the measurement frames are exchanged. Optional; if not
6065  *      specified, try to locate the peer in the kernel scan
6066  *      results cache and use frequency from there.
6067  */
6068 enum qca_wlan_vendor_attr_ftm_peer_info {
6069 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
6070 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
6071 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
6072 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
6073 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
6074 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
6075 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
6076 	/* keep last */
6077 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
6078 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
6079 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
6080 };
6081 
6082 /**
6083  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
6084  *      per-peer
6085  *
6086  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
6087  *      immediate (ASAP) response from peer.
6088  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
6089  *      LCI report from peer. The LCI report includes the absolute
6090  *      location of the peer in "official" coordinates (similar to GPS).
6091  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
6092  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
6093  *      Location civic report from peer. The LCR includes the location
6094  *      of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
6095  *      11.24.6.7 for more information.
6096  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
6097  *      request a secure measurement.
6098  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
6099  */
6100 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
6101 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP    = 1 << 0,
6102 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI     = 1 << 1,
6103 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR     = 1 << 2,
6104 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE  = 1 << 3,
6105 };
6106 
6107 /**
6108  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
6109  *
6110  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
6111  *      to perform in a single burst.
6112  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
6113  *      perform, specified as an exponent (2^value).
6114  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
6115  *      instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
6116  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
6117  *      as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
6118  *      be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
6119  */
6120 enum qca_wlan_vendor_attr_ftm_meas_param {
6121 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
6122 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
6123 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
6124 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
6125 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
6126 	/* keep last */
6127 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
6128 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
6129 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
6130 };
6131 
6132 /**
6133  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
6134  *
6135  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
6136  *       peer.
6137  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
6138  *      request for this peer.
6139  *      See enum qca_wlan_vendor_attr_ftm_peer_result_status.
6140  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
6141  *      to measurement results for this peer.
6142  *      See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
6143  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
6144  *      request failed and peer requested not to send an additional request
6145  *      for this number of seconds.
6146  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
6147  *      from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6148  *      9.4.2.22.10.
6149  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
6150  *      received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6151  *      9.4.2.22.13.
6152  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
6153  *      overridden some measurement request parameters. See
6154  *      enum qca_wlan_vendor_attr_ftm_meas_param.
6155  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
6156  *      for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
6157  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
6158  *      results. Each entry is a nested attribute defined
6159  *      by enum qca_wlan_vendor_attr_ftm_meas.
6160  */
6161 enum qca_wlan_vendor_attr_ftm_peer_result {
6162 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
6163 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
6164 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
6165 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
6166 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
6167 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
6168 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
6169 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
6170 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
6171 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
6172 	/* keep last */
6173 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
6174 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
6175 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
6176 };
6177 
6178 /**
6179  * enum qca_wlan_vendor_attr_ftm_peer_result_status
6180  *
6181  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
6182  *      will be provided. Peer may have overridden some measurement parameters,
6183  *      in which case overridden parameters will be report by
6184  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
6185  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
6186  *      of performing the measurement request. No more results will be sent
6187  *      for this peer in this session.
6188  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
6189  *      failed, and requested not to send an additional request for number
6190  *      of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
6191  *      attribute.
6192  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
6193  *      failed. Request was not sent over the air.
6194  */
6195 enum qca_wlan_vendor_attr_ftm_peer_result_status {
6196 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
6197 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
6198 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
6199 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
6200 };
6201 
6202 /**
6203  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
6204  *  for measurement result, per-peer
6205  *
6206  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
6207  *      measurement completed for this peer. No more results will be reported
6208  *      for this peer in this session.
6209  */
6210 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
6211 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
6212 };
6213 
6214 /**
6215  * enum qca_vendor_attr_loc_session_status: Session completion status code
6216  *
6217  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
6218  *      successfully.
6219  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
6220  *      by request.
6221  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
6222  *      was invalid and was not started.
6223  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
6224  *      and did not complete normally (for example out of resources).
6225  */
6226 enum qca_vendor_attr_loc_session_status {
6227 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
6228 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
6229 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
6230 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
6231 };
6232 
6233 /**
6234  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
6235  *
6236  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
6237  *      recorded by responder, in picoseconds.
6238  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6239  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
6240  *      initiator, in picoseconds.
6241  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6242  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
6243  *      initiator, in picoseconds.
6244  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6245  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
6246  *      responder, in picoseconds.
6247  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6248  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
6249  *      during this measurement exchange. Optional and will be provided if
6250  *      the hardware can measure it.
6251  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
6252  *      responder. Not always provided.
6253  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6254  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
6255  *      responder. Not always provided.
6256  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6257  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
6258  *      initiator. Not always provided.
6259  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6260  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
6261  *      initiator. Not always provided.
6262  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6263  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
6264  */
6265 enum qca_wlan_vendor_attr_ftm_meas {
6266 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
6267 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
6268 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
6269 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
6270 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
6271 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
6272 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
6273 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
6274 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
6275 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
6276 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
6277 	/* keep last */
6278 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
6279 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
6280 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
6281 };
6282 
6283 /**
6284  * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
6285  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
6286  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
6287  *     A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
6288  *     of the social channels.
6289  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
6290  *     A 32-bit unsigned value; the P2P listen offload period (ms).
6291  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
6292  *     A 32-bit unsigned value; the P2P listen interval duration (ms).
6293  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
6294  *     A 32-bit unsigned value; number of interval times the Firmware needs
6295  *     to run the offloaded P2P listen operation before it stops.
6296  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
6297  *     An array of unsigned 8-bit characters; vendor information elements.
6298  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
6299  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
6300  *     A 32-bit unsigned value; a control flag to indicate whether listen
6301  *     results need to be flushed to wpa_supplicant.
6302  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
6303  *     A 8-bit unsigned value; reason code for P2P listen offload stop
6304  *     event.
6305  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
6306  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
6307  */
6308 enum qca_wlan_vendor_attr_p2p_listen_offload {
6309 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
6310 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
6311 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
6312 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
6313 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
6314 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
6315 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
6316 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
6317 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
6318 	/* keep last */
6319 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
6320 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
6321 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
6322 };
6323 
6324 /**
6325  * enum qca_wlan_vendor_drv_info - WLAN driver info
6326  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
6327  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
6328  * between Firmware & Host.
6329  */
6330 enum qca_wlan_vendor_drv_info {
6331 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
6332 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
6333 
6334 	/* keep last */
6335 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
6336 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
6337 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
6338 };
6339 
6340 /**
6341  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
6342  *
6343  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
6344  *      CIR (channel impulse response) path for each antenna.
6345  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
6346  *      of the strongest CIR path for each antenna.
6347  */
6348 enum qca_wlan_vendor_attr_aoa_type {
6349 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
6350 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
6351 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
6352 };
6353 
6354 /**
6355  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
6356  * validate encryption engine
6357  *
6358  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
6359  *    This will be included if the request is for decryption; if not included,
6360  *    the request is treated as a request for encryption by default.
6361  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
6362  *    indicating the key cipher suite. Takes same values as
6363  *    NL80211_ATTR_KEY_CIPHER.
6364  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
6365  *    Key Id to be used for encryption
6366  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
6367  *    Key (TK) to be used for encryption/decryption
6368  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
6369  *    Packet number to be specified for encryption/decryption
6370  *    6 bytes for TKIP/CCMP/GCMP.
6371  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
6372  *    representing the 802.11 packet (header + payload + FCS) that
6373  *    needs to be encrypted/decrypted.
6374  *    Encrypted/decrypted response from the driver will also be sent
6375  *    to userspace with the same attribute.
6376  */
6377 enum qca_wlan_vendor_attr_encryption_test {
6378 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
6379 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
6380 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
6381 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
6382 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
6383 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
6384 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
6385 
6386 	/* keep last */
6387 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
6388 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
6389 		QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
6390 };
6391 
6392 /**
6393  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
6394  * sector for DMG RF sector operations.
6395  *
6396  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
6397  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
6398  */
6399 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
6400 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
6401 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
6402 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
6403 };
6404 
6405 /**
6406  * enum qca_wlan_vendor_attr_fw_state - State of firmware
6407  *
6408  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
6409  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
6410  */
6411 enum qca_wlan_vendor_attr_fw_state {
6412 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
6413 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
6414 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
6415 };
6416 
6417 /**
6418  * BRP antenna limit mode
6419  *
6420  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
6421  *      antenna limit, BRP will be performed as usual.
6422  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
6423  *      antennas limit. the hardware may use less antennas than the
6424  *      maximum limit.
6425  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
6426  *      use exactly the specified number of antennas for BRP.
6427  */
6428 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
6429 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
6430 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
6431 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
6432 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
6433 };
6434 
6435 /**
6436  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
6437  * DMG RF sector configuration for a single RF module.
6438  * The values are defined in a compact way which closely matches
6439  * the way it is stored in HW registers.
6440  * The configuration provides values for 32 antennas and 8 distribution
6441  * amplifiers, and together describes the characteristics of the RF
6442  * sector - such as a beam in some direction with some gain.
6443  *
6444  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
6445  *      of RF module for this configuration.
6446  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
6447  *      amplifier gain index. Unsigned 32 bit number containing
6448  *      bits for all 32 antennas.
6449  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
6450  *      amplifier gain index. Unsigned 32 bit number containing
6451  *      bits for all 32 antennas.
6452  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
6453  *      amplifier gain index. Unsigned 32 bit number containing
6454  *      bits for all 32 antennas.
6455  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
6456  *      for first 16 antennas, 2 bits per antenna.
6457  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
6458  *      for last 16 antennas, 2 bits per antenna.
6459  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
6460  *      DTYPE values (3 bits) for each distribution amplifier, followed
6461  *      by X16 switch bits for each distribution amplifier. There are
6462  *      total of 8 distribution amplifiers.
6463  */
6464 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
6465 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
6466 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
6467 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
6468 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
6469 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
6470 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
6471 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
6472 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
6473 
6474 	/* keep last */
6475 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
6476 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
6477 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
6478 };
6479 
6480 /**
6481  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
6482  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
6483  *
6484  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
6485  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
6486  *	represents the different TDLS trigger modes.
6487  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
6488  *	which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
6489  *	of packets shall meet the criteria for implicit TDLS setup.
6490  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
6491  *	packets within a duration.
6492  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
6493  *	a TDLS setup.
6494  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
6495  *	a TDLS Discovery to the Peer.
6496  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
6497  *	discovery attempts to know the TDLS capability of the peer. A peer is
6498  *	marked as TDLS not capable if there is no response for all the attempts.
6499  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
6500  *	within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
6501  *	number of TX / RX frames meet the criteria for TDLS teardown.
6502  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
6503  *	(u32) of Tx/Rx packets within a duration
6504  *	CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
6505  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
6506  *	corresponding to the RSSI of the peer below which a TDLS
6507  *	setup is triggered.
6508  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
6509  *	corresponding to the RSSI of the peer above which
6510  *	a TDLS teardown is triggered.
6511  */
6512 enum qca_wlan_vendor_attr_tdls_configuration {
6513 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
6514 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
6515 
6516 	/* Attributes configuring the TDLS Implicit Trigger */
6517 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
6518 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
6519 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
6520 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
6521 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
6522 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
6523 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
6524 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
6525 
6526 	/* keep last */
6527 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
6528 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
6529 		QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
6530 };
6531 
6532 /**
6533  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
6534  *	the driver.
6535  *
6536  * The following are the different values for
6537  * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
6538  *
6539  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
6540  *	initiate/teardown the TDLS connection to a respective peer comes
6541  *	 from the user space. wpa_supplicant provides the commands
6542  *	TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
6543  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
6544  *	setup/teardown to the eligible peer once the configured criteria
6545  *	(such as TX/RX threshold, RSSI) is met. The attributes
6546  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
6547  *	the different configuration criteria for the TDLS trigger from the
6548  *	host driver.
6549  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
6550  *	the TDLS setup / teardown through the implicit mode, only to the
6551  *	configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
6552  *	configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
6553  *	External mode works on top of the implicit mode, thus the host Driver
6554  *	is expected to be configured in TDLS Implicit mode too to operate in
6555  *	External mode. Configuring External mode alone without Implicit
6556  *	mode is invalid.
6557  *
6558  * All the above implementations work as expected only when the host driver
6559  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
6560  * representing that the TDLS message exchange is not internal to the host
6561  * driver, but depends on wpa_supplicant to do the message exchange.
6562  */
6563 enum qca_wlan_vendor_tdls_trigger_mode {
6564 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
6565 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
6566 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
6567 };
6568 
6569 /**
6570  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
6571  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
6572  *	that is hard-coded in the Board Data File (BDF).
6573  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
6574  *	that is hard-coded in the Board Data File (BDF).
6575  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
6576  *	that is hard-coded in the Board Data File (BDF).
6577  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
6578  *	that is hard-coded in the Board Data File (BDF).
6579  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
6580  *	that is hard-coded in the Board Data File (BDF).
6581  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
6582  *	source of SAR power limits, thereby disabling the SAR power
6583  *	limit feature.
6584  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
6585  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
6586  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
6587  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
6588  *
6589  * This enumerates the valid set of values that may be supplied for
6590  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
6591  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
6592  * the response to an instance of the
6593  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
6594  */
6595 enum qca_vendor_attr_sar_limits_selections {
6596 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
6597 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
6598 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
6599 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
6600 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
6601 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
6602 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
6603 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
6604 };
6605 
6606 /**
6607  * enum qca_vendor_attr_sar_limits_spec_modulations -
6608  *	SAR limits specification modulation
6609  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
6610  *	CCK modulation
6611  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
6612  *	OFDM modulation
6613  *
6614  * This enumerates the valid set of values that may be supplied for
6615  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
6616  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
6617  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
6618  * command or in the response to an instance of the
6619  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
6620  */
6621 enum qca_vendor_attr_sar_limits_spec_modulations {
6622 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
6623 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
6624 };
6625 
6626 /**
6627  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
6628  *
6629  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
6630  *	select which SAR power limit table should be used.  Valid
6631  *	values are enumerated in enum
6632  *	%qca_vendor_attr_sar_limits_selections.  The existing SAR
6633  *	power limit selection is unchanged if this attribute is not
6634  *	present.
6635  *
6636  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
6637  *	which specifies the number of SAR power limit specifications
6638  *	which will follow.
6639  *
6640  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
6641  *	limit specifications. The number of specifications is
6642  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
6643  *	specification contains a set of
6644  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
6645  *	specification is uniquely identified by the attributes
6646  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
6647  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
6648  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
6649  *	contains as a payload the attribute
6650  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
6651  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
6652  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
6653  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
6654  *	needed based upon the value of
6655  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
6656  *
6657  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
6658  *	indicate for which band this specification applies. Valid
6659  *	values are enumerated in enum %nl80211_band (although not all
6660  *	bands may be supported by a given device). If the attribute is
6661  *	not supplied then the specification will be applied to all
6662  *	supported bands.
6663  *
6664  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
6665  *	to indicate for which antenna chain this specification
6666  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
6667  *	attribute is not supplied then the specification will be
6668  *	applied to all chains.
6669  *
6670  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
6671  *	value to indicate for which modulation scheme this
6672  *	specification applies. Valid values are enumerated in enum
6673  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
6674  *	is not supplied then the specification will be applied to all
6675  *	modulation schemes.
6676  *
6677  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
6678  *	value to specify the actual power limit value in units of 0.5
6679  *	dBm (i.e., a value of 11 represents 5.5 dBm).
6680  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
6681  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
6682  *
6683  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
6684  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
6685  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
6686  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
6687  *
6688  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
6689  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
6690  */
6691 enum qca_vendor_attr_sar_limits {
6692 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
6693 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
6694 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
6695 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
6696 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
6697 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
6698 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
6699 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
6700 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
6701 
6702 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
6703 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
6704 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
6705 };
6706 
6707 /**
6708  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
6709  *    offload which is an extension for LL_STATS.
6710  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
6711  *    If MAC counters do not exceed the threshold, FW will report monitored
6712  *    link layer counters periodically as this setting. The first report is
6713  *    always triggered by this timer.
6714  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
6715  *    For each MAC layer counter, FW holds two copies. One is the current value.
6716  *    The other is the last report. Once a current counter's increment is larger
6717  *    than the threshold, FW will indicate that counter to host even if the
6718  *    monitoring timer does not expire.
6719  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
6720  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
6721  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
6722  *    failure code.
6723  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
6724  *    1: TX packet discarded
6725  *    2: No ACK
6726  *    3: Postpone
6727  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
6728  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
6729  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
6730  *    Threshold for all monitored parameters. If per counter dedicated threshold
6731  *    is not enabled, this threshold will take effect.
6732  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
6733  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
6734  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
6735  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
6736  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
6737  *    Bit0: TX counter unit in MSDU
6738  *    Bit1: TX counter unit in MPDU
6739  *    Bit2: TX counter unit in PPDU
6740  *    Bit3: TX counter unit in byte
6741  *    Bit4: Dropped MSDUs
6742  *    Bit5: Dropped Bytes
6743  *    Bit6: MPDU retry counter
6744  *    Bit7: MPDU failure counter
6745  *    Bit8: PPDU failure counter
6746  *    Bit9: MPDU aggregation counter
6747  *    Bit10: MCS counter for ACKed MPDUs
6748  *    Bit11: MCS counter for Failed MPDUs
6749  *    Bit12: TX Delay counter
6750  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
6751  *    Bit0: MAC RX counter unit in MPDU
6752  *    Bit1: MAC RX counter unit in byte
6753  *    Bit2: PHY RX counter unit in PPDU
6754  *    Bit3: PHY RX counter unit in byte
6755  *    Bit4: Disorder counter
6756  *    Bit5: Retry counter
6757  *    Bit6: Duplication counter
6758  *    Bit7: Discard counter
6759  *    Bit8: MPDU aggregation size counter
6760  *    Bit9: MCS counter
6761  *    Bit10: Peer STA power state change (wake to sleep) counter
6762  *    Bit11: Peer STA power save counter, total time in PS mode
6763  *    Bit12: Probe request counter
6764  *    Bit13: Other management frames counter
6765  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
6766  *    Bit0: Idle time
6767  *    Bit1: TX time
6768  *    Bit2: time RX in current bss
6769  *    Bit3: Out of current bss time
6770  *    Bit4: Wireless medium busy time
6771  *    Bit5: RX in bad condition time
6772  *    Bit6: TX in bad condition time
6773  *    Bit7: time wlan card not available
6774  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
6775  *    Bit0: Per channel SNR counter
6776  *    Bit1: Per channel noise floor counter
6777  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
6778  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
6779  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
6780  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
6781  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
6782  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
6783  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
6784  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
6785  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
6786  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
6787  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
6788  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
6789  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
6790  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
6791  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
6792  *    aggregation stats buffer length
6793  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
6794  *    buffer for ACKed MPDUs.
6795  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
6796  *    buffer for failed MPDUs.
6797  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
6798  *    length of delay stats array.
6799  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
6800  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
6801  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
6802  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
6803  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
6804  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
6805  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
6806  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
6807  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
6808  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
6809  *    flagged as retransmissions
6810  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
6811  *    flagged as duplicated
6812  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
6813  *    packets discarded
6814  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
6815  *    stats buffer.
6816  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
6817  *    stats buffer.
6818  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
6819  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
6820  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
6821  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
6822  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
6823  *    requests received
6824  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
6825  *    frames received
6826  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
6827  *    there is no TX, nor RX, nor interference.
6828  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
6829  *    transmitting packets.
6830  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
6831  *    for receiving.
6832  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
6833  *    interference detected.
6834  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
6835  *    receiving packets with errors.
6836  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
6837  *    TX no-ACK.
6838  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
6839  *    the chip is unable to work in normal conditions.
6840  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
6841  *    receiving packets in current BSS.
6842  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
6843  *    receiving packets not in current BSS.
6844  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
6845  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
6846  *    This is a container for per antenna signal stats.
6847  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
6848  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
6849  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
6850  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
6851  */
6852 enum qca_wlan_vendor_attr_ll_stats_ext {
6853 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
6854 
6855 	/* Attributes for configurations */
6856 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
6857 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
6858 
6859 	/* Peer STA power state change */
6860 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
6861 
6862 	/* TX failure event */
6863 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
6864 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
6865 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
6866 
6867 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
6868 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
6869 
6870 	/* MAC counters */
6871 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
6872 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
6873 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
6874 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
6875 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
6876 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
6877 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
6878 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
6879 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
6880 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
6881 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
6882 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
6883 
6884 	/* Sub-attributes for PEER_AC_TX */
6885 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
6886 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
6887 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
6888 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
6889 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
6890 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
6891 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
6892 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
6893 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
6894 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
6895 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
6896 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
6897 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
6898 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
6899 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
6900 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
6901 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
6902 
6903 	/* Sub-attributes for PEER_AC_RX */
6904 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
6905 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
6906 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
6907 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
6908 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
6909 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
6910 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
6911 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
6912 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
6913 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
6914 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
6915 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
6916 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
6917 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
6918 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
6919 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
6920 
6921 	/* Sub-attributes for CCA_BSS */
6922 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
6923 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
6924 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
6925 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
6926 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
6927 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
6928 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
6929 
6930 	/* sub-attribute for BSS_RX_TIME */
6931 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
6932 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
6933 
6934 	/* Sub-attributes for PEER_SIGNAL */
6935 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
6936 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
6937 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
6938 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
6939 
6940 	/* Sub-attributes for IFACE_BSS */
6941 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
6942 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
6943 
6944 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
6945 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
6946 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
6947 };
6948 
6949 /**
6950  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
6951  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
6952  * in priority order as decided after ACS operation in userspace.
6953  *
6954  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
6955  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
6956  *
6957  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
6958  * Array of nested values for each channel with following attributes:
6959  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6960  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6961  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6962  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6963  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6964  * Note: If both the driver and user-space application supports the 6 GHz band,
6965  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
6966  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
6967  * To maintain backward compatibility,
6968  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
6969  * is still used if either of the driver or user space application doesn't
6970  * support the 6 GHz band.
6971  *
6972  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
6973  * Primary channel number
6974  * Note: If both the driver and user-space application supports the 6 GHz band,
6975  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
6976  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
6977  * To maintain backward compatibility,
6978  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
6979  * is still used if either of the driver or user space application doesn't
6980  * support the 6 GHz band.
6981  *
6982  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
6983  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
6984  * Note: If both the driver and user-space application supports the 6 GHz band,
6985  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
6986  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
6987  * To maintain backward compatibility,
6988  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
6989  * is still used if either of the driver or user space application
6990  * doesn't support the 6 GHz band.
6991  *
6992  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
6993  * VHT seg0 channel number
6994  * Note: If both the driver and user-space application supports the 6 GHz band,
6995  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
6996  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
6997  * To maintain backward compatibility,
6998  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
6999  * is still used if either of the driver or user space application
7000  * doesn't support the 6 GHz band.
7001  *
7002  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7003  * VHT seg1 channel number
7004  * Note: If both the driver and user-space application supports the 6 GHz band,
7005  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7006  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7007  * To maintain backward compatibility,
7008  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7009  * is still used if either of the driver or user space application
7010  * doesn't support the 6 GHz band.
7011  *
7012  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7013  * Takes one of enum nl80211_chan_width values.
7014  *
7015  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7016  * Array of nested values for each channel with following attributes:
7017  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7018  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7019  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7020  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7021  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7022  * Note: If user-space application has no support of the 6 GHz band, this
7023  * attribute is optional.
7024  *
7025  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7026  * Primary channel frequency in MHz
7027  * Note: If user-space application has no support of the 6 GHz band, this
7028  * attribute is optional.
7029  *
7030  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7031  * Secondary channel frequency in MHz used for HT 40 MHz channels.
7032  * Note: If user-space application has no support of the 6 GHz band, this
7033  * attribute is optional.
7034  *
7035  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7036  * VHT seg0 channel frequency in MHz
7037  * Note: If user-space application has no support of the 6GHz band, this
7038  * attribute is optional.
7039  *
7040  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7041  * VHT seg1 channel frequency in MHz
7042  * Note: If user-space application has no support of the 6 GHz band, this
7043  * attribute is optional.
7044  */
7045 enum qca_wlan_vendor_attr_external_acs_channels {
7046 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7047 
7048 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7049 	 */
7050 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7051 
7052 	/* Array of nested values for each channel with following attributes:
7053 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7054 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7055 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7056 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7057 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7058 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7059 	 */
7060 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7061 	/* This (u8) will hold values of one of enum nl80211_bands */
7062 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7063 	/* Primary channel (u8) */
7064 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7065 	/* Secondary channel (u8) used for HT 40 MHz channels */
7066 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7067 	/* VHT seg0 channel (u8) */
7068 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7069 	/* VHT seg1 channel (u8) */
7070 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7071 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7072 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7073 
7074 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7075 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7076 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7077 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7078 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
7079 
7080 	/* keep last */
7081 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7082 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7083 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7084 };
7085 
7086 /**
7087  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
7088  * the ACS has to be triggered. These values are used by
7089  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
7090  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
7091  */
7092 enum qca_wlan_vendor_acs_select_reason {
7093 	/* Represents the reason that the ACS triggered during the AP start */
7094 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
7095 	/* Represents the reason that DFS found with the current channel */
7096 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
7097 	/* Represents the reason that LTE co-exist in the current band. */
7098 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
7099 	/* Represents the reason that generic, uncategorized interference has
7100 	 * been found in the current channel.
7101 	 */
7102 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
7103 	/* Represents the reason that excessive 802.11 interference has been
7104 	 * found in the current channel.
7105 	 */
7106 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
7107 	/* Represents the reason that generic Continuous Wave (CW) interference
7108 	 * has been found in the current channel.
7109 	 */
7110 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
7111 	/* Represents the reason that Microwave Oven (MWO) interference has been
7112 	 * found in the current channel.
7113 	 */
7114 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
7115 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
7116 	 * (FHSS) interference has been found in the current channel. This may
7117 	 * include 802.11 waveforms.
7118 	 */
7119 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
7120 	/* Represents the reason that non-802.11 generic Frequency-Hopping
7121 	 * Spread Spectrum (FHSS) interference has been found in the current
7122 	 * channel.
7123 	 */
7124 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
7125 	/* Represents the reason that generic Wideband (WB) interference has
7126 	 * been found in the current channel. This may include 802.11 waveforms.
7127 	 */
7128 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
7129 	/* Represents the reason that non-802.11 generic Wideband (WB)
7130 	 * interference has been found in the current channel.
7131 	 */
7132 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
7133 	/* Represents the reason that Jammer interference has been found in the
7134 	 * current channel.
7135 	 */
7136 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
7137 };
7138 
7139 /**
7140  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
7141  *
7142  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
7143  * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
7144  * to get the available value that this item can use.
7145  *
7146  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
7147  * value to specify the gpio number.
7148  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7149  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
7150  *
7151  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
7152  * value to specify the gpio output level, please refer to enum qca_gpio_value
7153  * to get the available value that this item can use.
7154  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7155  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
7156  *
7157  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
7158  * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
7159  * to get the available value that this item can use.
7160  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7161  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7162  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7163  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7164  * attribute is present.
7165  *
7166  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
7167  * value to specify the gpio interrupt mode, please refer to enum
7168  * qca_gpio_interrupt_mode to get the available value that this item can use.
7169  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7170  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7171  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7172  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7173  * attribute is present.
7174  *
7175  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
7176  * value to specify the gpio direction, please refer to enum qca_gpio_direction
7177  * to get the available value that this item can use.
7178  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7179  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7180  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7181  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7182  * attribute is present.
7183  *
7184  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
7185  * Value to specify the mux config. Meaning of a given value is dependent
7186  * on the target chipset and gpio pin. Must be of the range 0-15.
7187  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7188  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
7189  *
7190  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
7191  * Value to specify the drive, Refer to enum qca_gpio_drive.
7192  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7193  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
7194  *
7195  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
7196  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7197  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
7198  * other parameters for the given GPIO will be obtained from internal
7199  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
7200  * specified to indicate the GPIO pin being configured.
7201  */
7202 enum qca_wlan_gpio_attr {
7203 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
7204 	/* Unsigned 32-bit attribute for GPIO command */
7205 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
7206 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
7207 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
7208 	/* Unsigned 32-bit attribute for GPIO value to configure */
7209 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
7210 	/* Unsigned 32-bit attribute for GPIO pull type */
7211 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
7212 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
7213 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
7214 	/* Unsigned 32-bit attribute for GPIO direction to configure */
7215 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
7216 	/* Unsigned 32-bit attribute for GPIO mux config */
7217 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
7218 	/* Unsigned 32-bit attribute for GPIO drive */
7219 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
7220 	/* Flag attribute for using internal gpio configuration */
7221 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
7222 
7223 	/* keep last */
7224 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
7225 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
7226 		QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
7227 };
7228 
7229 /**
7230  * enum gpio_cmd_type - GPIO configuration command type
7231  * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
7232  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
7233  */
7234 enum qca_gpio_cmd_type {
7235 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
7236 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
7237 };
7238 
7239 /**
7240  * enum qca_gpio_pull_type - GPIO pull type
7241  * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
7242  * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
7243  * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
7244  */
7245 enum qca_gpio_pull_type {
7246 	QCA_WLAN_GPIO_PULL_NONE = 0,
7247 	QCA_WLAN_GPIO_PULL_UP = 1,
7248 	QCA_WLAN_GPIO_PULL_DOWN = 2,
7249 	QCA_WLAN_GPIO_PULL_MAX,
7250 };
7251 
7252 /**
7253  * enum qca_gpio_direction - GPIO direction
7254  * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
7255  * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
7256  * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
7257  */
7258 enum qca_gpio_direction {
7259 	QCA_WLAN_GPIO_INPUT = 0,
7260 	QCA_WLAN_GPIO_OUTPUT = 1,
7261 	QCA_WLAN_GPIO_DIR_MAX,
7262 };
7263 
7264 /**
7265  * enum qca_gpio_value - GPIO Value
7266  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
7267  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
7268  * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
7269  */
7270 enum qca_gpio_value {
7271 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
7272 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
7273 	QCA_WLAN_GPIO_LEVEL_MAX,
7274 };
7275 
7276 /**
7277  * enum gpio_interrupt_mode - GPIO interrupt mode
7278  * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
7279  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
7280  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
7281  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
7282  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
7283  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
7284  * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
7285  */
7286 enum qca_gpio_interrupt_mode {
7287 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
7288 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
7289 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
7290 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
7291 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
7292 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
7293 	QCA_WLAN_GPIO_INTMODE_MAX,
7294 };
7295 
7296 /**
7297  * enum gpio_drive - GPIO drive
7298  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
7299  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
7300  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
7301  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
7302  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
7303  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
7304  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
7305  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
7306  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
7307  */
7308 enum qca_gpio_drive {
7309 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
7310 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
7311 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
7312 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
7313 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
7314 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
7315 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
7316 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
7317 	QCA_WLAN_GPIO_DRIVE_MAX,
7318 };
7319 
7320 /**
7321  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
7322  * MSDUQ depth threshold per peer per tid in the target
7323  *
7324  * Associated Vendor Command:
7325  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
7326  */
7327 enum qca_wlan_set_qdepth_thresh_attr {
7328 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
7329 	/* 6-byte MAC address */
7330 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
7331 	/* Unsigned 32-bit attribute for holding the TID */
7332 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
7333 	/* Unsigned 32-bit attribute for holding the update mask
7334 	 * bit 0 - Update high priority msdu qdepth threshold
7335 	 * bit 1 - Update low priority msdu qdepth threshold
7336 	 * bit 2 - Update UDP msdu qdepth threshold
7337 	 * bit 3 - Update Non UDP msdu qdepth threshold
7338 	 * rest of bits are reserved
7339 	 */
7340 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
7341 	/* Unsigned 32-bit attribute for holding the threshold value */
7342 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
7343 
7344 	/* keep last */
7345 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
7346 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
7347 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
7348 };
7349 
7350 /**
7351  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
7352  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
7353  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
7354  * external ACS policies to select the channels w.r.t. the PCL weights.
7355  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
7356  * their PCL weights.)
7357  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
7358  * select a channel with non-zero PCL weight.
7359  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
7360  * channel with non-zero PCL weight.
7361  *
7362  */
7363 enum qca_wlan_vendor_attr_external_acs_policy {
7364 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
7365 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
7366 };
7367 
7368 /**
7369  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
7370  */
7371 enum qca_wlan_vendor_attr_spectral_scan {
7372 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
7373 	/*
7374 	 * Number of times the chip enters spectral scan mode before
7375 	 * deactivating spectral scans. When set to 0, chip will enter spectral
7376 	 * scan mode continuously. u32 attribute.
7377 	 */
7378 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
7379 	/*
7380 	 * Spectral scan period. Period increment resolution is 256*Tclk,
7381 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
7382 	 */
7383 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
7384 	/* Spectral scan priority. u32 attribute. */
7385 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
7386 	/* Number of FFT data points to compute. u32 attribute. */
7387 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
7388 	/*
7389 	 * Enable targeted gain change before starting the spectral scan FFT.
7390 	 * u32 attribute.
7391 	 */
7392 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
7393 	/* Restart a queued spectral scan. u32 attribute. */
7394 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
7395 	/*
7396 	 * Noise floor reference number for the calculation of bin power.
7397 	 * u32 attribute.
7398 	 */
7399 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
7400 	/*
7401 	 * Disallow spectral scan triggers after TX/RX packets by setting
7402 	 * this delay value to roughly SIFS time period or greater.
7403 	 * u32 attribute.
7404 	 */
7405 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
7406 	/*
7407 	 * Number of strong bins (inclusive) per sub-channel, below
7408 	 * which a signal is declared a narrow band tone. u32 attribute.
7409 	 */
7410 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
7411 	/*
7412 	 * Specify the threshold over which a bin is declared strong (for
7413 	 * scan bandwidth analysis). u32 attribute.
7414 	 */
7415 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
7416 	/* Spectral scan report mode. u32 attribute. */
7417 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
7418 	/*
7419 	 * RSSI report mode, if the ADC RSSI is below
7420 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
7421 	 * then FFTs will not trigger, but timestamps and summaries get
7422 	 * reported. u32 attribute.
7423 	 */
7424 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
7425 	/*
7426 	 * ADC RSSI must be greater than or equal to this threshold (signed dB)
7427 	 * to ensure spectral scan reporting with normal error code.
7428 	 * u32 attribute.
7429 	 */
7430 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
7431 	/*
7432 	 * Format of frequency bin magnitude for spectral scan triggered FFTs:
7433 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
7434 	 * u32 attribute.
7435 	 */
7436 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
7437 	/*
7438 	 * Format of FFT report to software for spectral scan triggered FFTs.
7439 	 * 0: No FFT report (only spectral scan summary report)
7440 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
7441 	 * report
7442 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
7443 	 * bins (in-band) per FFT + spectral scan summary report
7444 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
7445 	 * bins (all) per FFT + spectral scan summary report
7446 	 * u32 attribute.
7447 	 */
7448 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
7449 	/*
7450 	 * Number of LSBs to shift out in order to scale the FFT bins.
7451 	 * u32 attribute.
7452 	 */
7453 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
7454 	/*
7455 	 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
7456 	 * in dBm power. u32 attribute.
7457 	 */
7458 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
7459 	/*
7460 	 * Per chain enable mask to select input ADC for search FFT.
7461 	 * u32 attribute.
7462 	 */
7463 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
7464 	/*
7465 	 * An unsigned 64-bit integer provided by host driver to identify the
7466 	 * spectral scan request. This attribute is included in the scan
7467 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
7468 	 * and used as an attribute in
7469 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
7470 	 * specific scan to be stopped.
7471 	 */
7472 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
7473 	/* Skip interval for FFT reports. u32 attribute */
7474 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
7475 	/* Set to report only one set of FFT results.
7476 	 * u32 attribute.
7477 	 */
7478 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
7479 	/* Debug level for spectral module in driver.
7480 	 * 0 : Verbosity level 0
7481 	 * 1 : Verbosity level 1
7482 	 * 2 : Verbosity level 2
7483 	 * 3 : Matched filterID display
7484 	 * 4 : One time dump of FFT report
7485 	 * u32 attribute.
7486 	 */
7487 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
7488 	/* Type of spectral scan request. u32 attribute.
7489 	 * It uses values defined in enum
7490 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
7491 	 */
7492 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
7493 	/* This specifies the frequency span over which spectral
7494 	 * scan would be carried out. Its value depends on the
7495 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
7496 	 * the relation is as follows.
7497 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7498 	 *    Not applicable. Spectral scan would happen in the
7499 	 *    operating span.
7500 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7501 	 *    Center frequency (in MHz) of the span of interest or
7502 	 *    for convenience, center frequency (in MHz) of any channel
7503 	 *    in the span of interest. For 80+80 MHz agile spectral scan
7504 	 *    request it represents center frequency (in MHz) of the primary
7505 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
7506 	 *    channel in the primary 80 MHz span. If agile spectral scan is
7507 	 *    initiated without setting a valid frequency it returns the
7508 	 *    error code
7509 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
7510 	 * u32 attribute.
7511 	 */
7512 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
7513 	/* Spectral scan mode. u32 attribute.
7514 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7515 	 * If this attribute is not present, it is assumed to be
7516 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
7517 	 */
7518 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
7519 	/* Spectral scan error code. u32 attribute.
7520 	 * It uses values defined in enum
7521 	 * qca_wlan_vendor_spectral_scan_error_code.
7522 	 * This attribute is included only in failure scenarios.
7523 	 */
7524 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
7525 	/* 8-bit unsigned value to enable/disable debug of the
7526 	 * Spectral DMA ring.
7527 	 * 1-enable, 0-disable
7528 	 */
7529 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
7530 	/* 8-bit unsigned value to enable/disable debug of the
7531 	 * Spectral DMA buffers.
7532 	 * 1-enable, 0-disable
7533 	 */
7534 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
7535 	/* This specifies the frequency span over which spectral scan would be
7536 	 * carried out. Its value depends on the value of
7537 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
7538 	 * follows.
7539 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7540 	 *    Not applicable. Spectral scan would happen in the operating span.
7541 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7542 	 *    This attribute is applicable only for agile spectral scan
7543 	 *    requests in 80+80 MHz mode. It represents center frequency (in
7544 	 *    MHz) of the secondary 80 MHz span or for convenience, center
7545 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
7546 	 * u32 attribute.
7547 	 */
7548 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
7549 	/* This attribute specifies the bandwidth to be used for Spectral scan
7550 	 * operation. This is an u8 attribute and uses the values in enum
7551 	 * nl80211_chan_width.  This is an optional attribute.
7552 	 * If this attribute is not populated, the driver should configure the
7553 	 * Spectral scan bandwidth to the maximum value supported by the target
7554 	 * for the current operating bandwidth.
7555 	 */
7556 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
7557 
7558 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
7559 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
7560 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
7561 };
7562 
7563 /**
7564  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
7565  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
7566  */
7567 enum qca_wlan_vendor_attr_spectral_diag_stats {
7568 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
7569 	/* Number of spectral TLV signature mismatches.
7570 	 * u64 attribute.
7571 	 */
7572 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
7573 	/* Number of spectral phyerror events with insufficient length when
7574 	 * parsing for secondary 80 search FFT report. u64 attribute.
7575 	 */
7576 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
7577 	/* Number of spectral phyerror events without secondary 80
7578 	 * search FFT report. u64 attribute.
7579 	 */
7580 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
7581 	/* Number of spectral phyerror events with vht operation segment 1 id
7582 	 * mismatches in search fft report. u64 attribute.
7583 	 */
7584 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
7585 	/* Number of spectral phyerror events with vht operation segment 2 id
7586 	 * mismatches in search fft report. u64 attribute.
7587 	 */
7588 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
7589 
7590 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
7591 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
7592 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
7593 };
7594 
7595 /**
7596  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
7597  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
7598  */
7599 enum qca_wlan_vendor_attr_spectral_cap {
7600 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
7601 	/* Flag attribute to indicate phydiag capability */
7602 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
7603 	/* Flag attribute to indicate radar detection capability */
7604 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
7605 	/* Flag attribute to indicate spectral capability */
7606 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
7607 	/* Flag attribute to indicate advanced spectral capability */
7608 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
7609 	/* Spectral hardware generation. u32 attribute.
7610 	 * It uses values defined in enum
7611 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
7612 	 */
7613 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
7614 	/* Spectral bin scaling formula ID. u16 attribute.
7615 	 * It uses values defined in enum
7616 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
7617 	 */
7618 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
7619 	/* Spectral bin scaling param - low level offset.
7620 	 * s16 attribute.
7621 	 */
7622 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
7623 	/* Spectral bin scaling param - high level offset.
7624 	 * s16 attribute.
7625 	 */
7626 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
7627 	/* Spectral bin scaling param - RSSI threshold.
7628 	 * s16 attribute.
7629 	 */
7630 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
7631 	/* Spectral bin scaling param - default AGC max gain.
7632 	 * u8 attribute.
7633 	 */
7634 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
7635 	/* Flag attribute to indicate agile spectral scan capability
7636 	 * for 20/40/80 MHz modes.
7637 	 */
7638 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
7639 	/* Flag attribute to indicate agile spectral scan capability
7640 	 * for 160 MHz mode.
7641 	 */
7642 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
7643 	/* Flag attribute to indicate agile spectral scan capability
7644 	 * for 80+80 MHz mode.
7645 	 */
7646 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
7647 	/* Number of spectral detectors used for scan in 20 MHz.
7648 	 * u32 attribute.
7649 	 */
7650 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
7651 	/* Number of spectral detectors used for scan in 40 MHz.
7652 	 * u32 attribute.
7653 	 */
7654 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
7655 	/* Number of spectral detectors used for scan in 80 MHz.
7656 	 * u32 attribute.
7657 	 */
7658 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
7659 	/* Number of spectral detectors used for scan in 160 MHz.
7660 	 * u32 attribute.
7661 	 */
7662 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
7663 	/* Number of spectral detectors used for scan in 80+80 MHz.
7664 	 * u32 attribute.
7665 	 */
7666 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
7667 
7668 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
7669 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
7670 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
7671 };
7672 
7673 /**
7674  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
7675  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
7676  */
7677 enum qca_wlan_vendor_attr_spectral_scan_status {
7678 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
7679 	/* Flag attribute to indicate whether spectral scan is enabled */
7680 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
7681 	/* Flag attribute to indicate whether spectral scan is in progress*/
7682 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
7683 	/* Spectral scan mode. u32 attribute.
7684 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7685 	 * If this attribute is not present, normal mode
7686 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
7687 	 * requested.
7688 	 */
7689 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
7690 
7691 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
7692 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
7693 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
7694 };
7695 
7696 /**
7697  * enum qca_wlan_vendor_attr_config_latency_level - Level for
7698  * wlan latency module.
7699  *
7700  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
7701  * power saving which would causing data exchange out of service, this
7702  * would be a big impact on latency. For latency sensitive applications over
7703  * Wi-Fi are intolerant to such operations and thus would configure them
7704  * to meet their respective needs. It is well understood by such applications
7705  * that altering the default behavior would degrade the Wi-Fi functionality
7706  * w.r.t the above pointed WLAN operations.
7707  *
7708  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
7709  *      Default WLAN operation level which throughput orientated.
7710  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
7711  *      Use moderate level to improve latency by limit scan duration.
7712  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
7713  *      Use low latency level to benifit application like concurrent
7714  *      downloading or video streaming via constraint scan/adaptive PS.
7715  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
7716  *      Use ultra low latency level to benefit for gaming/voice
7717  *      application via constraint scan/roaming/adaptive PS.
7718  */
7719 enum qca_wlan_vendor_attr_config_latency_level {
7720 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
7721 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
7722 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
7723 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
7724 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
7725 
7726 	/* keep last */
7727 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
7728 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
7729 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
7730 };
7731 
7732 /**
7733  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
7734  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
7735  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
7736  * spectral scan request types.
7737  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
7738  * set the spectral parameters and start scan.
7739  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
7740  * only set the spectral parameters.
7741  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
7742  * only start the spectral scan.
7743  */
7744 enum qca_wlan_vendor_attr_spectral_scan_request_type {
7745 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
7746 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
7747 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
7748 };
7749 
7750 /**
7751  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
7752  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
7753  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
7754  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
7755  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
7756  * spectral scan modes.
7757  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
7758  * spectral scan in the current operating span.
7759  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
7760  * spectral scan in the configured agile span.
7761  */
7762 enum qca_wlan_vendor_spectral_scan_mode {
7763 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
7764 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
7765 };
7766 
7767 /**
7768  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
7769  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
7770  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
7771  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
7772  * of a parameter is not supported.
7773  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
7774  * mode is not supported.
7775  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
7776  * has invalid value.
7777  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
7778  * is not initialized.
7779  */
7780 enum qca_wlan_vendor_spectral_scan_error_code {
7781 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
7782 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
7783 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
7784 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
7785 };
7786 
7787 /**
7788  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
7789  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
7790  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7791  * spectral hardware generation.
7792  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
7793  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
7794  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
7795  */
7796 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
7797 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
7798 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
7799 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
7800 };
7801 
7802 /**
7803  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
7804  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
7805  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
7806  * Spectral bin scaling formula ID.
7807  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
7808  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
7809  * and RSSI threshold based formula.
7810  */
7811 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
7812 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
7813 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
7814 };
7815 
7816 /**
7817  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
7818  * RF Operating Parameter (RROP) information is available, and if so, at which
7819  * point in the application-driver interaction sequence it can be retrieved by
7820  * the application from the driver. This point may vary by architecture and
7821  * other factors. This is a u16 value.
7822  */
7823 enum qca_wlan_vendor_attr_rropavail_info {
7824 	/* RROP information is unavailable. */
7825 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
7826 	/* RROP information is available and the application can retrieve the
7827 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
7828 	 * event from the driver.
7829 	 */
7830 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
7831 	/* RROP information is available only after a vendor specific scan
7832 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
7833 	 * successfully completed. The application can retrieve the information
7834 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
7835 	 * the driver.
7836 	 */
7837 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
7838 };
7839 
7840 /**
7841  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
7842  * Representative RF Operating Parameter (RROP) information. It is sent for the
7843  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
7844  * intended for use by external Auto Channel Selection applications. It provides
7845  * guidance values for some RF parameters that are used by the system during
7846  * operation. These values could vary by channel, band, radio, and so on.
7847  */
7848 enum qca_wlan_vendor_attr_rrop_info {
7849 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
7850 
7851 	/* Representative Tx Power List (RTPL) which has an array of nested
7852 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
7853 	 */
7854 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
7855 
7856 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
7857 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
7858 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
7859 };
7860 
7861 /**
7862  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
7863  * entry instances in the Representative Tx Power List (RTPL). It provides
7864  * simplified power values intended for helping external Auto channel Selection
7865  * applications compare potential Tx power performance between channels, other
7866  * operating conditions remaining identical. These values are not necessarily
7867  * the actual Tx power values that will be used by the system. They are also not
7868  * necessarily the max or average values that will be used. Instead, they are
7869  * relative, summarized keys for algorithmic use computed by the driver or
7870  * underlying firmware considering a number of vendor specific factors.
7871  */
7872 enum qca_wlan_vendor_attr_rtplinst {
7873 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
7874 
7875 	/* Primary channel number (u8).
7876 	 * Note: If both the driver and user space application support the
7877 	 * 6 GHz band, this attribute is deprecated and
7878 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
7879 	 * maintain backward compatibility,
7880 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
7881 	 * driver or user space application or both do not support the 6 GHz
7882 	 * band.
7883 	 */
7884 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
7885 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
7886 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
7887 	/* Representative Tx power in dBm (s32) with emphasis on range. */
7888 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
7889 	/* Primary channel center frequency (u32) in MHz */
7890 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
7891 
7892 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
7893 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
7894 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
7895 };
7896 
7897 /**
7898  * enum qca_wlan_vendor_attr_mac - Used by the vendor command
7899  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7900  *
7901  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
7902  *  array of nested values as per attributes in
7903  *  enum qca_wlan_vendor_attr_mac_mode_info.
7904  */
7905 enum qca_wlan_vendor_attr_mac {
7906 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
7907 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
7908 
7909 	/* keep last */
7910 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
7911 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
7912 		QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
7913 };
7914 
7915 /**
7916  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
7917  * WiFi netdev interface on a respective MAC. Used by the attribute
7918  * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
7919  *
7920  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
7921  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
7922  *  the connected Wi-Fi interface(u32).
7923  */
7924 enum qca_wlan_vendor_attr_mac_iface_info {
7925 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
7926 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
7927 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
7928 
7929 	/* keep last */
7930 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
7931 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
7932 		QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
7933 };
7934 
7935 /**
7936  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
7937  *  Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
7938  *  vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
7939  *
7940  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
7941  *  MAC (u32)
7942  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
7943  *  at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
7944  *  in enum nl80211_band.
7945  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
7946  * interfaces associated with this MAC. Represented by enum
7947  * qca_wlan_vendor_attr_mac_iface_info.
7948  */
7949 enum qca_wlan_vendor_attr_mac_info {
7950 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
7951 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
7952 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
7953 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
7954 
7955 	/* keep last */
7956 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
7957 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
7958 		QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
7959 
7960 };
7961 
7962 /**
7963  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
7964  * to get thermal status from driver/firmware.
7965  * enum values are used for NL attributes encapsulated inside
7966  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
7967  *
7968  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
7969  * of a thermal level in Celsius. u32 size.
7970  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
7971  * of a thermal level in Celsius. u32 size.
7972  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
7973  * thermal level in milliseconds. u32 size.
7974  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
7975  * of times the temperature crossed into the temperature range defined by the
7976  * thermal level from both higher and lower directions. u32 size.
7977  */
7978 enum qca_wlan_vendor_attr_thermal_stats {
7979 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
7980 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
7981 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
7982 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
7983 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
7984 
7985 	/* keep last */
7986 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
7987 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
7988 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
7989 };
7990 
7991 /**
7992  * enum he_fragmentation_val - HE fragmentation support values
7993  * Indicates level of dynamic fragmentation that is supported by
7994  * a STA as a recipient.
7995  * HE fragmentation values are defined as per 11ax spec and are used in
7996  * HE capability IE to advertise the support. These values are validated
7997  * in the driver to check the device capability and advertised in the HE
7998  * capability element.
7999  *
8000  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8001  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8002  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
8003  *	within an A-MPDU that is not an S-MPDU.
8004  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8005  *	contained within an MPDU or S-MPDU and support for up to one dynamic
8006  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
8007  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8008  *	MPDU or S-MPDU.
8009  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8010  *	contained within an MPDU or S-MPDU and support for multiple dynamic
8011  *	fragments for each MSDU and for each A-MSDU if supported by the
8012  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8013  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8014  */
8015 enum he_fragmentation_val {
8016 	HE_FRAG_DISABLE,
8017 	HE_FRAG_LEVEL1,
8018 	HE_FRAG_LEVEL2,
8019 	HE_FRAG_LEVEL3,
8020 };
8021 
8022 /**
8023  * enum he_mcs_config - HE MCS support configuration
8024  *
8025  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8026  * These values are used in driver to configure the HE MCS map to advertise
8027  * Tx/Rx MCS map in HE capability and these values are applied for all the
8028  * streams supported by the device. To configure MCS for different bandwidths,
8029  * vendor command needs to be sent using this attribute with appropriate value.
8030  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8031  * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
8032  * for HE_160_MCS0_11 send this command using HE MCS config attribute with
8033  * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
8034  *
8035  * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
8036  * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
8037  * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
8038  * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
8039  * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
8040  * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
8041  * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
8042  * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
8043  * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
8044  */
8045 enum he_mcs_config {
8046 	HE_80_MCS0_7 = 0,
8047 	HE_80_MCS0_9 = 1,
8048 	HE_80_MCS0_11 = 2,
8049 	HE_160_MCS0_7 = 4,
8050 	HE_160_MCS0_9 = 5,
8051 	HE_160_MCS0_11 = 6,
8052 	HE_80p80_MCS0_7 = 8,
8053 	HE_80p80_MCS0_9 = 9,
8054 	HE_80p80_MCS0_11 = 10,
8055 };
8056 
8057 /**
8058  * enum qca_wlan_ba_session_config - BA session configuration
8059  *
8060  * Indicates the configuration values for BA session configuration attribute.
8061  *
8062  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8063  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8064  */
8065 enum qca_wlan_ba_session_config {
8066 	QCA_WLAN_ADD_BA = 1,
8067 	QCA_WLAN_DELETE_BA = 2,
8068 };
8069 
8070 /**
8071  * enum qca_wlan_ac_type - access category type
8072  *
8073  * Indicates the access category type value.
8074  *
8075  * @QCA_WLAN_AC_BE: BE access category
8076  * @QCA_WLAN_AC_BK: BK access category
8077  * @QCA_WLAN_AC_VI: VI access category
8078  * @QCA_WLAN_AC_VO: VO access category
8079  * @QCA_WLAN_AC_ALL: All ACs
8080  */
8081 enum qca_wlan_ac_type {
8082 	QCA_WLAN_AC_BE = 0,
8083 	QCA_WLAN_AC_BK = 1,
8084 	QCA_WLAN_AC_VI = 2,
8085 	QCA_WLAN_AC_VO = 3,
8086 	QCA_WLAN_AC_ALL = 4,
8087 };
8088 
8089 /**
8090  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8091  *
8092  * Indicates the HE LTF configuration value.
8093  *
8094  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
8095  * the mandatory HE-LTF based on the GI setting
8096  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8097  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8098  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8099  */
8100 enum qca_wlan_he_ltf_cfg {
8101 	QCA_WLAN_HE_LTF_AUTO = 0,
8102 	QCA_WLAN_HE_LTF_1X = 1,
8103 	QCA_WLAN_HE_LTF_2X = 2,
8104 	QCA_WLAN_HE_LTF_4X = 3,
8105 };
8106 
8107 /**
8108  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8109  *
8110  * Indicates the HE trigger frame MAC padding duration value.
8111  *
8112  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8113  * process the trigger frame.
8114  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8115  * trigger frame.
8116  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8117  * trigger frame.
8118  */
8119 enum qca_wlan_he_mac_padding_dur {
8120 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8121 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8122 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8123 };
8124 
8125 /**
8126  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8127  *
8128  * Indicates the HE Operating mode control channel width setting value.
8129  *
8130  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8131  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8132  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8133  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8134  */
8135 enum qca_wlan_he_om_ctrl_ch_bw {
8136 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8137 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8138 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8139 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8140 };
8141 
8142 /**
8143  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8144  *
8145  * Indicates the frame types to use for keep alive data.
8146  *
8147  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8148  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8149  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8150  */
8151 enum qca_wlan_keep_alive_data_type {
8152 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8153 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
8154 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8155 };
8156 
8157 /**
8158  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8159  * HE operating mode control transmit request. These attributes are
8160  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8161  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8162  *
8163  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8164  * indicates the maximum number of spatial streams, NSS, that the STA
8165  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8166  * and is set to NSS - 1.
8167  *
8168  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8169  * indicates the operating channel width supported by the STA for both
8170  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8171  *
8172  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8173  * indicates the all trigger based UL MU operations by the STA.
8174  * 0 - UL MU operations are enabled by the STA.
8175  * 1 - All triggered UL MU transmissions are suspended by the STA.
8176  *
8177  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8178  * indicates the maximum number of space-time streams, NSTS, that
8179  * the STA supports in transmission and is set to NSTS - 1.
8180  *
8181  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8182  * combined with the UL MU Disable subfield and the recipient's setting
8183  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8184  * capabilities to determine which HE TB PPDUs are possible by the
8185  * STA to transmit.
8186  * 0 - UL MU data operations are enabled by the STA.
8187  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8188  * bit is not set, else UL MU Tx is suspended.
8189  *
8190  */
8191 enum qca_wlan_vendor_attr_he_omi_tx {
8192 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8193 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8194 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8195 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8196 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
8197 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
8198 
8199 	/* keep last */
8200 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8201 	QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8202 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8203 };
8204 
8205 /**
8206  * enum qca_wlan_vendor_phy_mode - Different PHY modes
8207  * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8208  *
8209  * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8210  * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8211  * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8212  * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8213  * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8214  * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8215  * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8216  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8217  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8218  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8219  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8220  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8221  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8222  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8223  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8224  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8225  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8226  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8227  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8228  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8229  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8230  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8231  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8232  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8233  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8234  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8235  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8236  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8237  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8238  */
8239 enum qca_wlan_vendor_phy_mode {
8240 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8241 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8242 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8243 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8244 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8245 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8246 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8247 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8248 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8249 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8250 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8251 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8252 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8253 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8254 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8255 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8256 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8257 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8258 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8259 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8260 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8261 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8262 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8263 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8264 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8265 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8266 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8267 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8268 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8269 };
8270 
8271 /* Attributes for data used by
8272  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8273  */
8274 enum qca_wlan_vendor_attr_wifi_test_config {
8275 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8276 	/* 8-bit unsigned value to configure the driver to enable/disable
8277 	 * WMM feature. This attribute is used to configure testbed device.
8278 	 * 1-enable, 0-disable
8279 	 */
8280 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8281 
8282 	/* 8-bit unsigned value to configure the driver to accept/reject
8283 	 * the addba request from peer. This attribute is used to configure
8284 	 * the testbed device.
8285 	 * 1-accept addba, 0-reject addba
8286 	 */
8287 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8288 
8289 	/* 8-bit unsigned value to configure the driver to send or not to
8290 	 * send the addba request to peer.
8291 	 * This attribute is used to configure the testbed device.
8292 	 * 1-send addba, 0-do not send addba
8293 	 */
8294 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8295 
8296 	/* 8-bit unsigned value to indicate the HE fragmentation support.
8297 	 * Uses enum he_fragmentation_val values.
8298 	 * This attribute is used to configure the testbed device to
8299 	 * allow the advertised hardware capabilities to be downgraded
8300 	 * for testing purposes.
8301 	 */
8302 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8303 
8304 	/* 8-bit unsigned value to indicate the HE MCS support.
8305 	 * Uses enum he_mcs_config values.
8306 	 * This attribute is used to configure the testbed device to
8307 	 * allow the advertised hardware capabilities to be downgraded
8308 	 * for testing purposes.
8309 	 */
8310 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8311 
8312 	/* 8-bit unsigned value to configure the driver to allow or not to
8313 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8314 	 * This attribute is used to configure the testbed device.
8315 	 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
8316 	 */
8317 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8318 
8319 	/* 8-bit unsigned value to configure the driver to add a
8320 	 * new BA session or delete the existing BA session for
8321 	 * given TID. ADDBA command uses the buffer size and tid
8322 	 * configuration if user specifies the values else default
8323 	 * value for buffer size is used for all tids if the tid
8324 	 * also not specified. For DEL_BA command TID value is
8325 	 * required to process the command.
8326 	 * Uses enum qca_wlan_ba_session_config values.
8327 	 * This attribute is used to configure the testbed device.
8328 	 */
8329 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
8330 
8331 	/* 16-bit unsigned value to configure the buffer size in addba
8332 	 * request and response frames.
8333 	 * This attribute is used to configure the testbed device.
8334 	 * The range of the value is 0 to 256.
8335 	 */
8336 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
8337 
8338 	/* 8-bit unsigned value to configure the buffer size in addba
8339 	 * request and response frames.
8340 	 * This attribute is used to configure the testbed device.
8341 	 */
8342 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
8343 
8344 	/* 8-bit unsigned value to configure the no ack policy.
8345 	 * To configure no ack policy, access category value
8346 	 * is required to process the command.
8347 	 * This attribute is used to configure the testbed device.
8348 	 * 1 - enable no ack, 0 - disable no ack
8349 	 */
8350 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
8351 
8352 	/* 8-bit unsigned value to configure the AC for no ack policy
8353 	 * This attribute is used to configure the testbed device.
8354 	 * uses the enum qca_wlan_ac_type values
8355 	 */
8356 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
8357 
8358 	/* 8-bit unsigned value to configure the HE LTF
8359 	 * This attribute is used to configure the testbed device.
8360 	 * Uses the enum qca_wlan_he_ltf_cfg values.
8361 	 */
8362 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
8363 
8364 	/* 8-bit unsigned value to configure the tx beamformee.
8365 	 * This attribute is used to configure the testbed device.
8366 	 * 1 - enable, 0 - disable.
8367 	 */
8368 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
8369 
8370 	/* 8-bit unsigned value to configure the tx beamformee number of
8371 	 * space-time streams.
8372 	 * This attribute is used to configure the testbed device.
8373 	 * The range of the value is 0 to 8
8374 	 */
8375 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
8376 
8377 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
8378 	 * This attribute is used to configure the testbed device.
8379 	 * Uses the enum qca_wlan_ac_type values.
8380 	 */
8381 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
8382 
8383 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
8384 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
8385 	 * is required to process the command.
8386 	 * This attribute is used to configure the testbed device.
8387 	 */
8388 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
8389 
8390 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
8391 	 * given AC.
8392 	 * To configure MU EDCA ECW min value, MU EDCA access category value
8393 	 * is required to process the command.
8394 	 * This attribute is used to configure the testbed device.
8395 	 */
8396 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
8397 
8398 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
8399 	 * given AC.
8400 	 * To configure MU EDCA ECW max value, MU EDCA access category value
8401 	 * is required to process the command.
8402 	 * This attribute is used to configure the testbed device.
8403 	 */
8404 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
8405 
8406 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
8407 	 * To configure MU EDCA timer value, MU EDCA access category value
8408 	 * is required to process the command.
8409 	 * This attribute is used to configure the testbed device.
8410 	 */
8411 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
8412 
8413 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
8414 	 * duration.
8415 	 * This attribute is used to configure the testbed device.
8416 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
8417 	 */
8418 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
8419 
8420 	/* 8-bit unsigned value to override the MU EDCA params to defaults
8421 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
8422 	 * the default values else use the MU EDCA params from AP beacon.
8423 	 * This attribute is used to configure the testbed device.
8424 	 * 1 - enable override, 0 - disable.
8425 	 */
8426 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
8427 
8428 	/* 8-bit unsigned value to configure the support for receiving
8429 	 * an MPDU that contains an operating mode control subfield.
8430 	 * This attribute is used to configure the testbed device.
8431 	 * 1-enable, 0-disable.
8432 	 */
8433 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
8434 
8435 	/* Nested attribute values required to setup the TWT session.
8436 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
8437 	 * information to set up the session. It contains broadcast flags,
8438 	 * set_up flags, trigger value, flow type, flow ID, wake interval
8439 	 * exponent, protection, target wake time, wake duration, wake interval
8440 	 * mantissa. These nested attributes are used to setup a host triggered
8441 	 * TWT session.
8442 	 */
8443 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
8444 
8445 	/* This nested attribute is used to terminate the current TWT session.
8446 	 * It does not currently carry any attributes.
8447 	 */
8448 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
8449 
8450 	/* This nested attribute is used to suspend the current TWT session.
8451 	 * It does not currently carry any attributes.
8452 	 */
8453 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
8454 
8455 	/* Nested attribute values to indicate the request for resume.
8456 	 * This attribute is used to resume the TWT session.
8457 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
8458 	 * parameters required to resume the TWT session.
8459 	 */
8460 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
8461 
8462 	/* 8-bit unsigned value to set the HE operating mode control
8463 	 * (OM CTRL) Channel Width subfield.
8464 	 * The Channel Width subfield indicates the operating channel width
8465 	 * supported by the STA for both reception and transmission.
8466 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
8467 	 * This setting is cleared with the
8468 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8469 	 * flag attribute to reset defaults.
8470 	 * This attribute is used to configure the testbed device.
8471 	 */
8472 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
8473 
8474 	/* 8-bit unsigned value to configure the number of spatial
8475 	 * streams in HE operating mode control field.
8476 	 * This setting is cleared with the
8477 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8478 	 * flag attribute to reset defaults.
8479 	 * This attribute is used to configure the testbed device.
8480 	 */
8481 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
8482 
8483 	/* Flag attribute to configure the UL MU disable bit in
8484 	 * HE operating mode control field.
8485 	 * This setting is cleared with the
8486 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8487 	 * flag attribute to reset defaults.
8488 	 * This attribute is used to configure the testbed device.
8489 	 */
8490 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
8491 
8492 	/* Flag attribute to clear the previously set HE operating mode
8493 	 * control field configuration.
8494 	 * This attribute is used to configure the testbed device to reset
8495 	 * defaults to clear any previously set HE operating mode control
8496 	 * field configuration.
8497 	 */
8498 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
8499 
8500 	/* 8-bit unsigned value to configure HE single user PPDU
8501 	 * transmission. By default this setting is disabled and it
8502 	 * is disabled in the reset defaults of the device configuration.
8503 	 * This attribute is used to configure the testbed device.
8504 	 * 1-enable, 0-disable
8505 	 */
8506 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
8507 
8508 	/* 8-bit unsigned value to configure action frame transmission
8509 	 * in HE trigger based PPDU transmission.
8510 	 * By default this setting is disabled and it is disabled in
8511 	 * the reset defaults of the device configuration.
8512 	 * This attribute is used to configure the testbed device.
8513 	 * 1-enable, 0-disable
8514 	 */
8515 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
8516 
8517 	/* Nested attribute to indicate HE operating mode control field
8518 	 * transmission. It contains operating mode control field Nss,
8519 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
8520 	 * These nested attributes are used to send HE operating mode control
8521 	 * with configured values.
8522 	 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
8523 	 * This attribute is used to configure the testbed device.
8524 	 */
8525 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
8526 
8527 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
8528 	 * support for the reception of a frame that carries an HE variant
8529 	 * HT Control field.
8530 	 * This attribute is used to configure the testbed device.
8531 	 * 1-enable, 0-disable
8532 	 */
8533 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
8534 
8535 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
8536 	 * This attribute is used to configure the testbed device.
8537 	 * 1-enable, 0-disable
8538 	 */
8539 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
8540 
8541 	/* 8-bit unsigned value to configure HE testbed defaults.
8542 	 * This attribute is used to configure the testbed device.
8543 	 * 1-set the device HE capabilities to testbed defaults.
8544 	 * 0-reset the device HE capabilities to supported config.
8545 	 */
8546 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
8547 
8548 	/* 8-bit unsigned value to configure twt request support.
8549 	 * This attribute is used to configure the testbed device.
8550 	 * 1-enable, 0-disable.
8551 	 */
8552 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
8553 
8554 	/* 8-bit unsigned value to configure protection for Management
8555 	 * frames when PMF is enabled for the association.
8556 	 * This attribute is used to configure the testbed device.
8557 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
8558 	 */
8559 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
8560 
8561 	/* Flag attribute to inject Disassociation frame to the connected AP.
8562 	 * This attribute is used to configure the testbed device.
8563 	 */
8564 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
8565 
8566 	/* 8-bit unsigned value to configure an override for the RSNXE Used
8567 	 * subfield in the MIC control field of the FTE in FT Reassociation
8568 	 * Request frame.
8569 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
8570 	 * This attribute is used to configure the testbed device.
8571 	 * This attribute can be configured when STA is in disconnected or
8572 	 * associated state and the configuration is valid until the next
8573 	 * disconnection.
8574 	 */
8575 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
8576 
8577 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
8578 	 * Switch Announcement) when STA is in connected state.
8579 	 * 0 - Default behavior, 1 - Ignore CSA.
8580 	 * This attribute is used to configure the testbed device.
8581 	 * This attribute can be configured when STA is in disconnected or
8582 	 * associated state and the configuration is valid until the next
8583 	 * disconnection.
8584 	 */
8585 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
8586 
8587 	/* Nested attribute values required to configure OCI (Operating Channel
8588 	 * Information). Attributes defined in enum
8589 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
8590 	 * This attribute is used to configure the testbed device.
8591 	 * This attribute can be configured when STA is in disconnected or
8592 	 * associated state and the configuration is valid until the next
8593 	 * disconnection.
8594 	 */
8595 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
8596 
8597 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
8598 	 * Query timeout. If this configuration is enabled STA shall not send
8599 	 * Deauthentication frmae when SA Query times out (mainly, after a
8600 	 * channel switch when OCV is enabled).
8601 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
8602 	 * This attribute is used to configure the testbed device.
8603 	 * This attribute can be configured only when STA is in associated state
8604 	 * and the configuration is valid until the disconnection.
8605 	 */
8606 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
8607 
8608 	/* 8-bit unsigned value to configure the driver/firmware to start or
8609 	 * stop transmitting FILS discovery frames.
8610 	 * 0 - Stop transmitting FILS discovery frames
8611 	 * 1 - Start transmitting FILS discovery frames
8612 	 * This attribute is used to configure the testbed device.
8613 	 * This attribute can be configured only in AP mode and the
8614 	 * configuration is valid until AP restart.
8615 	 */
8616 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
8617 
8618 	/* 8-bit unsigned value to configure the driver/firmware to enable or
8619 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
8620 	 * information field.
8621 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
8622 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
8623 	 * This attribute is used to configure the testbed device.
8624 	 */
8625 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
8626 
8627 	/* 16-bit unsigned value to configure the driver with a specific BSS
8628 	 * max idle period to advertise in the BSS Max Idle Period element
8629 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
8630 	 * This attribute is used to configure the testbed device.
8631 	 */
8632 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
8633 
8634 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
8635 	 * for data transmission.
8636 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
8637 	 * This attribute is used to configure the testbed device.
8638 	 */
8639 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
8640 
8641 	/* 8-bit unsigned value to configure the driver to disable data and
8642 	 * management response frame transmission to test the BSS max idle
8643 	 * feature.
8644 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
8645 	 * This attribute is used to configure the testbed device.
8646 	 */
8647 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
8648 
8649 	/* 8-bit unsigned value to configure the driver/firmware to enable or
8650 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
8651 	 * information field.
8652 	 * 0 - Disable Punctured Preamble Rx subfield
8653 	 * 1 - Enable Punctured Preamble Rx subfield
8654 	 * This attribute is used to configure the testbed device.
8655 	 */
8656 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
8657 
8658 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
8659 	 * requirement mismatch for 6 GHz connection.
8660 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
8661 	 * This attribute is used to configure the testbed device.
8662 	 */
8663 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
8664 
8665 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
8666 	 * connection with all security modes.
8667 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
8668 	 * modes.
8669 	 * This attribute is used for testing purposes.
8670 	 */
8671 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
8672 
8673 	/* 8-bit unsigned value to configure the driver to transmit data with
8674 	 * ER SU PPDU type.
8675 	 *
8676 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
8677 	 * This attribute is used for testing purposes.
8678 	 */
8679 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
8680 
8681 	/* 8-bit unsigned value to configure the driver to use Data or
8682 	 * Management frame type for keep alive data.
8683 	 * Uses enum qca_wlan_keep_alive_data_type values.
8684 	 *
8685 	 * This attribute is used for testing purposes.
8686 	 */
8687 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
8688 
8689 	/* 8-bit unsigned value to configure the driver to use scan request
8690 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
8691 	 * driver saves this configuration and applies this setting to all user
8692 	 * space scan requests until the setting is cleared. If this
8693 	 * configuration is set, the driver uses the BSSID value from the scan
8694 	 * request to set the RA(A1) in the Probe Request frames during the
8695 	 * scan.
8696 	 *
8697 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
8698 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
8699 	 * This attribute is used for testing purposes.
8700 	 */
8701 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
8702 
8703 	/* 8-bit unsigned value to configure the driver to enable/disable the
8704 	 * BSS max idle period support.
8705 	 *
8706 	 * 0 - Disable the BSS max idle support.
8707 	 * 1 - Enable the BSS max idle support.
8708 	 * This attribute is used for testing purposes.
8709 	 */
8710 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
8711 
8712 	/* 8-bit unsigned value to configure the driver/firmware to enable or
8713 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
8714 	 * capabilities information field.
8715 	 * 0 - Disable Rx control frame to MultiBSS subfield
8716 	 * 1 - Enable Rx control frame to MultiBSS subfield
8717 	 * This attribute is used to configure the testbed device.
8718 	 */
8719 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
8720 
8721 	/* 8-bit unsigned value to configure the driver/firmware to enable or
8722 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
8723 	 * information field.
8724 	 * 0 - Disable Broadcast TWT support subfield
8725 	 * 1 - Enable Broadcast TWT support subfield
8726 	 * This attribute is used to configure the testbed device.
8727 	 */
8728 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
8729 
8730 	/* keep last */
8731 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
8732 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
8733 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
8734 };
8735 
8736 /**
8737  * enum qca_wlan_twt_operation - Operation of the config TWT request
8738  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
8739  * The response for the respective operations can be either synchronous or
8740  * asynchronous (wherever specified). If synchronous, the response to this
8741  * operation is obtained in the corresponding vendor command reply to the user
8742  * space. For the asynchronous case the response is obtained as an event with
8743  * the same operation type.
8744  *
8745  * Drivers shall support either of these modes but not both simultaneously.
8746  * This support for asynchronous mode is advertised through the flag
8747  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
8748  * the driver shall support synchronous mode.
8749  *
8750  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
8751  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8752  * qca_wlan_vendor_attr_twt_setup. Depending upon the
8753  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
8754  * synchronous or asynchronous operation.
8755  *
8756  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
8757  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8758  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
8759  *
8760  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
8761  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8762  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
8763  * This terminate can either get triggered by the user space or can as well be
8764  * a notification from the firmware if it initiates a terminate.
8765  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8766  * the request from user space can either be a synchronous or asynchronous
8767  * operation.
8768  *
8769  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
8770  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8771  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
8772  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
8773  * this is either a synchronous or asynchronous operation.
8774  *
8775  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
8776  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
8777  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
8778  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
8779  * request.
8780  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8781  * capability, this is either a synchronous or asynchronous operation.
8782  *
8783  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
8784  * combination of suspend and resume in a single request. Required parameters
8785  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
8786  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
8787  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
8788  * capability, this is either a synchronous or asynchronous operation.
8789  *
8790  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
8791  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
8792  * session is setup. It's a synchronous operation.
8793  *
8794  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
8795  * Valid only after the TWT session is setup. It's a synchronous operation.
8796  *
8797  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
8798  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
8799  * operation.
8800  *
8801  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is
8802  * ready for a new TWT session setup after it issued a twt teardown.
8803  */
8804 enum qca_wlan_twt_operation {
8805 	QCA_WLAN_TWT_SET = 0,
8806 	QCA_WLAN_TWT_GET = 1,
8807 	QCA_WLAN_TWT_TERMINATE = 2,
8808 	QCA_WLAN_TWT_SUSPEND = 3,
8809 	QCA_WLAN_TWT_RESUME = 4,
8810 	QCA_WLAN_TWT_NUDGE = 5,
8811 	QCA_WLAN_TWT_GET_STATS = 6,
8812 	QCA_WLAN_TWT_CLEAR_STATS = 7,
8813 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
8814 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
8815 };
8816 
8817 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
8818  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
8819  *
8820  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
8821  * u8 attribute. Specify the TWT operation of this request. Possible values
8822  * are defined in enum qca_wlan_twt_operation. The parameters for the
8823  * respective operation is specified through
8824  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
8825  *
8826  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
8827  * parameters configured for TWT. These parameters are represented by
8828  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume
8829  * or enum qca_wlan_vendor_attr_twt_stats based on the operation.
8830  */
8831 enum qca_wlan_vendor_attr_config_twt {
8832 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
8833 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
8834 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
8835 
8836 	/* keep last */
8837 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
8838 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
8839 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
8840 };
8841 
8842 /**
8843  * qca_wlan_twt_setup_state: Represents the TWT session states.
8844  *
8845  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
8846  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
8847  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
8848  */
8849 enum qca_wlan_twt_setup_state {
8850 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
8851 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
8852 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
8853 };
8854 
8855 /**
8856  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
8857  * TWT (Target Wake Time) setup request. These attributes are sent as part of
8858  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
8859  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
8860  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
8861  *
8862  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
8863  * Disable (flag attribute not present) - Individual TWT
8864  * Enable (flag attribute present) - Broadcast TWT.
8865  * Individual means the session is between the STA and the AP.
8866  * This session is established using a separate negotiation between
8867  * STA and AP.
8868  * Broadcast means the session is across multiple STAs and an AP. The
8869  * configuration parameters are announced in Beacon frames by the AP.
8870  * This is used in
8871  * 1. TWT SET Request and Response
8872  * 2. TWT GET Response
8873  *
8874  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
8875  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
8876  * specify the TWT request type. This is used in TWT SET operation.
8877  *
8878  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
8879  * Enable (flag attribute present) - TWT with trigger support.
8880  * Disable (flag attribute not present) - TWT without trigger support.
8881  * Trigger means the AP will send the trigger frame to allow STA to send data.
8882  * Without trigger, the STA will wait for the MU EDCA timer before
8883  * transmitting the data.
8884  * This is used in
8885  * 1. TWT SET Request and Response
8886  * 2. TWT GET Response
8887  *
8888  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
8889  * 0 - Announced TWT - In this mode, STA may skip few service periods to
8890  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
8891  * NULL frame to AP.
8892  * 1 - Unannounced TWT - The STA will wakeup during every SP.
8893  * This is a required parameter for
8894  * 1. TWT SET Request and Response
8895  * 2. TWT GET Response
8896  *
8897  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
8898  * Flow ID is the unique identifier for each TWT session.
8899  * If not provided then dialog ID will be set to zero.
8900  * This is an optional parameter for
8901  * 1. TWT SET Request and Response
8902  * 2. TWT GET Request and Response
8903  * 3. TWT TERMINATE Request and Response
8904  * 4. TWT SUSPEND Request and Response
8905  * Flow Id values from 0 to 254 represent a single TWT session
8906  * Flow ID value of 255 represents all twt sessions for the following
8907  * 1. TWT TERMINATE Request and Response
8908  * 2. TWT SUSPEND Request and Response
8909  * 4. TWT CLEAR STATISTICS request
8910  * 5. TWT GET STATISTICS request and response
8911  * If an invalid dialog id is provided, status
8912  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
8913  *
8914  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
8915  * This attribute (exp) is used along with the mantissa to derive the
8916  * wake interval using the following formula:
8917  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
8918  * Wake interval is the interval between 2 successive SP.
8919  * This is a required parameter for
8920  * 1. TWT SET Request and Response
8921  * 2. TWT GET Response
8922  *
8923  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
8924  * Enable (flag attribute present) - Protection required.
8925  * Disable (flag attribute not present) - Protection not required.
8926  * If protection is enabled, then the AP will use protection
8927  * mechanism using RTS/CTS to self to reserve the airtime.
8928  * This is used in
8929  * 1. TWT SET Request and Response
8930  * 2. TWT GET Response
8931  *
8932  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
8933  * This attribute is used as the SP offset which is the offset from
8934  * TSF after which the wake happens. The units are in microseconds. If
8935  * this attribute is not provided, then the value will be set to zero.
8936  * This is an optional parameter for
8937  * 1. TWT SET Request and Response
8938  * 2. TWT GET Response
8939  *
8940  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
8941  * This is the duration of the service period. This is specified as
8942  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
8943  * This is a required parameter for
8944  * 1. TWT SET Request and Response
8945  * 2. TWT GET Response
8946  *
8947  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
8948  * This attribute is used to configure wake interval mantissa.
8949  * The units are in TU.
8950  * This is a required parameter for
8951  * 1. TWT SET Request and Response
8952  * 2. TWT GET Response
8953  *
8954  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
8955  * This field is applicable for TWT response only.
8956  * This contains status values in enum qca_wlan_vendor_twt_status
8957  * and is passed to the userspace. This is used in TWT SET operation.
8958  * This is a required parameter for
8959  * 1. TWT SET Response
8960  * 2. TWT TERMINATE Response
8961  * 3. TWT SUSPEND Response
8962  * 4. TWT RESUME Response
8963  * 5. TWT NUDGE Response
8964  *
8965  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
8966  * This field is applicable for TWT response only.
8967  * This field contains response type from the TWT responder and is
8968  * passed to the userspace. The values for this field are defined in
8969  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
8970  * response.
8971  *
8972  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
8973  * In TWT setup command this field contains absolute TSF that will
8974  * be used by TWT requester during setup.
8975  * In TWT response this field contains absolute TSF value of the
8976  * wake time received from the TWT responder and is passed to
8977  * the userspace.
8978  * This is an optional parameter for
8979  * 1. TWT SET Request
8980  * This is a required parameter for
8981  * 1. TWT SET Response
8982  * 2. TWT GET Response
8983  *
8984  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
8985  * Enable (flag attribute present) - Indicates that the TWT responder
8986  * supports reception of TWT information frame from the TWT requestor.
8987  * Disable (flag attribute not present) - Indicates that the responder
8988  * doesn't support reception of TWT information frame from requestor.
8989  * This is used in
8990  * 1. TWT SET Response
8991  * 2. TWT GET Response
8992  *
8993  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
8994  * Represents the MAC address of the peer for which the TWT session
8995  * is being configured. This is used in AP mode to represent the respective
8996  * client
8997  * In AP mode, this is a required parameter in response for
8998  * 1. TWT SET
8999  * 2. TWT GET
9000  * 3. TWT TERMINATE
9001  * 4. TWT SUSPEND
9002  * In STA mode, this is an optional parameter in request and response for
9003  * the above four TWT operations.
9004  * In AP mode, this is a required parameter in request for
9005  * 1. TWT GET
9006  * 2. TWT TERMINATE
9007  *
9008  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9009  * Minimum tolerance limit of wake interval parameter in microseconds.
9010  *
9011  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9012  * Maximum tolerance limit of wake interval parameter in microseconds.
9013  *
9014  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9015  * Minimum tolerance limit of wake duration parameter in microseconds.
9016  *
9017  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9018  * Maximum tolerance limit of wake duration parameter in microseconds.
9019  *
9020  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9021  * TWT state for the given dialog id. The values for this are represented
9022  * by enum qca_wlan_twt_setup_state.
9023  * This is obtained through TWT GET operation.
9024  *
9025  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9026  * This attribute is used to configure wake interval mantissa.
9027  * The unit is microseconds. This attribute, when specified, takes
9028  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9029  * This parameter is used for
9030  * 1. TWT SET Request and Response
9031  * 2. TWT GET Response
9032  *
9033  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9034  * This attribute is used to configure Broadcast TWT ID.
9035  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9036  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9037  * This parameter is used for
9038  * 1. TWT SET Request
9039  * 2. TWT TERMINATE Request
9040  *
9041  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9042  * This attribute is used to configure Broadcast TWT recommendation.
9043  * The Broadcast TWT Recommendation subfield contains a value that indicates
9044  * recommendations on the types of frames that are transmitted by TWT
9045  * scheduled STAs and scheduling AP during the broadcast TWT SP.
9046  * The allowed values are 0 - 3.
9047  * This parameter is used for
9048  * 1. TWT SET Request
9049  *
9050  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9051  * This attribute is used to configure Broadcast TWT Persistence.
9052  * The Broadcast TWT Persistence subfield indicates the number of
9053  * TBTTs during which the Broadcast TWT SPs corresponding to this
9054  * broadcast TWT Parameter set are present. The number of beacon intervals
9055  * during which the Broadcast TWT SPs are present is equal to the value in the
9056  * Broadcast TWT Persistence subfield plus 1 except that the value 255
9057  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9058  * This parameter is used for
9059  * 1. TWT SET Request
9060  *
9061  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9062  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9063  * from TWT response frame.
9064  * This parameter is used for
9065  * 1. TWT SET Response
9066  * 2. TWT GET Response
9067  */
9068 enum qca_wlan_vendor_attr_twt_setup {
9069 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9070 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9071 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9072 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9073 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9074 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9075 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9076 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9077 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9078 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9079 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9080 
9081 	/* TWT Response only attributes */
9082 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9083 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9084 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9085 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9086 
9087 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
9088 
9089 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9090 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9091 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9092 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9093 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
9094 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9095 
9096 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9097 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9098 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9099 
9100 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9101 
9102 	/* keep last */
9103 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9104 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9105 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9106 };
9107 
9108 /**
9109  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9110  * TWT operation
9111  *
9112  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9113  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9114  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9115  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9116  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9117  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9118  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9119  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9120  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9121  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9122  * request/response frame
9123  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9124  * frame
9125  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9126  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9127  * unknown reason
9128  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9129  * suspend state
9130  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9131  * invalid IE in the received TWT frame
9132  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9133  * the responder are not in the specified range
9134  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9135  * session due to request from the responder. Used on the TWT_TERMINATE
9136  * notification from the firmware.
9137  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9138  * session due to roaming. Used on the TWT_TERMINATE notification from the
9139  * firmware.
9140  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9141  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
9142  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9143  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9144  * request due to roaming in progress.
9145  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9146  * setup request due to channel switch in progress.
9147  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9148  * request due to scan in progress.
9149  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9150  * terminate an existing TWT session on power save exit request from userspace.
9151  * Used on the TWT_TERMINATE notification from the driver/firmware.
9152  */
9153 enum qca_wlan_vendor_twt_status {
9154 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9155 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9156 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9157 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9158 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9159 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9160 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9161 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9162 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9163 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9164 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9165 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9166 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9167 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
9168 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9169 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9170 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9171 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
9172 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9173 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9174 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9175 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9176 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
9177 };
9178 
9179 /**
9180  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
9181  * TWT (Target Wake Time) resume request. These attributes are sent as part of
9182  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
9183  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9184  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9185  *
9186  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
9187  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9188  * These attributes are used as the SP offset which is the offset from TSF after
9189  * which the wake happens. The units are in microseconds. Please note that
9190  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9191  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9192  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9193  * will be set to zero.
9194  *
9195  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9196  * This attribute represents the next TWT subfield size.
9197  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9198  * and 4 for 64 bits.
9199  *
9200  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9201  * Flow ID is the unique identifier for each TWT session. This attribute
9202  * represents the respective TWT session to resume.
9203  * Flow Id values from 0 to 254 represent a single TWT session
9204  * Flow ID value of 255 represents all TWT sessions.
9205  * If an invalid dialog id is provided, status
9206  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9207  *
9208  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9209  * Represents the MAC address of the peer to which TWT Resume is
9210  * being sent. This is used in AP mode to represent the respective
9211  * client and is a required parameter. In STA mode, this is an optional
9212  * parameter
9213  *
9214  */
9215 enum qca_wlan_vendor_attr_twt_resume {
9216 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9217 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9218 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
9219 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9220 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9221 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
9222 
9223 	/* keep last */
9224 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9225 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9226 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9227 };
9228 
9229 /**
9230  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9231  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9232  * and resume in a single request. These attributes are sent as part of
9233  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9234  *
9235  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9236  * Flow ID is the unique identifier for each TWT session. This attribute
9237  * represents the respective TWT session to suspend and resume.
9238  *
9239  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9240  * Flow ID is the unique identifier for each TWT session. This attribute
9241  * represents the respective TWT session to suspend and resume.
9242  * Flow Id values from 0 to 254 represent a single TWT session
9243  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9244  * and response.
9245  * If an invalid dialog id is provided, status
9246  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9247  *
9248  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9249  * This attribute is used as the SP offset which is the offset from
9250  * TSF after which the wake happens. The units are in microseconds.
9251  *
9252  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9253  * This attribute represents the next TWT subfield size.
9254  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9255  * and 4 for 64 bits.
9256  *
9257  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9258  * Represents the MAC address of the peer to which TWT Suspend and Resume is
9259  * being sent. This is used in AP mode to represent the respective
9260  * client and is a required parameter. In STA mode, this is an optional
9261  * parameter.
9262  *
9263  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
9264  * This field contains absolute TSF value of the time at which twt
9265  * sesion will be resumed.
9266  */
9267 enum qca_wlan_vendor_attr_twt_nudge {
9268 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
9269 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
9270 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
9271 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
9272 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
9273 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
9274 
9275 	/* keep last */
9276 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
9277 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
9278 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
9279 };
9280 
9281 /**
9282  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
9283  * TWT (Target Wake Time) get statistics and clear statistics request.
9284  * These attributes are sent as part of
9285  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9286  *
9287  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
9288  * Flow ID is the unique identifier for each TWT session. This attribute
9289  * represents the respective TWT session for get and clear TWT statistics.
9290  * Flow Id values from 0 to 254 represent a single TWT session
9291  * Flow ID value of 255 represents all TWT sessions in
9292  * 1) TWT GET STATISTICS request and response
9293  * 2) TWT CLEAR STATISTICS request
9294  *
9295  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
9296  * Represents the MAC address of the peer for which TWT Statistics
9297  * is required.
9298  * In AP mode this is used to represent the respective
9299  * client and is a required parameter for
9300  * 1) TWT GET STATISTICS request and response
9301  * 2) TWT CLEAR STATISTICS request and response
9302  * In STA mode, this is an optional parameter.
9303  *
9304  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
9305  * This is the duration of the service period in microseconds.
9306  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9307  *
9308  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
9309  * Average of actual wake duration observed so far. Unit is microseconds.
9310  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9311  *
9312  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
9313  * Number of TWT service period elapsed so far.
9314  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9315  *
9316  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9317  * This is the minimum value of wake duration observed across
9318  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9319  * microseconds.
9320  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9321  *
9322  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9323  * This is the maximum value of wake duration observed across
9324  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9325  * microseconds.
9326  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9327  *
9328  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
9329  * Average number of MPDU's transmitted successfully across
9330  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9331  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9332  *
9333  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
9334  * Average number of MPDU's received successfully across
9335  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9336  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9337  *
9338  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
9339  * Average number of bytes transmitted successfully across
9340  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9341  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9342  *
9343  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
9344  * Average number of bytes received successfully across
9345  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9346  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9347  *
9348  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
9349  * Status of the TWT GET STATISTICS request.
9350  * This contains status values in enum qca_wlan_vendor_twt_status
9351  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9352  */
9353 enum qca_wlan_vendor_attr_twt_stats {
9354 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
9355 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
9356 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
9357 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
9358 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
9359 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
9360 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
9361 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
9362 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
9363 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
9364 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
9365 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
9366 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
9367 
9368 	/* keep last */
9369 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
9370 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
9371 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
9372 };
9373 
9374 /**
9375  * qca_wlan_twt_get_capa  - Represents the Bitmap of TWT capabilities
9376  * supported by the device and peer.
9377  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
9378  *
9379  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
9380  * TWT non-scheduling STA. This capability is advertised in the HE
9381  * capability/Extended capabilities information element in the
9382  * Association request frame by the device.
9383  *
9384  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
9385  * by the TWT scheduling AP. This capability is advertised in the extended
9386  * capabilities/HE capabilities information element.
9387  *
9388  * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
9389  * for the broadcast TWT functionality. On responder side, this	indicates
9390  * support for the role of broadcast TWT scheduling functionality. This
9391  * capability is advertised in the HE capabilities information element.
9392  *
9393  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
9394  * This capability is advertised in the HE capabilities information element.
9395  *
9396  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
9397  * that it mandates the associated HE STAs to support TWT. This capability is
9398  * advertised by AP in the HE Operation Parameters field of the HE operation
9399  * information element.
9400  */
9401 enum qca_wlan_twt_capa {
9402 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
9403 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
9404 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
9405 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
9406 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
9407 
9408 };
9409 
9410 /**
9411  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
9412  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
9413  * operation.
9414  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
9415  * Represents the MAC address of the peer for which the TWT capabilities
9416  * are being queried. This is used in AP mode to represent the respective
9417  * client. In STA mode, this is an optional parameter.
9418  *
9419  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
9420  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
9421  * enum qca_wlan_twt_capa.
9422  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
9423  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
9424  * enum qca_wlan_twt_capa.
9425  */
9426 enum qca_wlan_vendor_attr_twt_capability {
9427 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
9428 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
9429 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
9430 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
9431 
9432 	/* keep last */
9433 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
9434 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
9435 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
9436 };
9437 
9438 /**
9439  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
9440  * the TWT responder
9441  *
9442  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
9443  * parameters that are different from TWT requesting STA suggested
9444  * or demanded TWT parameters
9445  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
9446  * parameters that are different from TWT requesting STA TWT suggested
9447  * or demanded parameters
9448  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
9449  * setup
9450  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
9451  * setup.
9452  */
9453 enum qca_wlan_vendor_twt_setup_resp_type {
9454 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
9455 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
9456 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
9457 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
9458 };
9459 
9460 /**
9461  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
9462  * Represents the setup type being requested for TWT.
9463  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
9464  * parameters but relying on AP to fill the parameters during the negotiation.
9465  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
9466  * values which the AP may accept or AP may provide alternative parameters
9467  * which the STA may accept.
9468  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
9469  * alternate parameters than the requested ones.
9470  */
9471 enum qca_wlan_vendor_twt_setup_req_type {
9472 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
9473 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
9474 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
9475 };
9476 
9477 /**
9478  * enum qca_wlan_throughput_level - Current throughput level
9479  *
9480  * Indicates the current level of throughput calculated by driver. The driver
9481  * may choose different thresholds to decide whether the throughput level is
9482  * low or medium or high based on variety of parameters like physical link
9483  * capacity of current connection, number of pakcets being dispatched per
9484  * second etc. The throughput level events might not be consistent with the
9485  * actual current throughput value being observed.
9486  *
9487  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
9488  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
9489  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
9490  */
9491 enum qca_wlan_throughput_level {
9492 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
9493 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
9494 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
9495 };
9496 
9497 /**
9498  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
9499  * report throughput changes from driver to user space. enum values are used
9500  * for NL attributes sent with
9501  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
9502  */
9503 enum qca_wlan_vendor_attr_throughput_change {
9504 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
9505 	/*
9506 	 * Indicates the direction of throughput in which the change is being
9507 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
9508 	 */
9509 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
9510 
9511 	/*
9512 	 * Indicates the newly observed throughput level.
9513 	 * qca_wlan_throughput_level describes the possible range of values.
9514 	 * u8 attribute.
9515 	 */
9516 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
9517 
9518 	/*
9519 	 * Indicates the driver's guidance on the new value to be set to
9520 	 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
9521 	 * may optionally include this attribute.
9522 	 */
9523 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
9524 
9525 	/*
9526 	 * Indicates the driver's guidance on the new value to be set to
9527 	 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
9528 	 * values are from -31 to 31. Driver may optionally include this
9529 	 * attribute.
9530 	 */
9531 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
9532 
9533 	/*
9534 	 * Indicates the driver's guidance on the new value to be set to
9535 	 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
9536 	 * optionally include this attribute.
9537 	 */
9538 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
9539 
9540 	/* keep last */
9541 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
9542 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
9543 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
9544 };
9545 
9546 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
9547  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
9548  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9549  */
9550 enum qca_wlan_nan_ext_subcmd_type {
9551 	/* Subcmd of type NAN Enable Request */
9552 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
9553 	/* Subcmd of type NAN Disable Request */
9554 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
9555 };
9556 
9557 /**
9558  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
9559  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
9560  */
9561 enum qca_wlan_vendor_attr_nan_params {
9562 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
9563 	/* Carries NAN command for firmware component. Every vendor command
9564 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
9565 	 * payload containing the NAN command. NLA_BINARY attribute.
9566 	 */
9567 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
9568 	/* Indicates the type of NAN command sent with
9569 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
9570 	 * describes the possible range of values. This attribute is mandatory
9571 	 * if the command being issued is either
9572 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
9573 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
9574 	 */
9575 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
9576 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
9577 	 * band. This attribute is mandatory when command type is
9578 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
9579 	 */
9580 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
9581 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
9582 	 * band. This attribute is optional and should be included when command
9583 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
9584 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
9585 	 */
9586 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
9587 
9588 	/* keep last */
9589 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
9590 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
9591 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
9592 };
9593 
9594 /**
9595  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
9596  * transport modes and is used by attribute
9597  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
9598  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
9599  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
9600  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
9601  * data. The data shall be encapsulated within
9602  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along withe vendor sub command
9603  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
9604  */
9605 enum qca_wlan_vendor_cfr_data_transport_modes {
9606 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
9607 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
9608 };
9609 
9610 /**
9611  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
9612  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
9613  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
9614  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
9615  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
9616  * with phase
9617  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
9618  */
9619 enum qca_wlan_vendor_cfr_method {
9620 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
9621 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
9622 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
9623 };
9624 
9625 /**
9626  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
9627  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
9628  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
9629  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
9630  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
9631  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
9632  * is provided by one or more of below attributes:
9633  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
9634  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
9635  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
9636  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
9637  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
9638  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
9639  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
9640  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
9641  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
9642  */
9643 enum qca_wlan_vendor_cfr_capture_type {
9644 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
9645 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
9646 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
9647 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
9648 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
9649 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
9650 };
9651 
9652 /**
9653  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
9654  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
9655  * Channel Frequency Response capture parameters and enable periodic CFR
9656  * capture.
9657  *
9658  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
9659  * MAC address of peer. This is for CFR version 1 only.
9660  *
9661  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
9662  * Enable peer CFR Capture. This attribute is mandatory to
9663  * enable peer CFR capture. If this attribute is not present,
9664  * peer CFR capture is disabled.
9665  *
9666  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
9667  * BW of measurement, attribute uses the values in enum nl80211_chan_width
9668  * Supported values: 20, 40, 80, 80+80, 160.
9669  * Note that all targets may not support all bandwidths.
9670  * This attribute is mandatory for version 1 if attribute
9671  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9672  *
9673  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
9674  * Periodicity of CFR measurement in msec.
9675  * Periodicity should be a multiple of Base timer.
9676  * Current Base timer value supported is 10 msecs (default).
9677  * 0 for one shot capture.
9678  * This attribute is mandatory for version 1 if attribute
9679  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9680  *
9681  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
9682  * Method used to capture Channel Frequency Response.
9683  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
9684  * This attribute is mandatory for version 1 if attribute
9685  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
9686  *
9687  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
9688  * Enable periodic CFR capture.
9689  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
9690  * If this attribute is not present, periodic CFR capture is disabled.
9691  *
9692  * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
9693  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
9694  * can't be enabled at same time. This attribute is mandatory if target
9695  * support both versions and use one of them.
9696  *
9697  * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
9698  * This attribute is mandatory for version 2 if
9699  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
9700  * Bits 15:0 Bit fields indicating which group to be enabled.
9701  * Bits 31:16 Reserved for future use.
9702  *
9703  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
9704  * CFR capture duration in microsecond. This attribute is mandatory for
9705  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
9706  *
9707  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
9708  * CFR capture interval in microsecond. This attribute is mandatory for
9709  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
9710  *
9711  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
9712  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
9713  * This attribute is mandatory for version 2.
9714  *
9715  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
9716  * Bit fields indicating which user in the current UL MU
9717  * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
9718  * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
9719  * then the CFR capture will happen for user index 0 in the current
9720  * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
9721  * TX corresponds to user indices 0 and 2.  Bits 63:37 Reserved for future use.
9722  * This is for CFR version 2 only.
9723  *
9724  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
9725  * Indicates the number of consecutive Rx packets to be skipped
9726  * before CFR capture is enabled again.
9727  * This is for CFR version 2 only.
9728  *
9729  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
9730  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
9731  *
9732  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
9733  * the following GROUP attributes:
9734  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
9735  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
9736  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
9737  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
9738  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
9739  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
9740  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
9741  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
9742  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
9743  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
9744  *
9745  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
9746  * Target support multiple groups for some configurations. Group number could be
9747  * any value between 0 and 15. This is for CFR version 2 only.
9748  *
9749  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
9750  * Transmitter address which is used to filter packets, this MAC address takes
9751  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
9752  * This is for CFR version 2 only.
9753  *
9754  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
9755  * Receiver address which is used to filter packets, this MAC address takes
9756  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
9757  * This is for CFR version 2 only.
9758  *
9759  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
9760  * Mask of transmitter address which is used to filter packets.
9761  * This is for CFR version 2 only.
9762  *
9763  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
9764  * Mask of receiver address which is used to filter packets.
9765  * This is for CFR version 2 only.
9766  *
9767  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
9768  * Indicates packets with a specific NSS will be filtered for CFR capture.
9769  * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
9770  * be done for packets matching the NSS specified within this bitmask.
9771  * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
9772  *     bit 0 : NSS 1
9773  *     bit 1 : NSS 2
9774  *     ...
9775  *     bit 7 : NSS 8
9776  *
9777  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
9778  * Indicates packets with a specific BW will be filtered for CFR capture.
9779  * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
9780  * will be done for packets matching the bandwidths specified within this
9781  * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
9782  * numerated in enum nl80211_band (although not all bands may be supported
9783  * by a given device).
9784  *
9785  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
9786  * Management packets matching the subtype filter categories will be
9787  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
9788  * represents the corresponding mgmt subtype value as per
9789  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
9790  * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
9791  * This is for CFR version 2 only
9792  *
9793  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
9794  * Control packets matching the subtype filter categories will be
9795  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
9796  * represents the corresponding control subtype value as per
9797  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
9798  * This is for CFR version 2 only.
9799  *
9800  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
9801  * Data packets matching the subtype filter categories will be
9802  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
9803  * represents the corresponding data subtype value as per
9804  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
9805  * This is for CFR version 2 only.
9806  *
9807  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
9808  * Userspace can use this attribute to specify the driver about which transport
9809  * mode shall be used by the driver to send CFR data to userspace. Uses values
9810  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
9811  * not present, driver shall choose the default transport mechanism which is
9812  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
9813  *
9814  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
9815  * Userspace can use this attribute to specify the nl port id of the application
9816  * which receives the CFR data and processes it further so that the drivers can
9817  * unicast the NL events to a specific application. Optionally included when
9818  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
9819  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
9820  * shall multicast the netlink events when this attribute is not included.
9821  *
9822  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
9823  * This attribute will be used by the driver to encapsulate and send CFR data
9824  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
9825  * asynchronous event when the driver is configured to send CFR data using NL
9826  * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
9827  *
9828  */
9829 enum qca_wlan_vendor_peer_cfr_capture_attr {
9830 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
9831 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
9832 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
9833 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
9834 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
9835 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
9836 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
9837 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
9838 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
9839 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
9840 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
9841 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
9842 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
9843 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
9844 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
9845 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
9846 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
9847 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
9848 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
9849 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
9850 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
9851 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
9852 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
9853 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
9854 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
9855 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
9856 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
9857 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
9858 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
9859 
9860 	/* Keep last */
9861 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
9862 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
9863 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
9864 };
9865 
9866 /**
9867  * enum qca_coex_config_profiles - This enum defines different types of
9868  * traffic streams that can be prioritized one over the other during coex
9869  * scenarios.
9870  * The types defined in this enum are categorized in the below manner.
9871  * 0 - 31 values corresponds to WLAN
9872  * 32 - 63 values corresponds to BT
9873  * 64 - 95 values corresponds to Zigbee
9874  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
9875  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
9876  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
9877  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
9878  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
9879  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
9880  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
9881  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
9882  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
9883  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
9884  * @QCA_BT_A2DP: Prioritize BT A2DP
9885  * @QCA_BT_BLE: Prioritize BT BLE
9886  * @QCA_BT_SCO: Prioritize BT SCO
9887  * @QCA_ZB_LOW: Prioritize Zigbee Low
9888  * @QCA_ZB_HIGH: Prioritize Zigbee High
9889  */
9890 enum qca_coex_config_profiles {
9891 	/* 0 - 31 corresponds to WLAN */
9892 	QCA_WIFI_STA_DISCOVERY = 0,
9893 	QCA_WIFI_STA_CONNECTION = 1,
9894 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
9895 	QCA_WIFI_STA_DATA = 3,
9896 	QCA_WIFI_STA_ALL = 4,
9897 	QCA_WIFI_SAP_DISCOVERY = 5,
9898 	QCA_WIFI_SAP_CONNECTION = 6,
9899 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
9900 	QCA_WIFI_SAP_DATA = 8,
9901 	QCA_WIFI_SAP_ALL = 9,
9902 	QCA_WIFI_CASE_MAX = 31,
9903 	/* 32 - 63 corresponds to BT */
9904 	QCA_BT_A2DP = 32,
9905 	QCA_BT_BLE = 33,
9906 	QCA_BT_SCO = 34,
9907 	QCA_BT_CASE_MAX = 63,
9908 	/* 64 - 95 corresponds to Zigbee */
9909 	QCA_ZB_LOW = 64,
9910 	QCA_ZB_HIGH = 65,
9911 	QCA_ZB_CASE_MAX = 95,
9912 	/* 0xff is default value if the u8 profile value is not set. */
9913 	QCA_PROFILE_DEFAULT_VALUE = 255
9914 };
9915 
9916 /**
9917  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
9918  * This enum defines the valid set of values of coex configuration types. These
9919  * values may used by attribute
9920  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
9921  *
9922  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
9923  *	weights to default values.
9924  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
9925  *	weights with configurability value.
9926  */
9927 enum qca_vendor_attr_coex_config_types {
9928 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
9929 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
9930 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
9931 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
9932 };
9933 
9934 /**
9935  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
9936  * attributes
9937  * Attributes for data used by
9938  * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
9939  *
9940  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
9941  * Indicate config type.
9942  * the config types are 32-bit values from qca_vendor_attr_coex_config_types
9943  *
9944  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
9945  *	Indicate the Priority 1 profiles.
9946  *	the profiles are 8-bit values from enum qca_coex_config_profiles
9947  *	In same priority level, maximum to 4 profiles can be set here.
9948  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
9949  *	Indicate the Priority 2 profiles.
9950  *	the profiles are 8-bit values from enum qca_coex_config_profiles
9951  *	In same priority level, maximum to 4 profiles can be set here.
9952  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
9953  *	Indicate the Priority 3 profiles.
9954  *	the profiles are 8-bit values from enum qca_coex_config_profiles
9955  *	In same priority level, maximum to 4 profiles can be set here.
9956  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
9957  *	Indicate the Priority 4 profiles.
9958  *	the profiles are 8-bit values from enum qca_coex_config_profiles
9959  *	In same priority level, maximum to 4 profiles can be set here.
9960  * NOTE:
9961  * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
9962  * arrangement:
9963  *	1: In the same u32 attribute(priority x), the profiles enum values own
9964  *	same priority level.
9965  *	2: 0xff is default value if the u8 profile value is not set.
9966  *	3: max to 4 rules/profiles in same priority level.
9967  *	4: max to 4 priority level (priority 1 - priority 4)
9968  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
9969  *	hybrid rules not support.
9970  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
9971  *	remain blank to reset all parameters.
9972  * For example:
9973  *
9974  *	If the attributes as follow:
9975  *	priority 1:
9976  *	------------------------------------
9977  *	|  0xff  |    0   |   1   |    2   |
9978  *	------------------------------------
9979  *	priority 2:
9980  *	-------------------------------------
9981  *	|  0xff  |  0xff  |  0xff  |   32   |
9982  *	-------------------------------------
9983  *	priority 3:
9984  *	-------------------------------------
9985  *	|  0xff  |  0xff  |  0xff  |   65   |
9986  *	-------------------------------------
9987  *	then it means:
9988  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
9989  *		owns same priority level.
9990  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
9991  *		has priority over BT_A2DP and ZB_HIGH.
9992  *	3: BT_A2DP has priority over ZB_HIGH.
9993  */
9994 
9995 enum qca_vendor_attr_coex_config_three_way {
9996 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
9997 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
9998 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
9999 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10000 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10001 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10002 
10003 	/* Keep last */
10004 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10005 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10006 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10007 };
10008 
10009 /**
10010  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10011  * This enum defines the valid set of values of peer stats cache types. These
10012  * values are used by attribute
10013  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
10014  *
10015  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
10016  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
10017  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
10018  * statistics
10019  */
10020 enum qca_vendor_attr_peer_stats_cache_type {
10021 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10022 
10023 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10024 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10025 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10026 };
10027 
10028 /**
10029  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10030  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10031  * Attributes are required to flush peer rate statistics from driver to
10032  * user application.
10033  *
10034  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10035  * Indicate peer stats cache type.
10036  * The statistics types are 32-bit values from
10037  * qca_vendor_attr_peer_stats_cache_type
10038  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10039  * of size 6, representing peer mac address.
10040  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10041  * containing buffer of statistics to send event to application layer entity.
10042  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10043  * representing cookie for peer unique session.
10044  */
10045 enum qca_wlan_vendor_attr_peer_stats_cache_params {
10046 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10047 
10048 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10049 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10050 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10051 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10052 
10053 	/* Keep last */
10054 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10055 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10056 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10057 };
10058 
10059 /**
10060  * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
10061  * this enum defines all the possible state of zigbee, which can be
10062  * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
10063  *
10064  * @ZIGBEE_IDLE: zigbee in idle state
10065  * @ZIGBEE_FORM_NETWORK: zibee forming network
10066  * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
10067  * @ZIGBEE_JOIN: zigbee joining network
10068  * @ZIGBEE_NETWORK_UP: zigbee network is up
10069  * @ZIGBEE_HMI: zigbee in HMI mode
10070  */
10071 enum qca_mpta_helper_attr_zigbee_state {
10072 	ZIGBEE_IDLE = 0,
10073 	ZIGBEE_FORM_NETWORK = 1,
10074 	ZIGBEE_WAIT_JOIN = 2,
10075 	ZIGBEE_JOIN = 3,
10076 	ZIGBEE_NETWORK_UP = 4,
10077 	ZIGBEE_HMI = 5,
10078 };
10079 
10080 /**
10081  * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
10082  * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10083  */
10084 enum qca_mpta_helper_vendor_attr {
10085 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10086 	/* Optional attribute used to update zigbee state.
10087 	 * enum qca_mpta_helper_attr_zigbee_state.
10088 	 * NLA_U32 attribute.
10089 	 */
10090 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10091 	/* Optional attribute used to configure wlan duration for Shape-OCS
10092 	 * during interrupt.
10093 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10094 	 * Value range 0 ~ 300 (ms).
10095 	 * NLA_U32 attribute.
10096 	 */
10097 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10098 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10099 	 * during interrupt.
10100 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10101 	 * Value range 0 ~ 300 (ms).
10102 	 * NLA_U32 attribute.
10103 	 */
10104 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10105 	/* Optional attribute used to configure wlan duration for Shape-OCS
10106 	 * monitor period.
10107 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10108 	 * Value range 0 ~ 300 (ms)
10109 	 * NLA_U32 attribute
10110 	 */
10111 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10112 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10113 	 * monitor period.
10114 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10115 	 * Value range 0 ~ 300 (ms)
10116 	 * NLA_U32 attribute
10117 	 */
10118 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
10119 	/* Optional attribute used to configure ocs interrupt duration.
10120 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10121 	 * Value range 1000 ~ 20000 (ms)
10122 	 * NLA_U32 attribute
10123 	 */
10124 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
10125 	/* Optional attribute used to configure ocs monitor duration.
10126 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10127 	 * Value range 1000 ~ 20000 (ms)
10128 	 * NLA_U32 attribute
10129 	 */
10130 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
10131 	/* Optional attribute used to notify wlan FW current zigbee channel.
10132 	 * Value range 11 ~ 26
10133 	 * NLA_U32 attribute
10134 	 */
10135 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10136 	/* Optional attribute used to configure wlan mute duration.
10137 	 * Value range 0 ~ 400 (ms)
10138 	 * NLA_U32 attribute
10139 	 */
10140 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
10141 
10142 	/* keep last */
10143 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10144 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10145 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10146 };
10147 
10148 /**
10149  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10150  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
10151  * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10152  *
10153  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10154  * to request the driver to start reporting Beacon frames.
10155  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
10156  * to request the driver to stop reporting Beacon frames.
10157  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10158  * userspace to report received Beacon frames.
10159  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10160  * to indicate that the driver is going to pause reporting Beacon frames.
10161  */
10162 enum qca_wlan_vendor_beacon_reporting_op_types {
10163 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10164 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10165 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10166 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10167 };
10168 
10169 /**
10170  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
10171  * types of reasons for which the driver is pausing reporting Beacon frames.
10172  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10173  *
10174  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10175  * reasons.
10176  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10177  * driver/firmware is starting a scan.
10178  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10179  * driver/firmware disconnects from the ESS and indicates the disconnection to
10180  * userspace (non-seamless roaming case). This reason code will be used by the
10181  * driver/firmware to indicate stopping of beacon report events. Userspace
10182  * will need to start beacon reporting again (if desired) by sending vendor
10183  * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10184  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10185  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10186  * completed.
10187  */
10188 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10189 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10190 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10191 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10192 };
10193 
10194 /*
10195  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10196  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10197  */
10198 enum qca_wlan_vendor_attr_beacon_reporting_params {
10199 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10200 	/* Specifies the type of operation that the vendor command/event is
10201 	 * intended for. Possible values for this attribute are defined in
10202 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10203 	 */
10204 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10205 	/* Optionally set by userspace to request the driver to report Beacon
10206 	 * frames using asynchronous vendor events when the
10207 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10208 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10209 	 * If this flag is not set, the driver will only update Beacon frames
10210 	 * in cfg80211 scan cache but not send any vendor events.
10211 	 */
10212 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10213 	/* Optionally used by userspace to request the driver/firmware to
10214 	 * report Beacon frames periodically when the
10215 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10216 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10217 	 * u32 attribute, indicates the period of Beacon frames to be reported
10218 	 * and in the units of beacon interval.
10219 	 * If this attribute is missing in the command, then the default value
10220 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10221 	 * Zero is an invalid value.
10222 	 * If a valid value is received for this attribute, the driver will
10223 	 * update the cfg80211 scan cache periodically as per the value
10224 	 * received in this attribute in addition to updating the cfg80211 scan
10225 	 * cache when there is significant change in Beacon frame IEs.
10226 	 */
10227 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10228 	/* Used by the driver to encapsulate the SSID when the
10229 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10230 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10231 	 * u8 array with a maximum size of 32.
10232 	 *
10233 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
10234 	 * will be taken from the SSID element of the received Beacon frame.
10235 	 *
10236 	 * When generating beacon report from Multiple BSSID Beacon frame and
10237 	 * if the BSSID of the current connected BSS matches the BSSID of the
10238 	 * transmitting BSS, the SSID will be taken from the SSID element of
10239 	 * the received Beacon frame.
10240 	 *
10241 	 * When generating beacon report from Multiple BSSID Beacon frame and
10242 	 * if the BSSID of the current connected BSS matches the BSSID of one
10243 	 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
10244 	 * field included in the nontransmitted BSS profile whose derived BSSI
10245 	 * is same as the BSSID of the current connected BSS. When there is no
10246 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
10247 	 * of current connected* BSS, this attribute will not be present.
10248 	 */
10249 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
10250 	/* Used by the driver to encapsulate the BSSID of the AP to which STA
10251 	 * is currently connected to when the
10252 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10253 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
10254 	 * fixed size of 6 bytes.
10255 	 *
10256 	 * When generating beacon report from a Multiple BSSID beacon and the
10257 	 * current connected BSSID matches one of the nontransmitted BSSIDs in
10258 	 * a Multiple BSSID set, this BSSID will be that particular
10259 	 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
10260 	 * transmitting address of the Beacon frame).
10261 	 */
10262 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
10263 	/* Used by the driver to encapsulate the frequency in MHz on which
10264 	 * the Beacon frame was received when the
10265 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
10266 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10267 	 * u32 attribute.
10268 	 */
10269 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
10270 	/* Used by the driver to encapsulate the Beacon interval
10271 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10272 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10273 	 * u16 attribute. The value will be copied from the Beacon frame and
10274 	 * the units are TUs.
10275 	 */
10276 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
10277 	/* Used by the driver to encapsulate the Timestamp field from the
10278 	 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
10279 	 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10280 	 * u64 attribute.
10281 	 */
10282 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
10283 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
10284 	 * Beacon frame is received in the driver when the
10285 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10286 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
10287 	 * the units of nanoseconds. This value is expected to have accuracy of
10288 	 * about 10 ms.
10289 	 */
10290 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
10291 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
10292 	 * which this event is generated when the
10293 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10294 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
10295 	 */
10296 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
10297 	/* Used by the driver to specify the reason for the driver/firmware to
10298 	 * pause sending beacons to userspace when the
10299 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10300 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
10301 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
10302 	 * attribute.
10303 	 */
10304 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
10305 	/* Used by the driver to specify whether the driver will automatically
10306 	 * resume reporting beacon events to userspace later (for example after
10307 	 * the ongoing off-channel activity is completed etc.) when the
10308 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10309 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
10310 	 */
10311 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
10312 	/* Optionally set by userspace to request the driver not to resume
10313 	 * beacon reporting after a pause is completed, when the
10314 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10315 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10316 	 * If this flag is set, the driver will not resume beacon reporting
10317 	 * after any pause in beacon reporting is completed. Userspace has to
10318 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
10319 	 * to initiate beacon reporting again. If this flag is set in the recent
10320 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
10321 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
10322 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
10323 	 * set by the driver. Setting this flag until and unless there is a
10324 	 * specific need is not recommended as there is a chance of some beacons
10325 	 * received after pause command and next start command being not
10326 	 * reported.
10327 	 */
10328 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
10329 
10330 	/* Keep last */
10331 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
10332 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
10333 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
10334 };
10335 
10336 /**
10337  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
10338  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
10339  *
10340  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
10341  * a virtual device.
10342  *
10343  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
10344  * a physical device.
10345  */
10346 enum qca_vendor_oem_device_type {
10347 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
10348 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
10349 };
10350 
10351 /*
10352  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
10353  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
10354  *
10355  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
10356  * used to set/query the data to/from the firmware. On query, the same
10357  * attribute is used to carry the respective data in the reply sent by the
10358  * driver to userspace. The request to set/query the data and the format of the
10359  * respective data from the firmware are embedded in the attribute. The
10360  * maximum size of the attribute payload is 1024 bytes.
10361  *
10362  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
10363  * based on this field. This optional attribute is included to specify whether
10364  * the device type is a virtual device or a physical device for the command.
10365  * This attribute can be omitted for a virtual device (default) command.
10366  * This u8 attribute is used to carry information for the device type using
10367  * values defined by enum qca_vendor_oem_device_type.
10368  *
10369  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
10370  * attribute when the data is queried from the firmware.
10371  *
10372  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
10373  * is set when the userspace queries data from the firmware. This attribute
10374  * should not be set when userspace sets the OEM data to the firmware.
10375  */
10376 enum qca_wlan_vendor_attr_oem_data_params {
10377 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
10378 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
10379 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
10380 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
10381 
10382 	/* keep last */
10383 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
10384 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
10385 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
10386 };
10387 
10388 /**
10389  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
10390  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
10391  *
10392  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
10393  * Nested attribute containing multiple ranges with following attributes:
10394  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
10395  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
10396  *
10397  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
10398  * Starting center frequency in MHz.
10399  *
10400  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
10401  * Ending center frequency in MHz.
10402  */
10403 enum qca_wlan_vendor_attr_avoid_frequency_ext {
10404 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
10405 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
10406 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
10407 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
10408 
10409 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
10410 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
10411 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
10412 };
10413 
10414 /*
10415  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
10416  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
10417  */
10418 enum qca_wlan_vendor_attr_add_sta_node_params {
10419 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
10420 	/* 6 byte MAC address of STA */
10421 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
10422 	/* Authentication algorithm used by the station of size u16;
10423 	 * defined in enum nl80211_auth_type.
10424 	 */
10425 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
10426 
10427 	/* keep last */
10428 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
10429 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
10430 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
10431 };
10432 
10433 /**
10434  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
10435  * This enum defines the valid set of values of BT coex chain mode.
10436  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
10437  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10438  *
10439  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
10440  * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
10441  */
10442 enum qca_btc_chain_mode {
10443 	QCA_BTC_CHAIN_SHARED = 0,
10444 	QCA_BTC_CHAIN_SEPARATED = 1,
10445 };
10446 
10447 /**
10448  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
10449  * chain mode.
10450  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10451  *
10452  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
10453  * Indicates the BT coex chain mode, are 32-bit values from
10454  * enum qca_btc_chain_mode. This attribute is mandatory.
10455  *
10456  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
10457  * If set, vdev should be restarted when BT coex chain mode is updated.
10458  * This attribute is optional.
10459  */
10460 enum qca_vendor_attr_btc_chain_mode {
10461 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
10462 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
10463 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
10464 
10465 	/* Keep last */
10466 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
10467 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
10468 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
10469 };
10470 
10471 /**
10472  * enum qca_vendor_wlan_sta_flags - Station feature flags
10473  * Bits will be set to 1 if the corresponding features are enabled.
10474  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
10475  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
10476     for the station
10477  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
10478     for the station
10479  */
10480 enum qca_vendor_wlan_sta_flags {
10481 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
10482 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
10483 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
10484 };
10485 
10486 /**
10487  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
10488  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
10489  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
10490  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
10491  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
10492  */
10493 enum qca_vendor_wlan_sta_guard_interval {
10494 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
10495 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
10496 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
10497 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
10498 };
10499 
10500 /**
10501  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
10502  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
10503  *
10504  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
10505  * Required attribute in request for AP mode only, 6-byte MAC address,
10506  * corresponding to the station's MAC address for which information is
10507  * requested. For STA mode this is not required as the info always correspond
10508  * to the self STA and the current/last association.
10509  *
10510  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
10511  * Optionally used in response, u32 attribute, contains a bitmap of different
10512  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
10513  *
10514  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
10515  * Optionally used in response, u32 attribute, possible values are defined in
10516  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
10517  * Guard interval used by the station.
10518  *
10519  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
10520  * Optionally used in response, u32 attribute, used in AP mode only.
10521  * Value indicates the number of data frames received from station with retry
10522  * bit set to 1 in FC.
10523  *
10524  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
10525  * Optionally used in response, u32 attribute, used in AP mode only.
10526  * Counter for number of data frames with broadcast or multicast address in
10527  * the destination address received from the station.
10528  *
10529  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
10530  * Optionally used in response, u32 attribute, used in both STA and AP modes.
10531  * Value indicates the number of data frames successfully transmitted only
10532  * after retrying the packets and for which the TX status has been updated
10533  * back to host from target.
10534  *
10535  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
10536  * Optionally used in response, u32 attribute, used in both STA and AP mode.
10537  * Value indicates the number of data frames not transmitted successfully even
10538  * after retrying the packets for the number of times equal to the total number
10539  * of retries allowed for that packet and for which the TX status has been
10540  * updated back to host from target.
10541  *
10542  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
10543  * Optionally used in response, u32 attribute, used in AP mode only.
10544  * Counter in the target for the number of data frames successfully transmitted
10545  * to the station.
10546  *
10547  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
10548  * Optionally used in response, u32 attribute, used in AP mode only.
10549  * Value indicates the number of data frames successfully transmitted only
10550  * after retrying the packets.
10551  *
10552  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
10553  * Optionally used in response, u32 attribute, used in both STA & AP mode.
10554  * Value indicates the number of data frames not transmitted successfully even
10555  * after retrying the packets for the number of times equal to the total number
10556  * of retries allowed for that packet.
10557  *
10558  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
10559  * the STA mode only. Represent the number of probe requests sent by the STA
10560  * while attempting to roam on missing certain number of beacons from the
10561  * connected AP. If queried in the disconnected state, this represents the
10562  * count for the last connected state.
10563  *
10564  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
10565  * the STA mode. Represent the number of probe responses received by the station
10566  * while attempting to roam on missing certain number of beacons from the
10567  * connected AP. When queried in the disconnected state, this represents the
10568  * count when in last connected state.
10569  *
10570  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
10571  * STA mode only. Represents the total number of frames sent out by STA
10572  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
10573  * only for the connect session. Represents the count of last connected session,
10574  * when queried in the disconnected state.
10575  *
10576  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
10577  * Total number of RTS sent out by the STA. This data is maintained per connect
10578  * session. Represents the count of last connected session, when queried in the
10579  * disconnected state.
10580  *
10581  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
10582  * STA mode.Represent the number of RTS transmission failure that reach retry
10583  * limit. This data is maintained per connect session. Represents the count of
10584  * last connected session, when queried in the disconnected state.
10585  *
10586  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
10587  * the STA mode. Represent the total number of non aggregated frames transmitted
10588  * by the STA. This data is maintained per connect session. Represents the count
10589  * of last connected session, when queried in the disconnected state.
10590  *
10591  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
10592  * STA mode. Represent the total number of aggregated frames transmitted by the
10593  * STA. This data is maintained per connect session. Represents the count of
10594  * last connected session, when queried in the disconnected state.
10595  *
10596  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
10597  * the STA mode. Represents the number of received frames with a good PLCP. This
10598  * data is maintained per connect session. Represents the count of last
10599  * connected session, when queried in the disconnected state.
10600  *
10601  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
10602  * used in the STA mode. Represents the number of occasions that no valid
10603  * delimiter is detected by A-MPDU parser. This data is maintained per connect
10604  * session. Represents the count of last connected session, when queried in the
10605  * disconnected state.
10606  *
10607  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
10608  * STA mode. Represents the number of frames for which CRC check failed in the
10609  * MAC. This data is maintained per connect session. Represents the count of
10610  * last connected session, when queried in the disconnected state.
10611  *
10612  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
10613  * STA mode. Represents the number of unicast ACKs received with good FCS. This
10614  * data is maintained per connect session. Represents the count of last
10615  * connected session, when queried in the disconnected state.
10616  *
10617  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
10618  * mode. Represents the number of received Block Acks. This data is maintained
10619  * per connect session. Represents the count of last connected session, when
10620  * queried in the disconnected state.
10621  *
10622  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
10623  * mode. Represents the number of beacons received from the connected BSS. This
10624  * data is maintained per connect session. Represents the count of last
10625  * connected session, when queried in the disconnected state.
10626  *
10627  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
10628  * STA mode. Represents the number of beacons received by the other BSS when in
10629  * connected state (through the probes done by the STA). This data is maintained
10630  * per connect session. Represents the count of last connected session, when
10631  * queried in the disconnected state.
10632  *
10633  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
10634  * the STA mode. Represents the number of received DATA frames with good FCS and
10635  * matching Receiver Address when in connected state. This data is maintained
10636  * per connect session. Represents the count of last connected session, when
10637  * queried in the disconnected state.
10638  *
10639  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
10640  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
10641  * when in the connected state. This data is maintained per connect session.
10642  * Represents the count of last connected session, when queried in the
10643  * disconnected state.
10644  *
10645  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
10646  * STA mode. This represents the target power in dBm for the transmissions done
10647  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
10648  * connect session. Represents the count of last connected session, when
10649  * queried in the disconnected state.
10650  *
10651  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
10652  * STA mode. This represents the Target power in dBm for transmissions done to
10653  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
10654  * session. Represents the count of last connected session, when queried in the
10655  * disconnected state.
10656  *
10657  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
10658  * STA mode. This represents the Target power in dBm for transmissions done to
10659  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
10660  * Represents the count of last connected session, when queried in the
10661  * disconnected state.
10662  *
10663  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
10664  * STA mode. This represents the Target power in dBm for transmissions done to
10665  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
10666  * session. Represents the count of last connected session, when queried in
10667  * the disconnected state.
10668  *
10669  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
10670  * STA mode. This represents the Target power in dBm for for transmissions done
10671  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
10672  * Represents the count of last connected session, when queried in the
10673  * disconnected state.
10674  *
10675  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
10676  * in the STA mode. This represents the Nested attribute representing the
10677  * overflow counts of each receive buffer allocated to the hardware during the
10678  * STA's connection. The number of hw buffers might vary for each WLAN
10679  * solution and hence this attribute represents the nested array of all such
10680  * HW buffer count. This data is maintained per connect session. Represents
10681  * the count of last connected session, when queried in the disconnected state.
10682  *
10683  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
10684  * allowed as per the regulatory requirements for the current or last connected
10685  * session. Used in the STA mode.
10686  *
10687  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
10688  * (dBm) used by the station in its latest unicast frame while communicating
10689  * to the AP in the connected state. When queried in the disconnected state,
10690  * this represents the TX power used by the STA with last AP communication
10691  * when in connected state.
10692  *
10693  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
10694  * level used to adjust the RX sensitivity. Represents the current ANI level
10695  * when queried in the connected state. When queried in the disconnected
10696  * state, this corresponds to the latest ANI level at the instance of
10697  * disconnection.
10698  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
10699  * only. This represents the number of group addressed robust management frames
10700  * received from this station with an invalid MIC or a missing MME when PMF is
10701  * enabled.
10702  *
10703  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
10704  * only. This represents the number of group addressed robust management frames
10705  * received from this station with the packet number less than or equal to the
10706  * last received packet number when PMF is enabled.
10707  *
10708  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
10709  * mode only. This represents the number of Beacon frames received from this
10710  * station with an invalid MIC or a missing MME when beacon protection is
10711  * enabled.
10712  *
10713  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
10714  * only. This represents number of Beacon frames received from this station with
10715  * the packet number less than or equal to the last received packet number when
10716  * beacon protection is enabled.
10717  *
10718  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
10719  * STA mode only. Driver uses this attribute to populate the connection failure
10720  * reason codes and the values are defined in
10721  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
10722  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
10723  * connection failure from driver. The driver shall not include this attribute
10724  * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
10725  * connection failure observed in the last attempted connection.
10726  *
10727  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
10728  * used by the station in its last TX frame while communicating to the AP in the
10729  * connected state. When queried in the disconnected state, this represents the
10730  * rate used by the STA in the last TX frame to the AP when it was connected.
10731  * This attribute is used for STA mode only.
10732  *
10733  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
10734  * This represents the rate index used by the STA for the last TX frame to the
10735  * AP. When queried in the disconnected state, this gives the last RIX used by
10736  * the STA in the last TX frame to the AP when it was connected.
10737  *
10738  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
10739  * mode only. This represents the number of times the STA TSF goes out of sync
10740  * from the AP after the connection. If queried in the disconnected state, this
10741  * gives the count of TSF out of sync for the last connection.
10742  *
10743  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
10744  * mode only. This represents the roam trigger reason for the last roaming
10745  * attempted by the firmware. This can be queried either in connected state or
10746  * disconnected state. Each bit of this attribute represents the different
10747  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
10748  *
10749  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
10750  * only. This represents the roam fail reason for the last failed roaming
10751  * attempt by the firmware. Different roam failure reason codes are specified
10752  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
10753  * connected state or disconnected state.
10754  *
10755  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
10756  * STA mode only. This represents the roam invoke fail reason for the last
10757  * failed roam invoke. Different roam invoke failure reason codes
10758  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
10759  * queried either in connected state or disconnected state.
10760  *
10761  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
10762  * This represents the average congestion duration of uplink frames in MAC
10763  * queue in unit of ms. This can be queried either in connected state or
10764  * disconnected state.
10765  */
10766 enum qca_wlan_vendor_attr_get_sta_info {
10767 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
10768 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
10769 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
10770 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
10771 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
10772 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
10773 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
10774 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
10775 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
10776 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
10777 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
10778 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
10779 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
10780 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
10781 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
10782 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
10783 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
10784 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
10785 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
10786 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
10787 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
10788 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
10789 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
10790 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
10791 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
10792 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
10793 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
10794 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
10795 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
10796 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
10797 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
10798 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
10799 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
10800 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
10801 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
10802 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
10803 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
10804 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
10805 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
10806 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
10807 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
10808 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
10809 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
10810 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
10811 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
10812 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
10813 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
10814 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
10815 
10816 	/* keep last */
10817 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
10818 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
10819 		QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
10820 };
10821 
10822 /**
10823  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
10824  * Used when the driver triggers the STA to disconnect from the AP.
10825  *
10826  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
10827  * disconnection with the AP due to unspecified reasons.
10828  *
10829  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
10830  * disconnection with the AP due to a roaming failure. This roaming is triggered
10831  * internally (host driver/firmware).
10832  *
10833  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
10834  * the AP when the user/external triggered roaming fails.
10835  *
10836  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
10837  * by the host driver whenever gateway reachability failure is detected and the
10838  * driver disconnects with AP.
10839  *
10840  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
10841  * the AP on a channel switch announcement from it with an unsupported channel.
10842  *
10843  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
10844  * with indoor channels disabled and if the STA is connected on one of these
10845  * disabled channels, the host driver disconnected the STA with this reason
10846  * code.
10847  *
10848  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
10849  * explicit request from the user to disable the current operating channel.
10850  *
10851  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
10852  * the internal host driver/firmware recovery.
10853  *
10854  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
10855  * a timeout for the key installations from the user space.
10856  *
10857  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
10858  * STA on a band change request from the user space to a different band from the
10859  * current operation channel/band.
10860  *
10861  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
10862  * interface down trigger from the user space.
10863  *
10864  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
10865  * STA on getting continuous transmission failures for multiple Data frames.
10866  *
10867  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
10868  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
10869  * represents inactivity from AP on such transmissions.
10870 
10871  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
10872  * disconnection when SA Query times out (AP does not respond to SA Query).
10873  *
10874  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
10875  * STA on missing the beacons continuously from the AP.
10876  *
10877  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
10878  * able to move to the channel mentioned by the AP in CSA.
10879  *
10880  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
10881  */
10882 enum qca_disconnect_reason_codes {
10883 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
10884 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
10885 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
10886 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
10887 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
10888 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
10889 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
10890 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
10891 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
10892 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
10893 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
10894 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
10895 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
10896 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
10897 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
10898 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
10899 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
10900 };
10901 
10902 /**
10903  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
10904  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
10905  *
10906  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
10907  * This attribute represents the driver specific reason codes (local
10908  * driver/firmware initiated reasons for disconnection) defined
10909  * in enum qca_disconnect_reason_codes.
10910  */
10911 enum qca_wlan_vendor_attr_driver_disconnect_reason {
10912 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
10913 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
10914 
10915 	/* keep last */
10916 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
10917 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
10918 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
10919 };
10920 
10921 /**
10922  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
10923  *
10924  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
10925  */
10926 enum qca_wlan_tspec_operation {
10927 	QCA_WLAN_TSPEC_ADD = 0,
10928 	QCA_WLAN_TSPEC_DEL = 1,
10929 	QCA_WLAN_TSPEC_GET = 2,
10930 };
10931 
10932 /**
10933  * enum qca_wlan_tspec_direction - Direction in TSPEC
10934  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
10935  *
10936  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
10937  */
10938 enum qca_wlan_tspec_direction {
10939 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
10940 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
10941 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
10942 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
10943 };
10944 
10945 /**
10946  * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
10947  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
10948  *
10949  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
10950  */
10951 enum qca_wlan_tspec_ack_policy {
10952 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
10953 	QCA_WLAN_TSPEC_NO_ACK = 1,
10954 	/* Reserved */
10955 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
10956 };
10957 
10958 /**
10959  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
10960  * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
10961  *
10962  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
10963  * u8 attribute. Specify the TSPEC operation of this request. Possible values
10964  * are defined in enum qca_wlan_tspec_operation.
10965  * Mandatory attribute for all kinds of config TSPEC requests.
10966  *
10967  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
10968  * u8 attribute. TS ID. Possible values are 0-7.
10969  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
10970  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
10971  *
10972  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
10973  * u8 attribute. Direction of data carried by the TS. Possible values are
10974  * defined in enum qca_wlan_tspec_direction.
10975  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10976  *
10977  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
10978  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
10979  * with the TS. set - enabled, not set - disabled.
10980  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10981  *
10982  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
10983  * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
10984  * belonging to this TS. Possible values are 0-7.
10985  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
10986  *
10987  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
10988  * u8 attribute. Indicate whether MAC acknowledgements are required for
10989  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
10990  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
10991  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10992  *
10993  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
10994  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
10995  * belonging to this TS.
10996  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
10997  *
10998  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
10999  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11000  * belonging to this TS.
11001  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11002  *
11003  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11004  * u32 attribute. Specify the minimum interval in microseconds between the
11005  * start of two successive SPs.
11006  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11007  *
11008  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11009  * u32 attribute. Specify the maximum interval in microseconds between the
11010  * start of two successive SPs.
11011  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11012  *
11013  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11014  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11015  * without arrival or transfer of an MPDU belonging to the TS before this TS
11016  * is deleted by the MAC entity at the HC.
11017  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11018  *
11019  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11020  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11021  * without arrival or transfer of an MSDU belonging to the TS before the
11022  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11023  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11024  * interval is always less than or equal to the inactivity interval.
11025  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11026  *
11027  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11028  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11029  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11030  * bounds of this TSPEC.
11031  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11032  *
11033  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11034  * u32 attribute. Indicate the average data rate in bps specified at the MAC
11035  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11036  * bounds of this TSPEC.
11037  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11038  *
11039  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11040  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11041  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11042  * the bounds of this TSPEC.
11043  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11044  *
11045  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11046  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11047  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11048  * value of 0 indicates that there are no bursts.
11049  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11050  *
11051  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11052  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11053  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11054  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11055  *
11056  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11057  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11058  * and above the stated application rates required to transport an MSDU/A-MSDU
11059  * belonging to the TS in this TSPEC.
11060  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11061  */
11062 enum qca_wlan_vendor_attr_config_tspec {
11063 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11064 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11065 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11066 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11067 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11068 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11069 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11070 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11071 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11072 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11073 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11074 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11075 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11076 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11077 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11078 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11079 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11080 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11081 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11082 
11083 	/* keep last */
11084 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11085 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11086 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11087 };
11088 
11089 /**
11090  * enum qca_wlan_medium_assess_type - Type of medium assess request
11091  *
11092  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
11093  */
11094 enum qca_wlan_medium_assess_type {
11095 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
11096 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
11097 };
11098 
11099 /**
11100  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
11101  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
11102  *
11103  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
11104  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
11105  * Specify the type of medium assess request and indicate its type in response.
11106  * Possible values are defined in enum qca_wlan_medium_assess_type.
11107  *
11108  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
11109  * u32 attribute. Mandatory in CCA request.
11110  * Specify the assessment period in terms of seconds. Assessment result will be
11111  * sent as the response to the CCA request after the assessment period.
11112  *
11113  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
11114  * u32 attribute. Mandatory in response to CCA request.
11115  * Total timer tick count of the assessment cycle.
11116  *
11117  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
11118  * u32 attribute. Mandatory in response to CCA request.
11119  * Timer tick count of idle time in the assessment cycle.
11120  *
11121  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
11122  * u32 attribute. Mandatory in response to CCA request.
11123  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
11124  *
11125  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
11126  * u32 attribute. Mandatory in response to CCA request.
11127  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
11128  *
11129  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
11130  * s32 attribute. Mandatory in response to CCA request.
11131  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
11132  *
11133  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
11134  * s32 attribute. Mandatory in response to CCA request.
11135  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
11136  *
11137  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
11138  * u8 attribute. Mandatory in congestion report request.
11139  * 1-enable 0-disable.
11140  *
11141  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
11142  * u8 attribute. Mandatory in congestion report enable request and will be
11143  * ignored if present in congestion report disable request. Possible values are
11144  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
11145  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
11146  * congestion percentage reaches the configured threshold.
11147  *
11148  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
11149  * u8 attribute. Optional in congestion report enable request and will be
11150  * ignored if present in congestion report disable request.
11151  * Specify the interval of congestion report event in terms of seconds. Possible
11152  * values are 1-255. Default value 1 will be used if this attribute is omitted
11153  * or using invalid values.
11154  *
11155  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
11156  * u8 attribute. Mandatory in congestion report event.
11157  * Indicate the actual congestion percentage. Possible values are 0-100.
11158  */
11159 enum qca_wlan_vendor_attr_medium_assess {
11160 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
11161 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
11162 
11163 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
11164 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
11165 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
11166 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
11167 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
11168 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
11169 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
11170 
11171 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
11172 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
11173 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
11174 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
11175 
11176 	/* keep last */
11177 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
11178 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
11179 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
11180 };
11181 
11182 /**
11183  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
11184  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
11185  *
11186  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
11187  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
11188  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
11189  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
11190  *
11191  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
11192  * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
11193  *
11194  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
11195  * u8 attribute, required. indicates group id of Tx VDEV
11196  *
11197  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
11198  * Nested attribute. This attribute shall be used by the driver to send
11199  * group information. The attributes defined in enum
11200  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
11201  * are nested in this attribute.
11202  */
11203 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
11204 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
11205 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
11206 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
11207 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
11208 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
11209 
11210 	/* keep last */
11211 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
11212 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
11213 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
11214 };
11215 
11216 /**
11217  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
11218  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
11219  *
11220  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
11221  * u32 attribute, required. contains interface index.
11222  *
11223  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
11224  * u8 attribute, required. 0 - means vdev is in down state.
11225  * 1- means vdev is in up state.
11226  */
11227 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
11228 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
11229 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
11230 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
11231 
11232 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
11233 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
11234 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
11235 };
11236 
11237 /**
11238  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
11239  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
11240  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
11241  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
11242  * frame
11243  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
11244  * Request frame.
11245  */
11246 enum qca_wlan_vendor_oci_override_frame_type {
11247 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
11248 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
11249 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
11250 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
11251 };
11252 
11253 /**
11254  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
11255  *
11256  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
11257  * STA interface has to be given while selecting the connection policies
11258  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
11259  * An interface is set as primary through the attribute
11260  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
11261  * applicable if the primary interface has not been set earlier.
11262  *
11263  * The intention is not to downgrade the primary STA performance, such as:
11264  * - Do not reduce the number of TX/RX chains of primary connection.
11265  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
11266  *   chains.
11267  * - If using MCC, should set the MCC duty cycle of the primary connection to
11268  *   be higher than the secondary connection.
11269  *
11270  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
11271  * subsequent STA connection shall be chosen to balance with the existing
11272  * concurrent STA's performance.
11273  * Such as
11274  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
11275  *   capability.
11276  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
11277  *   to the secondary.
11278  * - Prefer BSSID candidates which will help provide the best "overall"
11279  *   performance for all the STA connections.
11280  */
11281 enum qca_wlan_concurrent_sta_policy_config {
11282 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
11283 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
11284 };
11285 
11286 /**
11287  * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes
11288  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command.
11289  *
11290  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG:
11291  * u8 attribute. Configures the concurrent STA policy configuration.
11292  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
11293  */
11294 enum qca_wlan_vendor_attr_concurrent_sta_policy {
11295 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0,
11296 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1,
11297 
11298 	/* keep last */
11299 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST,
11300 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX =
11301 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1,
11302 
11303 };
11304 
11305 /**
11306  * enum qca_sta_connect_fail_reason_codes - Defines values carried
11307  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
11308  * attribute.
11309  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
11310  * for unicast probe request.
11311  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
11312  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
11313  * ath request.
11314  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
11315  * received from AP.
11316  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
11317  * request.
11318  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
11319  * assoc request.
11320  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
11321  * received from AP.
11322  */
11323 enum qca_sta_connect_fail_reason_codes {
11324 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
11325 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
11326 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
11327 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
11328 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
11329 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
11330 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
11331 };
11332 
11333 /**
11334  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
11335  * OCI override request. These attributes are used inside nested attribute
11336  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
11337  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
11338  *
11339  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
11340  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
11341  * attribute to specify the frame type in which the OCI is to be overridden.
11342  *
11343  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
11344  * OCI frequency (in MHz) to override in the specified frame type.
11345  */
11346 enum qca_wlan_vendor_attr_oci_override {
11347 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
11348 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
11349 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
11350 
11351 	/* keep last */
11352 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
11353 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
11354 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
11355 };
11356 
11357 /**
11358  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
11359  * filters defined in this enum are used in attribute
11360  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
11361  *
11362  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
11363  * shall filter the channels which are not usable because of coexistence with
11364  * cellular radio.
11365  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
11366  * shall filter the channels which are not usable because of existing active
11367  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
11368  *
11369  */
11370 enum qca_wlan_vendor_usable_channels_filter {
11371 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
11372 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
11373 };
11374 
11375 /**
11376  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
11377  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
11378  *
11379  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
11380  * u32 attribute, required. Indicates the center frequency of the primary
11381  * channel in MHz.
11382  *
11383  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
11384  * u32 attribute. Indicates the center frequency of the primary segment of the
11385  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
11386  * 160 MHz, and 320 MHz channels.
11387  *
11388  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
11389  * u32 attribute. Indicates the center frequency of the secondary segment of
11390  * 80+80 channel in MHz. This attribute is required only when
11391  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
11392  *
11393  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
11394  * u32 attribute, required. Indicates the bandwidth of the channel, possible
11395  * values are defined in enum nl80211_chan_width.
11396  *
11397  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
11398  * u32 attribute, required. Indicates all the interface types for which this
11399  * channel is usable. This attribute encapsulates bitmasks of interface types
11400  * defined in enum nl80211_iftype.
11401  *
11402  */
11403 enum qca_wlan_vendor_attr_chan_info {
11404 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
11405 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
11406 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
11407 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
11408 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
11409 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
11410 
11411 	/* keep last */
11412 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
11413 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
11414 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
11415 };
11416 
11417 /**
11418  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
11419  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
11420  *
11421  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
11422  * u32 attribute. Indicates the bands from which the channels should be reported
11423  * in response. This attribute encapsulates bit masks of bands defined in enum
11424  * nl80211_band. Optional attribute, if not present in the request the driver
11425  * shall return channels from all supported bands.
11426  *
11427  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
11428  * u32 attribute. Indicates all the interface types for which the usable
11429  * channels information is requested. This attribute encapsulates bitmasks of
11430  * interface types defined in enum nl80211_iftype. Optional attribute, if not
11431  * present in the request the driver shall send information of all supported
11432  * interface modes.
11433  *
11434  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
11435  * u32 attribute. This attribute carries information of all filters that shall
11436  * be applied while populating usable channels information by the driver. This
11437  * attribute carries bit masks of different filters defined in enum
11438  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
11439  * in the request the driver shall send information of channels without applying
11440  * any of the filters that can be configured through this attribute.
11441  *
11442  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
11443  * Nested attribute. This attribute shall be used by the driver to send
11444  * usability information of each channel. The attributes defined in enum
11445  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
11446  */
11447 enum qca_wlan_vendor_attr_usable_channels {
11448 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
11449 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
11450 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
11451 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
11452 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
11453 
11454 	/* keep last */
11455 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
11456 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
11457 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
11458 };
11459 
11460 /**
11461  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
11462  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
11463  *
11464  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
11465  *	the list of radar history entries.
11466  *	Each entry contains freq, timestamp, and radar signal detect flag.
11467  *	The driver shall add an entry when CAC has finished, or radar signal
11468  *	has been detected post AP beaconing. The driver shall maintain at least
11469  *	8 entries in order to save CAC result for a 160 MHz channel.
11470  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
11471  *	Channel frequency in MHz.
11472  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
11473  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
11474  *	or radar detection.
11475  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
11476  *	This flag indicates radar signal has been detected.
11477  */
11478 enum qca_wlan_vendor_attr_radar_history {
11479 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
11480 
11481 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
11482 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
11483 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
11484 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
11485 
11486 	/* keep last */
11487 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
11488 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
11489 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
11490 };
11491 
11492 /**
11493  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
11494  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
11495  *
11496  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
11497  * Enable mDNS offload. This attribute is mandatory to enable
11498  * mDNS offload feature. If this attribute is not present, mDNS offload
11499  * is disabled.
11500  *
11501  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
11502  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
11503  * attribute is mandatory when enabling the feature, and not required when
11504  * disabling the feature.
11505  *
11506  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
11507  * the following attributes:
11508  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
11509  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
11510  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
11511  *
11512  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
11513  * It consists of a hostname and ".local" as the domain name. The character
11514  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
11515  * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
11516  * supported per vdev.
11517  * For example: myphone.local
11518  *
11519  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
11520  * u16 attribute. It specifies the total number of resource records present
11521  * in the answer section of the answer payload. This attribute is needed by the
11522  * firmware to populate the mDNS response frame for mNDS queries without having
11523  * to parse the answer payload.
11524  *
11525  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
11526  * attribute sent by the mdnsResponder from userspace. It contains resource
11527  * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
11528  * payload is passed down to firmware and is transmitted in response to
11529  * mDNS queries.
11530  * The maximum size of the answer payload supported is 512 bytes.
11531  */
11532 enum qca_wlan_vendor_attr_mdns_offload {
11533 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
11534 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
11535 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
11536 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
11537 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
11538 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
11539 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
11540 
11541 	/* keep last */
11542 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
11543 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
11544 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
11545 };
11546 
11547 /**
11548  * enum qca_vendor_attr_diag_event_type  - Attributes used by
11549  * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
11550  *
11551  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
11552  * driver/firmware during Connection request from Userspace. Uses the
11553  * following attributes of enum qca_wlan_vendor_attr_diag:
11554  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11555  * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
11556  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11557  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
11558  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
11559  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
11560  * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
11561  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
11562  * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
11563  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
11564  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
11565  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
11566  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX.
11567  *
11568  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
11569  * driver/firmware when a connection is failed. Uses the
11570  * following attributes of enum qca_wlan_vendor_attr_diag:
11571  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11572  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11573  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
11574  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11575  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE.
11576  *
11577  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
11578  * driver/firmware during Authentication request from a device. Uses the
11579  * following attributes of enum qca_wlan_vendor_attr_diag:
11580  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11581  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11582  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
11583  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
11584  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
11585  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
11586  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
11587  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
11588  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11589  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
11590  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11591  *
11592  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
11593  * driver/firmware when device receives an authentication response. Uses the
11594  * following attributes of enum qca_wlan_vendor_attr_diag:
11595  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11596  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11597  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
11598  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
11599  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
11600  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
11601  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11602  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
11603  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11604  *
11605  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
11606  * driver/firmware when device sends an association request. Uses the
11607  * following attributes of enum qca_wlan_vendor_attr_diag:
11608  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11609  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11610  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
11611  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
11612  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
11613  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11614  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
11615  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11616  *
11617  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
11618  * driver/firmware when device receives an association response. Uses the
11619  * following attributes of enum qca_wlan_vendor_attr_diag:
11620  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11621  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11622  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
11623  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
11624  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11625  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
11626  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11627  *
11628  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
11629  * driver/userspace when device receives a deauthentication response. Uses the
11630  * following attributes of enum qca_wlan_vendor_attr_diag:
11631  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11632  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11633  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
11634  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
11635  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
11636  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11637  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
11638  *
11639  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
11640  * driver/userspace when device sends a deauthentication request. Uses the
11641  * following attributes of enum qca_wlan_vendor_attr_diag:
11642  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11643  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11644  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
11645  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
11646  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
11647  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11648  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
11649  *
11650  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
11651  * driver/firmware when device receives a disassociation response. Uses the
11652  * following attributes of enum qca_wlan_vendor_attr_diag:
11653  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11654  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11655  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
11656  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
11657  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
11658  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11659  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
11660  *
11661  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
11662  * driver/firmware when device sends a disassociation request. Uses the
11663  * following attributes of enum qca_wlan_vendor_attr_diag:
11664  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11665  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11666  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
11667  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
11668  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
11669  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11670  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
11671  *
11672  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
11673  * driver/firmware when device did not receive beacon packets during connection.
11674  * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
11675  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11676  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11677  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
11678  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
11679  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX.
11680  *
11681  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
11682  * driver/firmware when Roaming scan is triggered. Uses the following
11683  * attributes of enum qca_wlan_vendor_attr_diag:
11684  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11685  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
11686  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
11687  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
11688  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
11689  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
11690  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
11691  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11692  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11693  *
11694  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
11695  * driver/firmware Roam scanning is processed. Uses the following
11696  * attributes of enum qca_wlan_vendor_attr_diag:
11697  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11698  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
11699  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
11700  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
11701  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
11702  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11703  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11704  *
11705  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
11706  * driver/firmware to provide Roam information of the current AP. Uses the
11707  * following attributes of enum qca_wlan_vendor_attr_diag:
11708  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11709  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11710  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
11711  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
11712  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
11713  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
11714  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11715  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11716  *
11717  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
11718  * driver/firmware to provide Roam information of the candid AP. Uses the
11719  * following attributes of enum qca_wlan_vendor_attr_diag:
11720  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11721  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11722  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
11723  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
11724  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
11725  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
11726  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
11727  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
11728  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11729  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11730  *
11731  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
11732  * driver/firmware to provide Roam result after selecting a candidate. Uses the
11733  * following attributes of enum qca_wlan_vendor_attr_diag:
11734  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11735  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
11736  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11737  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11738  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11739  *
11740  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
11741  * driver/firmware to indicate Roam Cancellation due to higher priority events.
11742  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11743  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11744  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
11745  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE.
11746  *
11747  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
11748  * /firmware when STA sends a BTM request frame. Uses the following attributes
11749  * of enum qca_wlan_vendor_attr_diag:
11750  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11751  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
11752  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
11753  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
11754  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
11755  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
11756  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11757  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11758  *
11759  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
11760  * driver/firmware when STA queries about BTM transition. Uses the following
11761  * attributes of enum qca_wlan_vendor_attr_diag:
11762  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11763  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
11764  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
11765  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11766  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11767  *
11768  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
11769  * /firmware when STA receives BTM response frame. Uses the following
11770  * attributes of enum qca_wlan_vendor_attr_diag:
11771  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11772  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
11773  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
11774  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
11775  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
11776  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11777  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11778  *
11779  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
11780  * driver/firmware to provide BTM request candidate information. Uses the
11781  * following attributes of enum qca_wlan_vendor_attr_diag:
11782  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11783  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
11784  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
11785  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
11786  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11787  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11788  *
11789  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
11790  * /firmware when ROAM WTC trigger happens. Uses the following attributes of
11791  * enum qca_wlan_vendor_attr_diag:
11792  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11793  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
11794  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
11795  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
11796  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11797  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11798  *
11799  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
11800  * driver/firmware to indicate DHCP discovery to AP. Uses the following
11801  * attributes of enum qca_wlan_vendor_attr_diag:
11802  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11803  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
11804  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX.
11805  *
11806  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
11807  * driver/firmware to indicate DHCP offering to AP. Uses the following
11808  * attributes of enum qca_wlan_vendor_attr_diag:
11809  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11810  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
11811  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX.
11812  *
11813  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
11814  * driver/firmware to indicate driver sent DHCP packets. Uses the following
11815  * attributes of enum qca_wlan_vendor_attr_diag:
11816  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11817  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
11818  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX.
11819  *
11820  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
11821  * /firmware to indicate acknowledgement of DHCP packets. Uses the following
11822  * attributes of enum qca_wlan_vendor_attr_diag:
11823  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11824  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
11825  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX.
11826  *
11827  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
11828  * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
11829  * following attributes of enum qca_wlan_vendor_attr_diag:
11830  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11831  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
11832  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX.
11833  *
11834  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
11835  * /firmware to indicate EAPOL M1 message. Uses the following attributes of
11836  * enum qca_wlan_vendor_attr_diag:
11837  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11838  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11839  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11840  *
11841  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
11842  * /firmware to indicate EAPOL M2 message. Uses the following attributes of
11843  * enum qca_wlan_vendor_attr_diag:
11844  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11845  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
11846  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11847  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11848  *
11849  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
11850  * /firmware to indicate EAPOL M3 message. Uses the following attributes of
11851  * enum qca_wlan_vendor_attr_diag:
11852  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11853  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11854  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11855  *
11856  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
11857  * /firmware to indicate EAPOL M4 message. Uses the following attributes of
11858  * enum qca_wlan_vendor_attr_diag:
11859  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11860  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
11861  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11862  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11863  *
11864  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
11865  * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
11866  * enum qca_wlan_vendor_attr_diag:
11867  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11868  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11869  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11870  *
11871  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
11872  * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
11873  * enum qca_wlan_vendor_attr_diag:
11874  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11875  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
11876  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
11877  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
11878  *
11879  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
11880  * /firmware to indicate device sent EAP request. Uses the following attributes
11881  * of enum qca_wlan_vendor_attr_diag:
11882  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11883  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
11884  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
11885  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX.
11886  *
11887  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
11888  * /firmware to indicate device received EAP response. Uses the following
11889  * attributes of enum qca_wlan_vendor_attr_diag:
11890  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11891  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
11892  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
11893  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
11894  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX.
11895  *
11896  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
11897  * /firmware to indicate EAP frame transmission is success. Uses the following
11898  * attributes of enum qca_wlan_vendor_attr_diag:
11899  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11900  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX.
11901  *
11902  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
11903  * /firmware to indicate EAP frame transmission is failed. Uses the following
11904  * attributes of enum qca_wlan_vendor_attr_diag:
11905  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
11906  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX.
11907  */
11908 enum qca_vendor_attr_diag_event_type {
11909 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
11910 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
11911 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
11912 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
11913 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
11914 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
11915 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
11916 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
11917 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
11918 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
11919 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
11920 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
11921 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
11922 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
11923 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
11924 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
11925 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
11926 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
11927 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
11928 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
11929 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
11930 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
11931 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
11932 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
11933 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
11934 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
11935 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
11936 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
11937 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
11938 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
11939 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
11940 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
11941 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
11942 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
11943 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
11944 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
11945 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
11946 
11947 	/* keep last */
11948 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
11949 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
11950 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
11951 };
11952 
11953 /**
11954  * enum qca_wlan_vendor_tx_status - Used by attribute
11955  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
11956  * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
11957  * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
11958  * is not received.
11959  * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
11960  * acknowledged.
11961  */
11962 enum qca_wlan_vendor_tx_status {
11963 	QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
11964 	QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
11965 	QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
11966 };
11967 
11968 /**
11969  * enum qca_roam_sub_reason - Used by attribute
11970  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
11971  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
11972  * timer expiry
11973  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
11974  * to no candidate found during LOW RSSI trigger.
11975  * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
11976  * Imminent timeout
11977  * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
11978  * failure
11979  * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
11980  * emergency like deauth/disassoc.
11981  * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
11982  * BSS transition management request.
11983  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
11984  * Roam scan triggered due to Low RSSI periodic timer
11985  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
11986  * Roam trigger due to periodic timer after no candidate found during CU
11987  * inactivity timer scan.
11988  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
11989  * found in high CU roam trigger.
11990  */
11991 enum qca_roam_sub_reason {
11992 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
11993 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
11994 	QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
11995 	QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
11996 	QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
11997 	QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
11998 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
11999 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
12000 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
12001 };
12002 
12003 /*
12004  * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
12005  * to send diag data to the userspace. The attributes defined in this enum are
12006  * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
12007  *
12008  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
12009  * by driver/firmware to send diag data. Each instance of this nested attribute
12010  * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
12011  * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
12012  * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
12013  * nested attribute can be sent with one vendor command
12014  * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
12015  *
12016  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
12017  * attribute indicates the type of the diag event from driver/firmware. Uses
12018  * values from enum qca_vendor_attr_diag_event_type.
12019  *
12020  * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
12021  * attribute indicates the kernel timestamp. The value is filled as time of the
12022  * day converted to microseconds.
12023  *
12024  * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
12025  * This attribute indicates firmware timestamp in microseconds.
12026  *
12027  * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
12028  * indicates wlan interface index.
12029  *
12030  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
12031  * indicates 6-byte MAC address representing the BSSID of the AP.
12032  *
12033  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
12034  * indicates the 6-byte MAC address representing the BSSID hint sent in
12035  * the connect request.
12036  *
12037  * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
12038  * indicates the SSID in u8 array with a maximum length of 32.
12039  *
12040  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
12041  * indicates the frequency of AP in MHz.
12042  *
12043  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
12044  * indicates frequency hint given in the connect request in MHz.
12045  *
12046  * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
12047  * This attribute indicates RSSI of the 802.11 frame in dBm.
12048  *
12049  * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
12050  * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
12051  * Table 12-10—Integrity and key wrap algorithms.
12052  *
12053  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
12054  * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
12055  * Table 12-10—Integrity and key wrap algorithms.
12056  *
12057  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
12058  * attribute indicates Group management cipher suite defined in IEEE Std
12059  * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
12060  *
12061  * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
12062  * indicates Auth key management suite defined in IEEE Std 802.11‐2020
12063  * Table 9-151—AKM suite selectors.
12064  *
12065  * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
12066  * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
12067  * Section 9.4.1.1 Authentication Algorithm Number field.
12068  *
12069  * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
12070  * indicates bluetooth COEX is active or not.
12071  *
12072  * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
12073  * attribute indicates SAE authentication frame type. The possible values are
12074  * 1 - SAE commit frame
12075  * 2 - SAE confirm frame
12076  *
12077  * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
12078  * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
12079  * Table 9-49—Reason codes.
12080  *
12081  * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
12082  * attribute indicates sequence number of the frame defined in IEEE Std
12083  * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
12084  * field.
12085  *
12086  * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
12087  * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
12088  * 9-50—Status codes.
12089  *
12090  * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
12091  * Uses enum qca_wlan_vendor_tx_status.
12092  *
12093  * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
12094  * indicates if frame transmission is retried.
12095  *
12096  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
12097  * Uses enum qca_roam_reason.
12098  *
12099  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
12100  * Uses enum qca_roam_sub_reason.
12101  *
12102  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
12103  * indicates channel utilization in percentage.
12104  *
12105  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
12106  * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
12107  *
12108  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
12109  * This attribute indicates current RSSI threshold in dBm.
12110  *
12111  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
12112  * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
12113  * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
12114  *
12115  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
12116  * This attribute indicates number of scanned candidate APs.
12117  *
12118  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
12119  * attribute indicates roam AP rank computed based on connection preference.
12120  *
12121  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
12122  * This attribute indicates expected throughput in kbps.
12123  *
12124  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
12125  * This attribute indicates the preference value of candidate AP / connected AP
12126  * calculated in the firmware.
12127  *
12128  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
12129  * indicates connection/roaming is successful or not.
12130  *
12131  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
12132  * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
12133  * IE present in the BTM frame.
12134  *
12135  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
12136  * This attribute indicates BTM WTC duration in milliseconds.
12137  *
12138  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
12139  * indicates dialog token value of BTM query/request/response frames.
12140  *
12141  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
12142  * attribute indicates the Transition Reason field indicates the reason why
12143  * a transition attempt occurred and contains one of the values defined in IEEE
12144  * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
12145  *
12146  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
12147  * indicates BTM mode defined in IEEE Std 802.11‐2020
12148  * Figure 9-924—Request Mode field format.
12149  *
12150  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
12151  * This attribute indicates the Disassociation Timer field which is the number
12152  * of beacon transmission times (TBTTs) until the serving AP will send a
12153  * Disassociation frame to this STA.
12154  *
12155  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
12156  * This attribute indicates BTM validity interval field in TBTTs defined in
12157  * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
12158  * Action field format.
12159  *
12160  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
12161  * This attribute indicates BTM candidate list entries.
12162  *
12163  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
12164  * This attribute indicates network preference for BTM transition defined in
12165  * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
12166  *
12167  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
12168  * This attribute indicates BTM transition status code defined in IEEE Std
12169  * 802.11‐2020 Table 9-428—BTM status code definitions.
12170  *
12171  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
12172  * This attribute indicates BSS termination delay defined in IEEE Std
12173  * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
12174  *
12175  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
12176  * This attribute indicates 6-byte MAC address representing the BSSID of the
12177  * BSS that the non-AP STA transitions to.
12178  *
12179  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
12180  * indicates EAP frame type. The methods are enumerated by IANA at
12181  * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
12182  *
12183  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
12184  * indicates EAP frame length.
12185  */
12186 enum qca_wlan_vendor_attr_diag {
12187 	QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
12188 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
12189 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
12190 	QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
12191 	QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
12192 	QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
12193 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
12194 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
12195 	QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
12196 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
12197 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
12198 	QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
12199 	QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
12200 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
12201 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
12202 	QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
12203 	QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
12204 	QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
12205 	QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
12206 	QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
12207 	QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
12208 	QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
12209 	QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
12210 	QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
12211 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
12212 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
12213 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
12214 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
12215 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
12216 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
12217 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
12218 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
12219 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
12220 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
12221 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
12222 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
12223 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
12224 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
12225 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
12226 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
12227 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
12228 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
12229 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
12230 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
12231 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
12232 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
12233 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
12234 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
12235 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
12236 
12237 	/* keep last */
12238 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
12239 	QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
12240 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
12241 };
12242 
12243 #endif
12244