xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/qca_vendor.h (revision 11f5a63a6cbdda84849a730de22f0a71e635d58c)
1 /*
2  * Copyright (c) 2012-2019 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 /**
38  * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
39  *
40  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
41  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
42  *	Sub commands 2 to 8 are not used
43  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
44  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
45  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
46  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
47  *	NAN Request/Response and NAN Indication messages. These messages are
48  *	interpreted between the framework and the firmware component. While
49  *	sending the command from userspace to the driver, payload is not
50  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
51  *	is used when receiving vendor events in userspace from the driver.
52  * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
53  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
54  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
55  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
56  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
57  *	results
58  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
59  *	results
60  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
61  *	results
62  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
63  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
64  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
65  *	channels
66  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
67  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
68  *	results
69  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
70  *	available. Used when report_threshold is reached in scan cache.
71  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
72  *	result. Used to report scan results when each probe rsp. is received,
73  *	if report_events enabled in wifi_scan_cmd_params.
74  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
75  *	Indicates progress of scanning state-machine.
76  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
77  *	ap found
78  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
79  *	bssid
80  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
81  *	hotlist bssid
82  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
83  *	change
84  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
85  *	significant change
86  *	ap found
87  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
88  *	significant change
89  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
90  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
91  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
92  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
93  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
94  * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
95  * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
96  * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
97  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
98  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
99  * roaming and auth information.
100  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
101  *
102  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
103  *	invoke the ACS function in device and pass selected channels to
104  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
105  *
106  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
107  * driver.
108  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
109  *	started CAC on DFS channel
110  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
111  * 	completed the CAC check on DFS channel
112  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
113  * 	check was aborted by the driver
114  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
115  * 	driver completed NOP
116  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
117  * 	driver detected radar signal on the current operating channel
118  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
119  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
120  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
121  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
122  * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
123  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
124  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
125  *	extscan reset ssid hotlist
126  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
127  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
128  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
129  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
130  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
131  *	reset passpoint list
132  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
133  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
134  *	passpoint network found
135  * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
136  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
137  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
138  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
139  * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
140  * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
141 	list
142  * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
143  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: vendor setband command
144  * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
145  * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
146  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
147  * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
148  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
149  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
150  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
151  * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
152  * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
153  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
154  *	start the P2P Listen Offload function in device and pass the listen
155  *	channel, period, interval, count, number of device types, device
156  *	types and vendor information elements to device driver and firmware.
157  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
158  *	indicate stop request/response of the P2P Listen Offload function in
159  *	device. As an event, it indicates either the feature stopped after it
160  *	was already running or feature has actually failed to start.
161  * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
162  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
163  *     beaconing, this sub command provides the driver, the frequencies on the
164  *     5 GHz to check for any radar activity. Driver selects one channel from
165  *     this priority list provided through
166  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
167  *     to check for radar activity on it. If no radar activity is detected
168  *     during the channel availability check period, driver internally switches
169  *     to the selected frequency of operation. If the frequency is zero, driver
170  *     internally selects a channel. The status of this conditional switch is
171  *     indicated through an event using the same sub command through
172  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
173  *     listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
174  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
175  *      indication period and threshold for MAC layer counters.
176  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
177  *	in the host driver. The different TDLS configurations are defined
178  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
179  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
180  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
181  *	(SAR) power limits. A critical regulation for FCC compliance, OEMs
182  *	require methods to set SAR limits on TX power of WLAN/WWAN.
183  *	enum qca_vendor_attr_sar_limits attributes are used with this command.
184  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
185  *      configuration of vendor ACS.
186  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
187  *      requisite information leading to a power save failure. The information
188  *      carried as part of this event is represented by the
189  *      enum qca_attr_chip_power_save_failure attributes.
190  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
191  *      collection. Uses attributes defined in enum qca_attr_nud_stats_set.
192  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
193  *      statistics are represented by the enum qca_attr_nud_stats_get
194  *      attributes.
195  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
196  *      the BSS transition status, whether accept or reject, for a list of
197  *      candidate BSSIDs provided by the userspace. This uses the vendor
198  *      attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
199  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
200  *      the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
201  *      array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
202  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
203  *      the driver shall specify array of
204  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
205  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
206  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
207  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
208  *      specific QCA module. The trace levels are represented by
209  *      enum qca_attr_trace_level attributes.
210  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
211  *      Protocol antenna limit in different modes. See enum
212  *      qca_wlan_vendor_attr_brp_ant_limit_mode.
213  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
214  *      parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
215  *      This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
216  *      identifying the operation in success case. In failure cases an
217  *      error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
218  *      describing the reason for the failure is returned.
219  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
220  *      a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
221  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
222  *      be stopped.
223  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
224  *     specific interface. This can be used to modify some of the low level
225  *     scan parameters (off channel dwell time, home channel time) in the
226  *     driver/firmware. These parameters are maintained within the host
227  *     driver.
228  *     This command is valid only when the interface is in the connected
229  *     state.
230  *     These scan parameters shall be reset by the driver/firmware once
231  *     disconnected. The attributes used with this command are defined in
232  *     enum qca_wlan_vendor_attr_active_tos.
233  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
234  *      driver has detected an internal failure. This event carries the
235  *      information indicating the reason that triggered this detection. The
236  *      attributes for this command are defined in
237  *      enum qca_wlan_vendor_attr_hang.
238  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
239  *     of spectral parameters used. The spectral scan parameters are specified
240  *     by enum qca_wlan_vendor_attr_spectral_scan.
241  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
242  *     for spectral scan functionality. The debug stats are specified by
243  *     enum qca_wlan_vendor_attr_spectral_diag_stats.
244  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
245  *     scan system capabilities. The capabilities are specified
246  *     by enum qca_wlan_vendor_attr_spectral_cap.
247  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
248  *     status of spectral scan. The status values are specified
249  *     by enum qca_wlan_vendor_attr_spectral_scan_status.
250  * @QCA_NL80211_VENDOR_SUBCMD_HTT_STATS: Request the firmware
251  *     DP stats for a particualr stats type for response evnet
252  *     it carries the stats data sent from the FW
253  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
254  *     RF Operating Parameter (RROP) information. The attributes for this
255  *     information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
256  *     intended for use by external Auto Channel Selection applications.
257  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
258  *	(SAR) power limits. This is a companion to the command
259  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
260  *	settings currently in use. The attributes returned by this command are
261  *	defined by enum qca_vendor_attr_sar_limits.
262  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
263  *      the WLAN hardware MAC's associated with each WLAN netdev interface.
264  *      This works both as a query (user space asks the current mode) or event
265  *      interface (driver advertizing the current mode to the user space).
266  *      Driver does not trigger this event for temporary hardware mode changes.
267  *      Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
268  *      channel change etc ) are updated with this event. Attributes for this
269  *      interface are defined in enum qca_wlan_vendor_attr_mac.
270  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
271  *	per peer per TID. Attributes for this command are define in
272  *	enum qca_wlan_set_qdepth_thresh_attr
273  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
274  *	test configuration. Attributes for this command are defined in
275  *	enum qca_wlan_vendor_attr_wifi_test_config.
276  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
277  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
278  *	carried a payload which was a binary blob of data. The command was not
279  *	extendable to send more information. The newer version carries the
280  *	legacy blob encapsulated within an attribute and can be extended with
281  *	additional vendor attributes that can enhance the NAN command
282  *	interface.
283  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
284  *	The returned firmware state is specified in the attribute
285  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
286  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
287  *	is used by host driver to flush per-peer cached statistics to user space
288  *	application. This interface is used as an event from host driver to
289  *	user space application. Attributes for this event are specified in
290  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
291  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
292  *	sent as event from host driver.
293  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
294  *	improve the success rate of Zigbee joining network.
295  *	Due to PTA master limitation, zigbee joining network success rate is
296  *	low while wlan is working. Wlan host driver need to configure some
297  *	parameters including Zigbee state and specific WLAN periods to enhance
298  *	PTA master. All this parameters are delivered by the NetLink attributes
299  *	defined in "enum qca_mpta_helper_vendor_attr".
300  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
301  *	implement Beacon frame reporting feature.
302  *
303  *	Userspace can request the driver/firmware to periodically report
304  *	received Beacon frames whose BSSID is same as the current connected
305  *	BSS's MAC address.
306  *
307  *	In case the STA seamlessly (without sending disconnect indication to
308  *	userspace) roams to a different BSS, Beacon frame reporting will be
309  *	automatically enabled for the Beacon frames whose BSSID is same as the
310  *	MAC address of the new BSS. Beacon reporting will be stopped when the
311  *	STA is disconnected (when the disconnect indication is sent to
312  *	userspace) and need to be explicitly enabled by userspace for next
313  *	connection.
314  *
315  *	When a Beacon frame matching configured conditions is received, and if
316  *	userspace has requested to send asynchronous beacon reports, the
317  *	driver/firmware will encapsulate the details of the Beacon frame in an
318  *	event and send it to userspace along with updating the BSS information
319  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
320  *	scan cache with the information from the received Beacon frame but
321  *	will not send any active report to userspace.
322  *
323  *	The userspace can request the driver/firmware to stop reporting Beacon
324  *	frames. If the driver/firmware is not able to receive Beacon frames
325  *	due to other Wi-Fi operations such as off-channel activities, etc.,
326  *	the driver/firmware will send a pause event to userspace and stop
327  *	reporting Beacon frames. Whether the beacon reporting will be
328  *	automatically resumed or not by the driver/firmware later will be
329  *	reported to userspace using the
330  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
331  *	reporting shall be resumed for all the cases except either when
332  *	userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
333  *	in the command which triggered the current beacon reporting or during
334  *	any disconnection case as indicated by setting
335  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
336  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
337  *	driver.
338  *
339  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
340  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
341  *	flag not set, the next first
342  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
343  *	shall be considered as un-pause event.
344  *
345  *	All the attributes used with this command are defined in
346  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
347  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
348  *	interop issues with the DUT. This sub command is used to transfer the
349  *	ap info between driver and user space. This works both as a command
350  *	or event. As a command, it configs the stored list of aps from user
351  *	space to firmware; as an event, it indicates the ap info detected by
352  *	firmware to user space for persistent storage. The attributes defined
353  *	in enum qca_vendor_attr_interop_issues_ap are used to deliver the
354  *	parameters.
355  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
356  *	binary blobs from application/service to firmware. The attributes
357  *	defined in enum qca_wlan_vendor_attr_oem_data_params are used to
358  *	deliver the parameters.
359  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
360  *	add the STA node details in driver/firmware. Attributes for this event
361  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
362  */
363 
364 enum qca_nl80211_vendor_subcmds {
365 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
366 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
367 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
368 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
369 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
370 	QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
371 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
372 
373 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
374 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
375 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
376 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
377 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
378 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
379 
380 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
381 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
382 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
383 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
384 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
385 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
386 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
387 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
388 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
389 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
390 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
391 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
392 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
393 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
394 
395 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
396 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
397 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
398 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
399 
400 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
401 
402 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
403 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
404 
405 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
406 
407 	/* Get Concurrency Matrix */
408 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
409 
410 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
411 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
412 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
413 
414 	/* Deprecated */
415 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
416 
417 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
418 
419 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
420 
421 	/* Off loaded DFS events */
422 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
423 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
424 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
425 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
426 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
427 
428 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
429 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
430 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
431 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
432 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
433 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
434 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
435 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
436 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
437 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
438 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
439 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
440 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
441 
442 	/* Wi-Fi Configuration subcommands */
443 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
444 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
445 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
446 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
447 
448 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
449 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
450 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
451 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
452 
453 	/* NS Offload enable/disable cmd */
454 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
455 
456 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
457 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
458 
459 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
460 
461 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
462 	/* OCB commands */
463 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
464 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
465 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
466 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
467 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
468 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
469 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
470 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
471 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
472 
473 	/* subcommand to get link properties */
474 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
475 	/* LFR Subnet Detection */
476 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
477 
478 	/* DBS subcommands */
479 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
480 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
481 
482 	/* Vendor setband command */
483 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
484 
485 	/* Vendor scan commands */
486 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
487 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
488 
489 	/* OTA test subcommand */
490 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
491 	/* Tx power scaling subcommands */
492 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
493 	/* Tx power scaling in db subcommands */
494 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
495 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
496 	QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
497 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG  = 118,
498 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
499 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
500 	QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
501 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
502 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
503 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
504 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
505 
506 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
507 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
508 	/* FTM/indoor location subcommands */
509 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
510 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
511 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
512 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
513 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
514 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
515 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
516 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
517 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
518 
519 	/* Encrypt/Decrypt command */
520 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
521 
522 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
523 	/* DMG low level RF sector operations */
524 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
525 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
526 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
527 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
528 
529 	/* Configure the TDLS mode from user space */
530 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
531 
532 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
533 
534 	/* Vendor abort scan command */
535 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
536 
537 	/* Set Specific Absorption Rate(SAR) Power Limits */
538 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
539 
540 	/* External Auto channel configuration setting */
541 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
542 
543 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
544 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
545 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
546 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
547 
548 	/* Set the trace level for QDF */
549 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
550 
551 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
552 
553 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
554 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
555 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
556 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
557 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
558 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
559 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
560 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
561 	QCA_NL80211_VENDOR_SUBCMD_HTT_STATS = 162,
562 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
563 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
564 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
565 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
566 	/* Wi-Fi test configuration subcommand */
567 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
568 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
569 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
570 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
571 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
572 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
573 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
574 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
575 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
576 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
577 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
578 };
579 
580 enum qca_wlan_vendor_tos {
581 	QCA_WLAN_VENDOR_TOS_BK = 0,
582 	QCA_WLAN_VENDOR_TOS_BE = 1,
583 	QCA_WLAN_VENDOR_TOS_VI = 2,
584 	QCA_WLAN_VENDOR_TOS_VO = 3,
585 };
586 
587 /**
588  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
589  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
590  */
591 enum qca_wlan_vendor_attr_active_tos {
592 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
593 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
594 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
595 	/* Flag attribute representing the start (attribute included) or stop
596 	 * (attribute not included) of the respective TOS.
597 	 */
598 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
599 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
600 };
601 
602 enum qca_wlan_vendor_hang_reason {
603 	/* Unspecified reason */
604 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
605 	/* No Map for the MAC entry for the received frame */
606 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
607 	/* peer deletion timeout happened */
608 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
609 	/* peer unmap timeout */
610 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
611 	/* Scan request timed out */
612 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
613 	/* Consecutive Scan attempt failures */
614 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
615 	/* Unable to get the message buffer */
616 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
617 	/* Current command processing is timedout */
618 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
619 	/* Timeout for an ACK from FW for suspend request */
620 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
621 	/* Timeout for an ACK from FW for resume request */
622 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
623 	/* Transmission timeout for consecutive data frames */
624 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
625 	/* Timeout for the TX completion status of data frame */
626 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
627 	/* DXE failure for tx/Rx, DXE resource unavailability */
628 	QCA_WLAN_HANG_DXE_FAILURE = 12,
629 	/* WMI pending commands exceed the maximum count */
630 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
631 };
632 
633 /**
634  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
635  * QCA_NL80211_VENDOR_SUBCMD_HANG.
636  */
637 enum qca_wlan_vendor_attr_hang {
638 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
639 	/*
640 	 * Reason for the Hang - Represented by enum
641 	 * qca_wlan_vendor_hang_reason.
642 	 */
643 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
644 
645 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
646 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
647 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
648 };
649 
650 /**
651  * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
652  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
653  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
654  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
655     level needs to be updated.
656  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
657  * to be set.
658  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
659  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
660  */
661 enum qca_vendor_attr_set_trace_level {
662 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
663 	/*
664 	* Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
665 	* attributes.
666 	*/
667 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
668 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
669 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
670 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
671 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
672 		QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
673 };
674 
675 /**
676  * enum qca_wlan_vendor_attr_get_station - Sub commands used by
677  * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
678  * station information. The information obtained through these
679  * commands signify the current info in connected state and
680  * latest cached information during the connected state , if queried
681  * when in disconnected state.
682  *
683  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
684  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
685  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
686  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
687  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
688  */
689 enum qca_wlan_vendor_attr_get_station {
690 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
691 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
692 	QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
693 	QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
694 
695 	/* keep last */
696 	QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
697 	QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
698 		QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
699 };
700 
701 /**
702  * enum qca_wlan_802_11_mode - dot11 mode
703  * @QCA_WLAN_802_11_MODE_11B: mode B
704  * @QCA_WLAN_802_11_MODE_11G: mode G
705  * @QCA_WLAN_802_11_MODE_11N: mode N
706  * @QCA_WLAN_802_11_MODE_11A: mode A
707  * @QCA_WLAN_802_11_MODE_11AC: mode AC
708  * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
709  */
710 enum qca_wlan_802_11_mode {
711 	QCA_WLAN_802_11_MODE_11B,
712 	QCA_WLAN_802_11_MODE_11G,
713 	QCA_WLAN_802_11_MODE_11N,
714 	QCA_WLAN_802_11_MODE_11A,
715 	QCA_WLAN_802_11_MODE_11AC,
716 	QCA_WLAN_802_11_MODE_INVALID,
717 };
718 
719 /**
720  * enum qca_wlan_auth_type - Authentication key management type
721  * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
722  * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
723  * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
724  * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
725  * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
726  * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
727  * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
728  * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
729  * @QCA_WLAN_AUTH_TYPE_FT: ft key
730  * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
731  * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
732  * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
733  * @QCA_WLAN_AUTH_TYPE_WAI: wai key
734  * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
735  * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
736  * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
737  * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
738  * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
739  */
740 enum qca_wlan_auth_type {
741 	QCA_WLAN_AUTH_TYPE_INVALID,
742 	QCA_WLAN_AUTH_TYPE_OPEN,
743 	QCA_WLAN_AUTH_TYPE_SHARED,
744 	QCA_WLAN_AUTH_TYPE_WPA,
745 	QCA_WLAN_AUTH_TYPE_WPA_PSK,
746 	QCA_WLAN_AUTH_TYPE_WPA_NONE,
747 	QCA_WLAN_AUTH_TYPE_RSN,
748 	QCA_WLAN_AUTH_TYPE_RSN_PSK,
749 	QCA_WLAN_AUTH_TYPE_FT,
750 	QCA_WLAN_AUTH_TYPE_FT_PSK,
751 	QCA_WLAN_AUTH_TYPE_SHA256,
752 	QCA_WLAN_AUTH_TYPE_SHA256_PSK,
753 	QCA_WLAN_AUTH_TYPE_WAI,
754 	QCA_WLAN_AUTH_TYPE_WAI_PSK,
755 	QCA_WLAN_AUTH_TYPE_CCKM_WPA,
756 	QCA_WLAN_AUTH_TYPE_CCKM_RSN,
757 	QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
758 	QCA_WLAN_AUTH_TYPE_FT_SAE,
759 	QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
760 };
761 
762 /**
763  * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
764  * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
765  *
766  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
767  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
768  *  Get the standard NL attributes Nested with this attribute.
769  *  Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
770  *  NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
771  *  NL80211_ATTR_STA_INFO
772  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
773  *  Get the standard NL attributes Nested with this attribute.
774  *  Ex : Query HT/VHT Capability advertized by the AP.
775  *  NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
776  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
777  *  Number of successful Roam attempts before a
778  *  disconnect, Unsigned 32 bit value
779  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
780  *  Authentication Key Management Type used for the connected session.
781  *  Signified by enum qca_wlan_auth_type
782  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
783  *  connected Session, signified by enum qca_wlan_802_11_mode
784  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
785  *  HS20 Indication Element
786  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
787  *  Status Code Corresponding to the Association Failure.
788  *  Unsigned 32 bit value.
789  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
790  *  Max phy rate of remote station
791  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
792  *  TX packets to remote station
793  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
794  *  TX bytes to remote station
795  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
796  *  RX packets from remote station
797  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
798  *  RX bytes from remote station
799  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
800  *  Last TX rate with remote station
801  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
802  *  Last RX rate with remote station
803  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
804  *  Remote station enable/disable WMM
805  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
806  *  Remote station connection mode
807  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
808  *  Remote station AMPDU enable/disable
809  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
810  *  Remote station TX Space-time block coding enable/disable
811  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
812  *  Remote station RX Space-time block coding enable/disable
813  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
814  *  Remote station channel width
815  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
816  *  Remote station short GI enable/disable
817  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
818  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
819  */
820 enum qca_wlan_vendor_attr_get_station_info {
821 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
822 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
823 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
824 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
825 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
826 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
827 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
828 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
829 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
830 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
831 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
832 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
833 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
834 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
835 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
836 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
837 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
838 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
839 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
840 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
841 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
842 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
843 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
844 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
845 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
846 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
847 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
848 
849 	/* keep last */
850 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
851 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
852 		QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
853 };
854 
855 /**
856  * enum qca_nl80211_vendor_subcmds_index - vendor sub commands index
857  *
858  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX: Avoid frequency
859  * @QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX: Nan
860  * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX: Ext stats
861  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX: Ext scan start
862  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX: Ext scan stop
863  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX: Ext scan get
864  *	capability
865  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX: Ext scan get
866  *	cached results
867  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX: Ext scan
868  *	results available
869  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX: Ext scan full
870  *	scan result
871  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX: Ext scan event
872  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX: Ext scan hot list
873  *	AP found
874  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX: Ext scan set
875  *	bssid hotlist
876  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX: Ext scan reset
877  *	bssid hotlist
878  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX: Ext scan
879  *	significant change
880  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX: Ext scan
881  *	set significant change
882  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX: Ext scan
883  *	reset significant change
884  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX: Set stats
885  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX: Get stats
886  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX: Clear stats
887  * @QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX: Radio stats
888  * @QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX: Iface stats
889  * @QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX: Peer info stats
890  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT_INDEX: MAC layer counters
891  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX: Ext tdls state change
892  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX: ACS command
893  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX: Pass Roam and Auth info
894  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX: hotlist ap lost
895  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX:
896  *	pno network found index
897  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX:
898  *	passpoint match found index
899  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX:
900  *	set ssid hotlist index
901  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX:
902  *	reset ssid hotlist index
903  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX:
904  *	hotlist ssid found index
905  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX:
906  *	hotlist ssid lost index
907  * @QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX
908  *	dcc stats event index
909  * @QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX: vendor scan index
910  * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX:
911  *	vendor scan complete event  index
912  * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX:
913  *	update gateway parameters index
914  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP_INDEX:
915  *	update aps info which has interop issues events index
916  * @QCA_NL80211_VENDOR_SUBCMD_TSF_INDEX: TSF response events index
917  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LO_EVENT_INDEX:
918  *      P2P listen offload index
919  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH_INDEX: SAP
920  *      conditional channel switch index
921  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET_INDEX: NUD DEBUG Stats index
922  * @QCA_NL80211_VENDOR_SUBCMD_HANG_REASON_INDEX: hang event reason index
923  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO_INDEX: MAC mode info index
924  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT_INDEX: NAN Extended index
925  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX: Beacon reporting index
926  */
927 
928 enum qca_nl80211_vendor_subcmds_index {
929 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX = 0,
930 
931 	QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX,
932 
933 #ifdef WLAN_FEATURE_STATS_EXT
934 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX,
935 #endif /* WLAN_FEATURE_STATS_EXT */
936 
937 #ifdef FEATURE_WLAN_EXTSCAN
938 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX,
939 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX,
940 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX,
941 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX,
942 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX,
943 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX,
944 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX,
945 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX,
946 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX,
947 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX,
948 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX,
949 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX,
950 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX,
951 #endif /* FEATURE_WLAN_EXTSCAN */
952 
953 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
954 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX,
955 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX,
956 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX,
957 	QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX,
958 	QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX,
959 	QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX,
960 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT_INDEX,
961 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
962 
963 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX,
964 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX,
965 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
966 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX,
967 #endif
968 	/* DFS */
969 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED_INDEX,
970 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED_INDEX,
971 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED_INDEX,
972 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED_INDEX,
973 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED_INDEX,
974 #ifdef FEATURE_WLAN_EXTSCAN
975 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX,
976 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX,
977 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX,
978 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX,
979 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX,
980 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX,
981 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX,
982 #endif /* FEATURE_WLAN_EXTSCAN */
983 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION_INDEX,
984 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI_INDEX,
985 #ifdef WLAN_FEATURE_MEMDUMP
986 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP_INDEX,
987 #endif /* WLAN_FEATURE_MEMDUMP */
988 	/* OCB events */
989 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX,
990 	QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX,
991 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX,
992 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX,
993 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP_INDEX,
994 #ifdef WLAN_FEATURE_TSF
995 	QCA_NL80211_VENDOR_SUBCMD_TSF_INDEX,
996 #endif
997 	QCA_NL80211_VENDOR_SUBCMD_NDP_INDEX,
998 	QCA_NL80211_VENDOR_SUBCMD_P2P_LO_EVENT_INDEX,
999 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH_INDEX,
1000 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_EXTERNAL_ACS_CONFIG,
1001 	QCA_NL80211_VENDOR_SUBCMD_PWR_SAVE_FAIL_DETECTED_INDEX,
1002 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET_INDEX,
1003 	QCA_NL80211_VENDOR_SUBCMD_HANG_REASON_INDEX,
1004 	QCA_NL80211_VENDOR_SUBCMD_HTT_STATS_INDEX,
1005 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO_INDEX,
1006 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT_INDEX,
1007 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT_INDEX,
1008 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES_INDEX,
1009 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH_INDEX,
1010 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX,
1011 	QCA_NL80211_VENDOR_SUBCMD_ROAM_INDEX,
1012 };
1013 
1014 /**
1015  * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
1016  *
1017  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
1018  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
1019  *	value
1020  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
1021  *	keep as unsigned for now
1022  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
1023  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
1024  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
1025  *	in KBPS
1026  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
1027  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
1028  */
1029 enum qca_wlan_vendor_attr_tdls_enable {
1030 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
1031 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
1032 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
1033 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
1034 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
1035 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
1036 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
1037 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
1038 		QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
1039 };
1040 
1041 /**
1042  * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
1043  *
1044  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
1045  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
1046  *	8-bit value
1047  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
1048  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
1049  */
1050 enum qca_wlan_vendor_attr_tdls_disable {
1051 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
1052 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
1053 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
1054 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
1055 		QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
1056 };
1057 
1058 /**
1059  * qca_chip_power_save_failure_reason: Power save failure reason
1060  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1061  * due to protocol/module.
1062  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1063  * due to hardware
1064  */
1065 enum qca_chip_power_save_failure_reason {
1066 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1067 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1068 };
1069 
1070 /**
1071  * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1072  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1073  * information leading to the power save failure.
1074  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1075  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1076  * represented by enum qca_chip_power_save_failure_reason
1077  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1078  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1079  */
1080 enum qca_attr_chip_power_save_failure {
1081 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1082 
1083 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1084 
1085 	/* keep last */
1086 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1087 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1088 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1089 };
1090 
1091 
1092 /**
1093  * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
1094  *
1095  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
1096  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
1097  *	8-bit value
1098  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
1099  *	unsigned 32-bit value
1100  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
1101  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
1102  *	unsigned 32-bit value
1103  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
1104  *	class, unsigned 32-bit value
1105  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
1106  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
1107  */
1108 enum qca_wlan_vendor_attr_tdls_get_status {
1109 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
1110 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
1111 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
1112 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
1113 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
1114 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
1115 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
1116 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
1117 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
1118 };
1119 
1120 /**
1121  * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
1122  *
1123  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
1124  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
1125  *	8-bit value
1126  * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
1127  *	unsigned 32-bit value
1128  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
1129  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
1130  *	unsigned 32-bit value
1131  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
1132  *	operating class, unsigned 32-bit value
1133  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
1134  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
1135  */
1136 enum qca_wlan_vendor_attr_tdls_state {
1137 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
1138 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
1139 	QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
1140 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
1141 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
1142 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
1143 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
1144 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
1145 		QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
1146 };
1147 
1148 /* enum's to provide TDLS capabilities */
1149 enum qca_wlan_vendor_attr_get_tdls_capabilities {
1150 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1151 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1152 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1153 
1154 	/* keep last */
1155 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1156 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1157 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1158 };
1159 
1160 enum qca_wlan_vendor_attr {
1161 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1162 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1163 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1164 	/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1165 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1166 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1167 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1168 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1169 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1170 	/*
1171 	 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1172 	 * by enum qca_roaming_policy.
1173 	 */
1174 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1175 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1176 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1177 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1178 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1179 	/*
1180 	 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1181 	 * Unsigned 32-bit value.
1182 	 */
1183 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1184 	/* Unsigned 32-bit value */
1185 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1186 	/* Unsigned 32-bit value */
1187 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1188 	/* Unsigned 32-bit value from enum qca_set_band. */
1189 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1190 	/* Dummy (NOP) attribute for 64 bit padding */
1191 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1192 	/*
1193 	 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1194 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1195 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1196 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1197 	 */
1198 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1199 	/*
1200 	 * Indoor location capabilities, returned by
1201 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1202 	 * see enum qca_wlan_vendor_attr_loc_capa.
1203 	 */
1204 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1205 	/*
1206 	 * Array of nested attributes containing information about each peer
1207 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1208 	 * for supported attributes for each peer.
1209 	 */
1210 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1211 	/*
1212 	 * Array of nested attributes containing measurement results for
1213 	 * one or more peers, reported by the
1214 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1215 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1216 	 * attributes.
1217 	 */
1218 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1219 	/* Flag attribute for enabling or disabling responder functionality. */
1220 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1221 	/*
1222 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1223 	 * command to specify the LCI report that will be sent by
1224 	 * the responder during a measurement exchange. The format is
1225 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1226 	 */
1227 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1228 	/*
1229 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1230 	 * command to specify the location civic report that will
1231 	 * be sent by the responder during a measurement exchange.
1232 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1233 	 */
1234 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1235 	/*
1236 	 * Session/measurement completion status code,
1237 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1238 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1239 	 * see enum qca_vendor_attr_loc_session_status.
1240 	 */
1241 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1242 	/*
1243 	 * Initial dialog token used by responder (0 if not specified),
1244 	 * unsigned 8 bit value.
1245 	 */
1246 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1247 	/*
1248 	 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1249 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1250 	 * AOA measurements are needed as part of an FTM session.
1251 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1252 	 * enum qca_wlan_vendor_attr_aoa_type.
1253 	 */
1254 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1255 	/*
1256 	 * A bit mask (unsigned 32 bit value) of antenna arrays used
1257 	 * by indoor location measurements. Refers to the antenna
1258 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1259 	 */
1260 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1261 	/*
1262 	 * AOA measurement data. Its contents depends on the AOA measurement
1263 	 * type and antenna array mask:
1264 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1265 	 * phase of the strongest CIR path for each antenna in the measured
1266 	 * array(s).
1267 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1268 	 * values, phase and amplitude of the strongest CIR path for each
1269 	 * antenna in the measured array(s).
1270 	 */
1271 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1272 	/*
1273 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1274 	 * to specify the chain number (unsigned 32 bit value) to inquire
1275 	 * the corresponding antenna RSSI value */
1276 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1277 	/*
1278 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1279 	 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1280 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1281 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1282 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1283 	/*
1284 	 *  TSF timer value, unsigned 64 bit value.
1285 	 * May be returned by various commands.
1286 	 */
1287 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1288 	/*
1289 	 * DMG RF sector index, unsigned 16 bit number. Valid values are
1290 	 * 0..127 for sector indices or 65535 as special value used to
1291 	 * unlock sector selection in
1292 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1293 	 */
1294 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1295 	/*
1296 	 * DMG RF sector type, unsigned 8 bit value. One of the values
1297 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1298 	 */
1299 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1300 	/*
1301 	 * Bitmask of DMG RF modules for which information is requested. Each
1302 	 * bit corresponds to an RF module with the same index as the bit
1303 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1304 	 * all DMG chips currently have up to 8 RF modules.
1305 	 */
1306 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1307 	/*
1308 	 * Array of nested attributes where each entry is DMG RF sector
1309 	 * configuration for a single RF module.
1310 	 * Attributes for each entry are taken from enum
1311 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1312 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1313 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1314 	 */
1315 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1316 	/*
1317 	 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1318 	 * to report frame aggregation statistics to userspace.
1319 	 */
1320 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1321 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1322 	/*
1323 	 * Unsigned 8-bit value representing MBO transition reason code as
1324 	 * provided by the AP used by subcommand
1325 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1326 	 * specified by the userspace in the request to the driver.
1327 	 */
1328 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1329 	/*
1330 	 * Array of nested attributes, BSSID and status code, used by subcommand
1331 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1332 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1333 	 * The userspace space specifies the list/array of candidate BSSIDs in
1334 	 * the order of preference in the request. The driver specifies the
1335 	 * status code, for each BSSID in the list, in the response. The
1336 	 * acceptable candidates are listed in the order preferred by the
1337 	 * driver.
1338 	 */
1339 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1340 	/*
1341 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1342 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1343 	 */
1344 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1345 	/*
1346 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1347 	 * to define the number of antennas to use for BRP.
1348 	 * different purpose in each ANT_LIMIT_MODE:
1349 	 * DISABLE - ignored
1350 	 * EFFECTIVE - upper limit to number of antennas to be used
1351 	 * FORCE - exact number of antennas to be used
1352 	 * unsigned 8 bit value
1353 	 */
1354 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1355 	/*
1356 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1357 	 * to report the corresponding antenna index to the chain RSSI value
1358 	 */
1359 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1360 	/*
1361 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1362 	 * to report the specific antenna EVM value (unsigned 32 bit value).
1363 	 * With a determinate group of antennas, the driver specifies the
1364 	 * EVM value for each antenna ID, and application extract them
1365 	 * in user space.
1366 	 */
1367 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1368 	/*
1369 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1370 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1371 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1372 	 */
1373 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1374 
1375 	/* keep last */
1376 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1377 		QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1378 };
1379 
1380 enum qca_wlan_vendor_attr_extscan_config_params {
1381 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1382 
1383 	/* Unsigned 32-bit value */
1384 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
1385 
1386 	/*
1387 	 * Attributes for data used by
1388 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1389 	 */
1390 
1391 	/* Unsigned 32-bit value */
1392 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1393 	= 2,
1394 	/* Unsigned 32-bit value */
1395 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1396 	= 3,
1397 
1398 	/*
1399 	 * Attributes for input params used by
1400 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1401 	 */
1402 
1403 	/* Unsigned 32-bit value; channel frequency */
1404 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1405 	/* Unsigned 32-bit value; dwell time in ms. */
1406 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1407 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1408 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1409 	/* Unsigned 8-bit value; channel class */
1410 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
1411 
1412 	/* Unsigned 8-bit value; bucket index, 0 based */
1413 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1414 	/* Unsigned 8-bit value; band. */
1415 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1416 	/* Unsigned 32-bit value; desired period, in ms. */
1417 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1418 	/* Unsigned 8-bit value; report events semantics. */
1419 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1420 	/*
1421 	 * Unsigned 32-bit value. Followed by a nested array of
1422 	 * EXTSCAN_CHANNEL_SPEC_* attributes.
1423 	 */
1424 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
1425 
1426 	/*
1427 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1428 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1429 	 */
1430 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
1431 
1432 	/* Unsigned 32-bit value; base timer period in ms. */
1433 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1434 	/*
1435 	 * Unsigned 32-bit value; number of APs to store in each scan in the
1436 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1437 	 */
1438 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1439 	/*
1440 	 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1441 	 * up AP.
1442 	 */
1443 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1444 	= 16,
1445 
1446 	/*
1447 	 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1448 	 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1449 	 * of the array is determined by NUM_BUCKETS.
1450 	 */
1451 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
1452 
1453 	/*
1454 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1455 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1456 	 */
1457 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
1458 
1459 	/* Unsigned 8-bit value */
1460 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1461 	= 19,
1462 	/* Unsigned 32-bit value; maximum number of results to be returned. */
1463 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1464 	= 20,
1465 
1466 	/* An array of 6 x unsigned 8-bit value */
1467 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1468 	/* Signed 32-bit value */
1469 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1470 	/* Signed 32-bit value */
1471 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1472 	/* Unsigned 32-bit value */
1473 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
1474 
1475 	/*
1476 	 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1477 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1478 	 * array is determined by NUM_AP.
1479 	 */
1480 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
1481 
1482 	/*
1483 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1484 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1485 	 */
1486 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
1487 
1488 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
1489 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1490 	= 27,
1491 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1492 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1493 	= 28,
1494 	/* Unsigned 32-bit value; number of APs breaching threshold. */
1495 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1496 	/*
1497 	 * Unsigned 32-bit value; number of APs. Followed by an array of
1498 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1499 	 */
1500 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1501 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1502 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1503 	= 31,
1504 	/*
1505 	 * Unsigned 32-bit value. If max_period is non zero or different than
1506 	 * period, then this bucket is an exponential backoff bucket.
1507 	 */
1508 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1509 	/* Unsigned 32-bit value. */
1510 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1511 	/*
1512 	 * Unsigned 32-bit value. For exponential back off bucket, number of
1513 	 * scans to perform for a given period.
1514 	 */
1515 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1516 	/*
1517 	 * Unsigned 8-bit value; in number of scans, wake up AP after these
1518 	 * many scans.
1519 	 */
1520 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1521 	= 35,
1522 
1523 	/*
1524 	 * Attributes for data used by
1525 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1526 	 */
1527 
1528 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1529 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1530 	= 36,
1531 	/*
1532 	 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1533 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1534 	 * size of the array is determined by NUM_SSID.
1535 	 */
1536 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1537 	/*
1538 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1539 	 * attributes.
1540 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1541 	 */
1542 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1543 
1544 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1545 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1546 	/* Unsigned 8-bit value */
1547 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1548 	/* Signed 32-bit value */
1549 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1550 	/* Signed 32-bit value */
1551 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1552 	/* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1553 	 */
1554 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1555 
1556 	/* keep last */
1557 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1558 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
1559 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
1560 };
1561 
1562 enum qca_wlan_vendor_attr_extscan_results {
1563 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1564 
1565 	/*
1566 	 * Unsigned 32-bit value; must match the request Id supplied by
1567 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
1568 	 */
1569 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
1570 
1571 	/*
1572 	 * Unsigned 32-bit value; used to indicate the status response from
1573 	 * firmware/driver for the vendor sub-command.
1574 	 */
1575 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
1576 
1577 	/*
1578 	 * EXTSCAN Valid Channels attributes */
1579 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
1580 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
1581 	/*
1582 	 * An array of NUM_CHANNELS x unsigned 32-bit value integers
1583 	 * representing channel numbers.
1584 	 */
1585 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
1586 
1587 	/* EXTSCAN Capabilities attributes */
1588 
1589 	/* Unsigned 32-bit value */
1590 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
1591 	/* Unsigned 32-bit value */
1592 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
1593 	/* Unsigned 32-bit value */
1594 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
1595 	= 7,
1596 	/* Unsigned 32-bit value */
1597 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
1598 	= 8,
1599 	/* Signed 32-bit value */
1600 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
1601 	= 9,
1602 	/* Unsigned 32-bit value */
1603 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
1604 	/* Unsigned 32-bit value */
1605 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
1606 	= 11,
1607 	/* Unsigned 32-bit value */
1608 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
1609 	= 12,
1610 
1611 	/*
1612 	 * EXTSCAN Attributes used with
1613 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
1614 	 */
1615 
1616 	/* Unsigned 32-bit value */
1617 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
1618 
1619 	/*
1620 	 * EXTSCAN attributes used with
1621 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
1622 	 */
1623 
1624 	/*
1625 	 * An array of NUM_RESULTS_AVAILABLE x
1626 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
1627 	 */
1628 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
1629 
1630 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
1631 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
1632 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
1633 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
1634 	/* An array of 6 x unsigned 8-bit value */
1635 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
1636 	/* Unsigned 32-bit value; channel frequency in MHz */
1637 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
1638 	/* Signed 32-bit value */
1639 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
1640 	/* Unsigned 32-bit value */
1641 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
1642 	/* Unsigned 32-bit value */
1643 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
1644 	/* Unsigned 16-bit value */
1645 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
1646 	/* Unsigned 16-bit value */
1647 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
1648 	/* Unsigned 32-bit value; size of the IE DATA blob */
1649 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
1650 	/*
1651 	 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
1652 	 * information elements found in the beacon; this data should be a
1653 	 * packed list of wifi_information_element objects, one after the
1654 	 * other.
1655 	 */
1656 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
1657 
1658 	/*
1659 	 * Unsigned 8-bit value; set by driver to indicate more scan results are
1660 	 * available.
1661 	 */
1662 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
1663 
1664 	/*
1665 	 * EXTSCAN attributes for
1666 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
1667 	 */
1668 	/* Unsigned 8-bit value */
1669 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
1670 	/* Unsigned 32-bit value */
1671 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
1672 
1673 	/*
1674 	 * EXTSCAN attributes for
1675 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
1676 	 */
1677 	/*
1678 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1679 	 * to indicate number of results.
1680 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
1681 	 * list of results.
1682 	 */
1683 
1684 	/*
1685 	 * EXTSCAN attributes for
1686 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
1687 	 */
1688 	/* An array of 6 x unsigned 8-bit value */
1689 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
1690 	/* Unsigned 32-bit value */
1691 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
1692 	= 30,
1693 	/* Unsigned 32-bit value. */
1694 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
1695 	= 31,
1696 	/*
1697 	 * A nested array of signed 32-bit RSSI values. Size of the array is
1698 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
1699 	 */
1700 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
1701 	= 32,
1702 
1703 	/*
1704 	 * EXTSCAN attributes used with
1705 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
1706 	 */
1707 	/*
1708 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1709 	 * to indicate number of extscan cached results returned.
1710 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
1711 	 *  the list of extscan cached results.
1712 	 */
1713 
1714 	/*
1715 	 * An array of NUM_RESULTS_AVAILABLE x
1716 	 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
1717 	 */
1718 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
1719 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
1720 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
1721 	/*
1722 	 * Unsigned 32-bit value; a bitmask w/additional information about scan.
1723 	 */
1724 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
1725 	/*
1726 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1727 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
1728 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
1729 	 * list of wifi scan results returned for each cached result block.
1730 	 */
1731 
1732 	/*
1733 	 * EXTSCAN attributes for
1734 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
1735 	 */
1736 	/*
1737 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
1738 	 * number of results.
1739 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
1740 	 * list of wifi scan results returned for each
1741 	 * wifi_passpoint_match_result block.
1742 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
1743 	 */
1744 
1745 	/*
1746 	 * EXTSCAN attributes for
1747 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
1748 	 */
1749 	/* Unsigned 32-bit value */
1750 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
1751 	= 36,
1752 	/*
1753 	 * A nested array of
1754 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
1755 	 * attributes. Array size =
1756 	 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
1757 	 */
1758 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
1759 
1760 	/* Unsigned 32-bit value; network block id for the matched network */
1761 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
1762 	/*
1763 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
1764 	 * list of wifi scan results returned for each
1765 	 * wifi_passpoint_match_result block.
1766 	 */
1767 	/* Unsigned 32-bit value */
1768 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
1769 	/*
1770 	 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
1771 	 * ANQP data in the information_element format.
1772 	 */
1773 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
1774 
1775 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1776 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
1777 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1778 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
1779 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1780 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
1781 	= 43,
1782 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
1783 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
1784 	= 44,
1785 
1786 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
1787 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
1788 
1789 	/* keep last */
1790 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
1791 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
1792 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
1793 };
1794 
1795 /**
1796  * enum qca_vendor_interop_issues_ap_type - interop issues type
1797  * This enum defines the valid set of values of interop issues type. These
1798  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
1799  *
1800  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
1801  * when the STA's Qpower feature is enabled.
1802  */
1803 enum qca_vendor_interop_issues_ap_type {
1804 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
1805 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
1806 };
1807 
1808 /**
1809  * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
1810  * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
1811  *
1812  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
1813  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
1814  * 32-bit unsigned value, The type defined in enum
1815  * qca_vendor_interop_issues_ap_type are used.
1816  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
1817  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
1818  * it is present and mandatory for the command but is not used for
1819  * the event since only a single BSSID is reported in an event.
1820  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
1821  * 6-byte MAC address. It is used within the nested
1822  * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
1823  * and without such encapsulation in the event case.
1824  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
1825  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
1826  */
1827 enum qca_vendor_attr_interop_issues_ap {
1828 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
1829 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
1830 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
1831 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
1832 	/* keep last */
1833 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
1834 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
1835 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
1836 };
1837 
1838 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
1839 
1840 /**
1841  * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
1842  *
1843  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
1844  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
1845  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
1846  *	Aggresive stats gathering
1847  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
1848  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
1849  */
1850 enum qca_wlan_vendor_attr_ll_stats_set {
1851 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
1852 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
1853 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
1854 	/* keep last */
1855 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
1856 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
1857 		QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
1858 };
1859 
1860 /**
1861  * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
1862  *
1863  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
1864  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
1865  *	provided by the caller issuing the GET stats command. When reporting
1866  *	the stats results, the driver uses the same value to indicate which
1867  *	GET request the results correspond to.
1868  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
1869  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
1870  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
1871  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
1872  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
1873  */
1874 enum qca_wlan_vendor_attr_ll_stats_get {
1875 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
1876 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
1877 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
1878 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
1879 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
1880 		QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
1881 };
1882 
1883 /**
1884  * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
1885  *
1886  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
1887  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
1888  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
1889  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
1890  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
1891  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
1892  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
1893  */
1894 enum qca_wlan_vendor_attr_ll_stats_clr {
1895 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
1896 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
1897 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
1898 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
1899 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
1900 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
1901 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
1902 		QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
1903 };
1904 
1905 /**
1906  * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
1907  *
1908  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
1909  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
1910  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
1911  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
1912  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
1913  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
1914  */
1915 enum qca_wlan_vendor_attr_ll_stats_results_type {
1916 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
1917 
1918 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
1919 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
1920 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
1921 
1922 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
1923 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
1924 		QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
1925 };
1926 
1927 /**
1928  * enum qca_wlan_vendor_attr_ll_stats_results - vendor attribute stats results
1929  *
1930  * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are nested
1931  * within the interface stats.
1932  *
1933  * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could be nested
1934  * within the interface stats.
1935  *
1936  * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are nested
1937  * within the interface stats.
1938  *
1939  * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* could be nested
1940  * within the peer info stats.
1941  *
1942  * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could be
1943  * nested within the channel stats.
1944  *
1945  * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ could be nested
1946  * within the radio stats.
1947  *
1948  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID: Invalid initial value
1949  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID: Unsigned 32bit value
1950  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX: Unsigned 32bit value
1951  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX: Unsigned 32bit value
1952  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX: Unsigned 32bit value
1953  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX: Unsigned 32bit value
1954  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT: Unsigned 32bit value
1955  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA: Unsigned 32bit value
1956  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK: Unsigned 32bit value
1957  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE: Interface mode, e.g., STA,
1958  *	SOFTAP, IBSS, etc. Type = enum wifi_interface_mode
1959  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR: Interface MAC address.
1960  *	An array of 6 Unsigned int8_t
1961  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE:
1962  *	Type = enum wifi_connection_state,  e.g., DISCONNECTED, AUTHENTICATING,
1963  *	etc. Valid for STA, CLI only
1964  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING:
1965  *	Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
1966  *	(is that valid for STA only?)
1967  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES: Unsigned 32bit value.
1968  *	WIFI_CAPABILITY_XXX
1969  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID: NULL terminated SSID. An
1970  *	array of 33 Unsigned 8bit values
1971  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID: BSSID. An array of 6
1972  *	Unsigned 8bit values
1973  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR: Country string
1974  *	advertised by AP. An array of 3 Unsigned 8bit values
1975  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR: Country string for
1976  *	this association. An array of 3 Unsigned 8bit values
1977  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC: Type = enum wifi_traffic_ac e.g.
1978  *	V0, VI, BE and BK
1979  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU: Unsigned int 32 value
1980  *	corresponding to respective AC
1981  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU: Unsigned int 32 value
1982  *	corresponding to respective AC
1983  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST: Unsigned int 32 value
1984  *	corresponding to respective AC
1985  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST: Unsigned int 32 value
1986  *	corresponding to respective AC
1987  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU: Unsigned int 32 value
1988  *	corresponding to respective AC
1989  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU: Unsigned int 32 value
1990  *	corresponding to respective AC
1991  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST: Unsigned int 32 value
1992  *	corresponding to respective AC
1993  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES: Unsigned int 32 value
1994  *	corresponding to respective AC
1995  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT: Unsigned int 32 value
1996  *	corresponding to respective AC
1997  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN: Unsigned int 32
1998  *	value corresponding to respective AC
1999  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX: Unsigned int 32
2000  *	value corresponding to respective AC
2001  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG: Unsigned int 32
2002  *	value corresponding to respective AC
2003  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES: Unsigned int 32
2004  *	value corresponding to respective AC
2005  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS: Unsigned int 32
2006  *	value corresponding to respective AC
2007  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE: Type = enum wifi_peer_type
2008  *	Peer type, e.g., STA, AP, P2P GO etc
2009  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS: MAC addr corresponding
2010  *	to respective peer. An array of 6 Unsigned 8bit values
2011  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES: Unsigned int 32bit
2012  *	value representing capabilities corresponding to respective peer.
2013  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES: Unsigned 32bit value.
2014  *	Number of rates
2015  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE: Unsigned int 8bit value:
2016  *	0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved
2017  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS: Unsigned int 8bit value:
2018  *	0:1x1, 1:2x2, 3:3x3, 4:4x4
2019  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW: Unsigned int 8bit value:
2020  *	0:20MHz, 1:40Mhz, 2:80Mhz, 3:160Mhz
2021  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX: Unsigned int 8bit value:
2022  *	OFDM/CCK rate code would be as per IEEE Std in the units of 0.5mbps
2023  *	HT/VHT it would be mcs index
2024  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE: Unsigned 32bit value.
2025  *	Bit rate in units of 100Kbps
2026  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU: Unsigned int 32bit value.
2027  *	Number of successfully transmitted data pkts i.e., with ACK received
2028  *	corresponding to the respective rate
2029  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU: Unsigned int 32bit value.
2030  *	Number of received data pkts corresponding to the respective rate
2031  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST: Unsigned int 32bit value.
2032  *	Number of data pkts losses, i.e., no ACK received corresponding to
2033  *	the respective rate
2034  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES: Unsigned int 32bit value.
2035  *	Total number of data pkt retries for the respective rate
2036  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT: Unsigned int 32bit value.
2037  *	Total number of short data pkt retries for the respective rate
2038  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG: Unsigned int 32bit value.
2039  *	Total number of long data pkt retries for the respective rate
2040  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID: Radio id
2041  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME: Unsigned 32bit value.
2042  *	Total number of msecs the radio is awake accruing over time
2043  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME: Unsigned 32bit value.
2044  *	Total number of msecs the radio is transmitting accruing over time
2045  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME: Unsigned 32bit value.
2046  *	Total number of msecs the radio is in active receive accruing over time
2047  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN: Unsigned 32bit value.
2048  *	Total number of msecs the radio is awake due to all scan accruing
2049  *	over time
2050  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD: Unsigned 32bit value.
2051  *	Total number of msecs the radio is awake due to NAN accruing over time.
2052  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN: Unsigned 32bit value.
2053  *	Total number of msecs the radio is awake due to GSCAN accruing over time
2054  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN: Unsigned 32bit value.
2055  *	Total number of msecs the radio is awake due to roam scan accruing over
2056  *	time.
2057  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN: Unsigned 32bit value.
2058  *	Total number of msecs the radio is awake due to PNO scan accruing over
2059  *	time.
2060  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20: Unsigned 32bit value.
2061  *	Total number of msecs the radio is awake due to HS2.0 scans and GAS
2062  *	exchange accruing over time.
2063  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS: Unsigned 32bit value.
2064  *	Number of channels
2065  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH:
2066  *	Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80, etc.
2067  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ:
2068  *	Unsigned 32bit value. Primary 20MHz channel.
2069  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0:
2070  *	Unsigned 32bit value. Center frequency (MHz) first segment.
2071  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1:
2072  *	Unsigned 32bit value. Center frequency (MHz) second segment.
2073  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME: Unsigned int 32bit value
2074  *	representing total number of msecs the radio is awake on that channel
2075  *	accruing over time, corresponding to the respective channel.
2076  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME:  Unsigned int 32bit
2077  *	value representing total number of msecs the CCA register is busy
2078  *	accruing  over time corresponding to the respective channel.
2079  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS: Number of radios
2080  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO: Channel info
2081  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO: Peer info
2082  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO: Peer rate info
2083  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO: WMM info
2084  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA: Unsigned 8bit value.
2085  *	Used by the driver; if set to 1, it indicates that more stats, e.g.,
2086  *	peers or radio, are to follow in the next
2087  *	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. Otherwise, it
2088  *	is set to 0.
2089  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET: tsf offset
2090  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED: leaky ap detected
2091  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED:
2092  *	average number of frames leaked
2093  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME: guard time
2094  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE: Link Layer stats type
2095  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS: LL Radio Number of
2096  *      Tx Levels
2097  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL:Number of msecs the
2098  *      radio spent in transmitting for each power level
2099  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT: RTS successful count
2100  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT: RTS fail count
2101  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT: PPDU successful count
2102  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT: PPDU fail count
2103  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST: After last
2104  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2105  */
2106 
2107 enum qca_wlan_vendor_attr_ll_stats_results {
2108 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2109 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2110 
2111 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2112 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2113 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2114 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2115 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2116 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2117 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2118 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2119 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2120 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2121 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2122 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2123 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2124 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2125 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2126 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2127 
2128 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2129 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2130 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2131 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2132 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2133 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2134 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2135 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2136 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2137 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2138 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2139 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2140 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2141 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2142 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2143 
2144 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2145 
2146 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2147 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2148 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2149 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2150 
2151 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2152 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2153 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2154 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2155 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2156 
2157 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2158 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2159 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2160 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2161 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2162 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2163 
2164 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2165 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2166 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2167 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2168 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2169 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2170 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2171 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2172 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2173 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2174 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2175 
2176 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2177 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2178 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2179 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2180 
2181 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2182 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2183 
2184 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2185 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2186 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2187 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2188 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2189 
2190 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2191 
2192 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2193 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2194 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2195 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2196 
2197 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2198 
2199 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2200 
2201 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2202 
2203 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2204 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2205 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2206 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2207 
2208 	/* keep last */
2209 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2210 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2211 		QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1
2212 };
2213 
2214 enum qca_wlan_vendor_attr_ll_stats_type {
2215 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2216 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2217 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2218 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2219 
2220 	/* keep last */
2221 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2222 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2223 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2224 };
2225 
2226 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2227 
2228 /**
2229  * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2230  *
2231  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2232  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2233  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2234  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2235  */
2236 enum qca_wlan_vendor_attr_get_supported_features {
2237 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2238 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2239 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2240 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2241 		QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2242 };
2243 
2244 /**
2245  * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2246  *
2247  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2248  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2249  *	value
2250  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2251  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2252  */
2253 enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2254 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2255 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2256 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2257 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2258 		QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2259 };
2260 
2261 /**
2262  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2263  *
2264  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2265  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2266  *	with frequencies to be scanned (in MHz)
2267  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2268  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2269  *	rates to be included
2270  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2271  *	at non CCK rate in 2GHz band
2272  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2273  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2274  *	driver for the specific scan request
2275  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2276  *	request decoded as in enum scan_status
2277  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2278  *	scan flag is set
2279  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2280  *	randomisation
2281  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: BSSID provided to do scan for specific BSS
2282  */
2283 enum qca_wlan_vendor_attr_scan {
2284 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2285 	QCA_WLAN_VENDOR_ATTR_SCAN_IE,
2286 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
2287 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
2288 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
2289 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
2290 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
2291 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
2292 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
2293 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
2294 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
2295 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID,
2296 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2297 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2298 		QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2299 };
2300 
2301 /**
2302  * enum scan_status - Specifies the valid values the vendor scan attribute
2303  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2304  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2305  *	new scan results
2306  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2307  */
2308 enum scan_status {
2309 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2310 	VENDOR_SCAN_STATUS_ABORTED,
2311 	VENDOR_SCAN_STATUS_MAX,
2312 };
2313 
2314 /**
2315  * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2316  *
2317  * NL attributes for data used by
2318  * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2319  *
2320  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2321  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2322  *	Unsigned 32-bit value
2323  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
2324  *	Unsigned 32-bit value
2325  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
2326  *	array of SET_SIZE x Unsigned 32bit values representing concurrency
2327  *	combinations
2328  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
2329  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
2330  */
2331 enum qca_wlan_vendor_attr_get_concurrency_matrix {
2332 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
2333 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
2334 									= 1,
2335 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
2336 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
2337 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
2338 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
2339 		QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
2340 };
2341 
2342 /**
2343  * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
2344  *
2345  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
2346  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
2347  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
2348  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
2349  */
2350 enum qca_wlan_vendor_attr_set_no_dfs_flag {
2351 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
2352 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
2353 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
2354 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
2355 		QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
2356 };
2357 
2358 /**
2359  * enum qca_vendor_attr_wisa_cmd
2360  * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
2361  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
2362  * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
2363  * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
2364  * WISA setup vendor commands
2365  */
2366 enum qca_vendor_attr_wisa_cmd {
2367 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2368 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2369 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2370 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2371 		QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2372 };
2373 
2374 enum qca_roaming_policy {
2375 	QCA_ROAMING_NOT_ALLOWED,
2376 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
2377 };
2378 
2379 /**
2380  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
2381  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
2382  *
2383  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
2384  * reasons.
2385  *
2386  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
2387  * the configured threshold.
2388  *
2389  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
2390  * beacon misses from the then connected AP.
2391  *
2392  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
2393  * by the connected AP.
2394  *
2395  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
2396  * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
2397  * not poor.
2398  *
2399  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
2400  * or environment being very noisy / congested.
2401  *
2402  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
2403  * from the user (user space).
2404  *
2405  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
2406  * connected AP.
2407  *
2408  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
2409  * breaching out the configured threshold.
2410  *
2411  */
2412 enum qca_roam_reason {
2413 	QCA_ROAM_REASON_UNKNOWN,
2414 	QCA_ROAM_REASON_PER,
2415 	QCA_ROAM_REASON_BEACON_MISS,
2416 	QCA_ROAM_REASON_POOR_RSSI,
2417 	QCA_ROAM_REASON_BETTER_RSSI,
2418 	QCA_ROAM_REASON_CONGESTION,
2419 	QCA_ROAM_REASON_USER_TRIGGER,
2420 	QCA_ROAM_REASON_BTM,
2421 	QCA_ROAM_REASON_BSS_LOAD,
2422 };
2423 
2424 /**
2425  * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
2426  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP
2427  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
2428  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
2429  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
2430  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
2431  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
2432  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
2433  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
2434  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
2435  * Indicates the status of re-association requested by user space for
2436  * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
2437  * Type u16.
2438  * Represents the status code from AP. Use
2439  * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
2440  * real status code for failures.
2441  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
2442  * This attribute indicates that the old association was maintained when
2443  * a re-association is requested by user space and that re-association
2444  * attempt fails (i.e., cannot connect to the requested BSS, but can
2445  * remain associated with the BSS with which the association was in
2446  * place when being requested to roam). Used along with
2447  * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
2448  * re-association status. Type flag.
2449  * This attribute is applicable only for re-association failure cases.
2450  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
2451  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
2452  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
2453  * seq number
2454  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
2455  * representing the reasons for the roaming. Defined by enum
2456  * qca_roam_reason.
2457  */
2458 enum qca_wlan_vendor_attr_roam_auth {
2459 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
2460 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
2461 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
2462 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
2463 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
2464 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
2465 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
2466 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
2467 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
2468 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
2469 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
2470 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
2471 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
2472 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
2473 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
2474 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
2475 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
2476 		QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
2477 };
2478 
2479 /**
2480  * enum qca_wlan_vendor_attr_wifi_config - wifi config
2481  *
2482  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
2483  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
2484  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
2485  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
2486  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
2487  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
2488  */
2489 enum qca_wlan_vendor_attr_wifi_config {
2490 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
2491 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
2492 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
2493 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
2494 
2495 	/* keep last */
2496 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
2497 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
2498 		QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
2499 };
2500 
2501 /**
2502  * enum qca_wlan_epno_type - the type of request to the EPNO command
2503  * @QCA_WLAN_EPNO: epno type request
2504  * @QCA_WLAN_PNO: pno type request
2505  */
2506 enum qca_wlan_epno_type {
2507 	QCA_WLAN_EPNO,
2508 	QCA_WLAN_PNO
2509 };
2510 
2511 /**
2512  * enum qca_wlan_vendor_attr_pno_config_params - pno config params
2513  *
2514  * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
2515  *
2516  *	NL attributes for data used by
2517  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
2518  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
2519  *	Unsigned 32-bit value; pno passpoint number of networks
2520  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
2521  *	Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
2522  *	attributes. Array size =
2523  *	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
2524  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
2525  *	Unsigned 32-bit value; network id
2526  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
2527  *	An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
2528  *	realm, 0 if unspecified.
2529  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
2530  *	An array of 16 x Unsigned 32-bit value; roaming consortium ids
2531  *	to match, 0 if unspecified.
2532  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
2533  *	An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
2534  *	unspecified.
2535  *
2536  *	NL attributes for data used by
2537  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
2538  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
2539  *	Unsigned 32-bit value; set pno number of networks
2540  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
2541  *	Array of nested
2542  *	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
2543  *	attributes. Array size =
2544  *		QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
2545  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
2546  *	An array of 33 x Unsigned 8-bit value; NULL terminated SSID
2547  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
2548  *	Signed 8-bit value; threshold for considering this SSID as found,
2549  *	required granularity for this threshold is 4dBm to 8dBm
2550  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
2551  *	Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
2552  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
2553  *	Unsigned 8-bit value; auth bit field for matching WPA IE
2554  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
2555  *	Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
2556  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
2557  *	Nested attribute to send the channel list
2558  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
2559  *	Unsigned 32-bit value; indicates the Interval between PNO scan
2560  *	cycles in msec
2561  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
2562  *	Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
2563  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
2564  *	Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
2565  *	This attribute is obsolete now.
2566  *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
2567  *	Signed 32-bit value; the maximum score that a network
2568  *	can have before bonuses
2569  *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
2570  *	Signed 32-bit value; only report when there is a network's
2571  *	score this much higher han the current connection
2572  *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
2573  *	Signed 32-bit value; score bonus for all networks with
2574  *	the same network flag
2575  *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
2576  *	Signed 32-bit value; score bonus for networks that are not open
2577  *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
2578  *	Signed 32-bit value; 5GHz RSSI score bonus applied to all
2579  *	5GHz networks
2580  *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
2581  *	Unsigned 32-bit value, representing the PNO Request ID
2582  * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
2583  * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
2584  */
2585 enum qca_wlan_vendor_attr_pno_config_params {
2586 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
2587 
2588 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
2589 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
2590 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
2591 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
2592 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
2593 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
2594 
2595 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
2596 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
2597 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
2598 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
2599 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
2600 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
2601 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
2602 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
2603 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
2604 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
2605 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
2606 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
2607 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
2608 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
2609 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
2610 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
2611 
2612 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
2613 	/* keep last */
2614 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
2615 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
2616 		QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
2617 };
2618 
2619 /**
2620  * enum qca_scan_freq_list_type: Frequency list types
2621  *
2622  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
2623  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
2624  *	a preferred frequency list for roaming.
2625  *
2626  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
2627  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
2628  *	a specific frequency list for roaming.
2629  */
2630 enum qca_scan_freq_list_type {
2631 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
2632 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
2633 };
2634 
2635 /**
2636  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
2637  *
2638  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
2639  *	List of frequencies in MHz to be considered for a roam scan.
2640  *
2641  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
2642  *	Type of frequency list scheme being configured/gotten as defined by the
2643  *	enum qca_scan_freq_list_type.
2644  */
2645 enum qca_vendor_attr_scan_freq_list_scheme {
2646 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
2647 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
2648 
2649 	/* keep last */
2650 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
2651 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
2652 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
2653 };
2654 
2655 /*
2656  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
2657  *
2658  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
2659  *	a bad packet error rates (PER).
2660  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
2661  *	based on beacon misses from the connected AP.
2662  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
2663  *	due to poor RSSI of the connected AP.
2664  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
2665  *	upon finding a BSSID with a better RSSI than the connected BSSID.
2666  *	Here the RSSI of the current BSSID need not be poor.
2667  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
2668  *	by triggering a periodic scan to find a better AP to roam.
2669  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
2670  *	when the connected channel environment is too noisy/congested.
2671  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
2672  *	when BTM Request frame is received from the connected AP.
2673  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
2674  *	when the channel utilization is goes above the configured threshold.
2675  *
2676  * Set the corresponding roam trigger reason bit to consider it for roam
2677  * trigger.
2678  * Userspace can set multiple bits and send to the driver. The driver shall
2679  * consider all of them to trigger/initiate a roam scan.
2680  */
2681 enum qca_vendor_roam_triggers {
2682 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
2683 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
2684 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
2685 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
2686 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
2687 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
2688 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
2689 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
2690 };
2691 
2692 /**
2693  * enum qca_vendor_attr_roam_candidate_selection_criteria:
2694  *
2695  * Each attribute carries a weightage in percentage (%).
2696  *
2697  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
2698  *	Represents the weightage to be given for the RSSI selection
2699  *	criteria among other parameters.
2700  *
2701  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
2702  *	Represents the weightage to be given for the rate selection
2703  *	criteria among other parameters.
2704  *
2705  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
2706  *	Represents the weightage to be given for the band width selection
2707  *	criteria among other parameters.
2708  *
2709  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
2710  *	Represents the weightage to be given for the band selection
2711  *	criteria among other parameters.
2712  *
2713  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
2714  *	Represents the weightage to be given for the NSS selection
2715  *	criteria among other parameters.
2716  *
2717  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
2718  *	Represents the weightage to be given for the channel congestion
2719  *	selection criteria among other parameters.
2720  *
2721  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
2722  *	Represents the weightage to be given for the beamforming selection
2723  *	criteria among other parameters.
2724  *
2725  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
2726  *	Represents the weightage to be given for the OCE selection
2727  *	criteria among other parameters.
2728  */
2729 enum qca_vendor_attr_roam_candidate_selection_criteria {
2730 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
2731 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
2732 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
2733 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
2734 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
2735 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
2736 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
2737 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
2738 
2739 	/* keep last */
2740 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
2741 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
2742 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
2743 };
2744 
2745 /**
2746  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
2747  *	The following attributes are used to set/get/clear the respective
2748  *	configurations to/from the driver.
2749  *	For the get, the attribute for the configuration to be queried shall
2750  *	carry any of its acceptable values to the driver. In return, the driver
2751  *	shall send the configured values within the same attribute to the user
2752  *	space.
2753  *
2754  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
2755  *	Signifies to enable/disable roam control in driver.
2756  *	1-enable, 0-disable
2757  *	Enable: Mandates the driver to do the further roams using the
2758  *	configuration parameters set through
2759  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
2760  *	Disable: Disables the driver/firmware roaming triggered through
2761  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
2762  *	expected to continue with the default configurations.
2763  *
2764  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
2765  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
2766  *	Roam control status is obtained through this attribute.
2767  *
2768  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
2769  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
2770  *	is to be cleared in the driver.
2771  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
2772  *	and shall be ignored if used with other sub commands.
2773  *	If this attribute is specified along with subcmd
2774  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
2775  *	all other attributes, if there are any.
2776  *	If this attribute is not specified when the subcmd
2777  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
2778  *	clear the data corresponding to the attributes specified.
2779  *
2780  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
2781  *	list of frequencies and its type, represented by
2782  *	enum qca_vendor_attr_scan_freq_list_scheme.
2783  *	Frequency list and its type are mandatory for this attribute to set
2784  *	the frequencies.
2785  *	Frequency type is mandatory for this attribute to get the frequencies
2786  *	and the frequency list is obtained through
2787  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
2788  *	Frequency list type is mandatory for this attribute to clear the
2789  *	frequencies.
2790  *
2791  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
2792  *	Carries the value of scan period in seconds to set.
2793  *	The value of scan period is obtained with the same attribute for get.
2794  *	Clears the scan period in the driver when specified with clear command.
2795  *	Scan period is the idle time in seconds between each subsequent
2796  *	channel scans.
2797  *
2798  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
2799  *	Carries the value of full scan period in seconds to set.
2800  *	The value of full scan period is obtained with the same attribute for
2801  *	get.
2802  *	Clears the full scan period in the driver when specified with clear
2803  *	command. Full scan period is the idle period in seconds between two
2804  *	successive full channel roam scans.
2805  *
2806  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
2807  *	Carries a bitmap of the roam triggers specified in
2808  *	enum qca_vendor_roam_triggers.
2809  *	The driver shall enable roaming by enabling corresponding roam triggers
2810  *	based on the trigger bits sent with this attribute.
2811  *	If this attribute is not configured, the driver shall proceed with
2812  *	default behavior.
2813  *	The bitmap configured is obtained with the same attribute for get.
2814  *	Clears the bitmap configured in driver when specified with clear
2815  *	command.
2816  *
2817  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
2818  *	weightage in percentage (%) to be given for each selection criteria.
2819  *	Different roam candidate selection criteria are represented by
2820  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
2821  *	The driver shall select the roam candidate based on corresponding
2822  *	candidate selection scores sent.
2823  *
2824  *	An empty nested attribute is used to indicate that no specific
2825  *	preference score/criteria is configured (i.e., to disable this mechanism
2826  *	in the set case and to show that the mechanism is disabled in the get
2827  *	case).
2828  *
2829  *	Userspace can send multiple attributes out of this enum to the driver.
2830  *	Since this attribute represents the weight/percentage of preference for
2831  *	the respective selection criteria, it is preferred to configure 100%
2832  *	total weightage. The value in each attribute or cumulative weight of the
2833  *	values in all the nested attributes should not exceed 100%. The driver
2834  *	shall reject such configuration.
2835  *
2836  *	If the weights configured through this attribute are less than 100%,
2837  *	the driver shall honor the weights (x%) passed for the corresponding
2838  *	selection criteria and choose/distribute rest of the weight (100-x)%
2839  *	for the other selection criteria, based on its internal logic.
2840  *
2841  *	The selection criteria configured is obtained with the same
2842  *	attribute for get.
2843  *
2844  *	Clears the selection criteria configured in the driver when specified
2845  *	with clear command.
2846  */
2847 enum qca_vendor_attr_roam_control {
2848 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
2849 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
2850 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
2851 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
2852 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
2853 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
2854 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
2855 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
2856 
2857 	/* keep last */
2858 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
2859 	QCA_ATTR_ROAM_CONTROL_MAX =
2860 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
2861 };
2862 
2863 /**
2864  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
2865  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
2866  *
2867  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
2868  *	Represents the different roam sub commands referred by
2869  *	enum qca_wlan_vendor_roaming_subcmd.
2870  *
2871  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
2872  *	Represents the Request ID for the specific set of commands.
2873  *	This also helps to map specific set of commands to the respective
2874  *	ID / client. e.g., helps to identify the user entity configuring the
2875  *	Blacklist BSSID and accordingly clear the respective ones with the
2876  *	matching ID.
2877  *
2878  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
2879  *	32-bit value.Represents the number of whitelist SSIDs configured.
2880  *
2881  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
2882  *	to carry the list of Whitelist SSIDs.
2883  *
2884  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
2885  *	0..32 octets). Represents the white list SSID. Whitelist SSIDs
2886  *	represent the list of SSIDs to which the firmware/driver can consider
2887  *	to roam to.
2888  *
2889  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
2890  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
2891  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
2892  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
2893  *
2894  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
2895  *	value, RSSI threshold above which 5GHz RSSI is favored.
2896  *
2897  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
2898  *	value, RSSI threshold below which 5GHz RSSI is penalized.
2899  *
2900  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
2901  *	value, factor by which 5GHz RSSI is boosted.
2902  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
2903  *
2904  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
2905  *	value, factor by which 5GHz RSSI is penalized.
2906  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
2907  *
2908  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
2909  *	value, maximum boost that can be applied to a 5GHz RSSI.
2910  *
2911  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
2912  *	value, boost applied to current BSSID to ensure the currently
2913  *	associated BSSID is favored so as to prevent ping-pong situations.
2914  *
2915  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
2916  *	value, RSSI below which "Alert" roam is enabled.
2917  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
2918  *	because the RSSI is low, or because many successive beacons have been
2919  *	lost or other bad link conditions.
2920  *
2921  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
2922  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
2923  *	firmware is hunting for a better BSSID or white listed SSID even though
2924  *	the RSSI of the link is good. The parameters enabling the roaming are
2925  *	configured through the PARAM_A_BAND_XX attrbutes.
2926  *
2927  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
2928  *	represents the BSSIDs preferred over others while evaluating them
2929  *	for the roaming.
2930  *
2931  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
2932  *	32-bit value. Represents the number of preferred BSSIDs set.
2933  *
2934  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
2935  *	address representing the BSSID to be preferred.
2936  *
2937  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
2938  *	32-bit value, representing the modifier to be applied to the RSSI of
2939  *	the BSSID for the purpose of comparing it with other roam candidate.
2940  *
2941  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
2942  *	represents the BSSIDs to get blacklisted for roaming.
2943  *
2944  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
2945  *	32-bit value, represents the number of blacklisted BSSIDs.
2946  *
2947  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
2948  *	address representing the Blacklisted BSSID.
2949  *
2950  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
2951  *	indicates this BSSID blacklist as a hint to the driver. The driver can
2952  *	select this BSSID in the worst case (when no other BSSIDs are better).
2953  *
2954  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
2955  *	set/get/clear the roam control config as
2956  *	defined @enum qca_vendor_attr_roam_control.
2957  *
2958  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
2959  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
2960  */
2961 enum qca_wlan_vendor_attr_roaming_config_params {
2962 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
2963 
2964 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
2965 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
2966 
2967 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
2968 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
2969 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
2970 
2971 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
2972 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
2973 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
2974 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
2975 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
2976 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
2977 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
2978 
2979 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
2980 
2981 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
2982 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
2983 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
2984 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
2985 
2986 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
2987 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
2988 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
2989 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
2990 
2991 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
2992 
2993 	/* keep last */
2994 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
2995 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
2996 		QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
2997 };
2998 
2999 /**
3000  * enum qca_wlan_vendor_roaming_subcmd: Referred by
3001  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
3002  *
3003  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
3004  *	configure the white list SSIDs. These are configured through
3005  *	the following attributes.
3006  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3007  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3008  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3009  *
3010  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
3011  *	configure the Roam params. These parameters are evaluated on the extscan
3012  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
3013  *	params.
3014  *
3015  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
3016  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3017  *	to enable/disable Lazy roam.
3018  *
3019  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
3020  *	preference. Contains the attribute
3021  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
3022  *	preference.
3023  *
3024  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
3025  *
3026  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
3027  *	BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
3028  *	set the same.
3029  *
3030  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
3031  *	roam control config to the driver with the attribute
3032  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3033  *
3034  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
3035  *	roam control config from driver with the attribute
3036  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3037  *	For the get, the attribute for the configuration to be queried shall
3038  *	carry any of its acceptable value to the driver. In return, the driver
3039  *	shall send the configured values within the same attribute to the user
3040  *	space.
3041  *
3042  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
3043  *	roam control config in the driver with the attribute
3044  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3045  *	The driver shall continue with its default roaming behavior when data
3046  *	corresponding to an attribute is cleared.
3047  */
3048 enum qca_wlan_vendor_roaming_subcmd {
3049 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
3050 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
3051 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
3052 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
3053 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
3054 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
3055 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
3056 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
3057 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
3058 };
3059 
3060 /**
3061  * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
3062  *
3063  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
3064  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
3065  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
3066  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
3067  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
3068  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
3069  */
3070 enum qca_wlan_vendor_attr_get_wifi_info {
3071 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3072 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION     = 1,
3073 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION   = 2,
3074 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX        = 3,
3075 
3076 	/* KEEP LAST */
3077 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3078 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX  =
3079 		QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3080 };
3081 
3082 enum qca_wlan_vendor_attr_logger_results {
3083 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3084 
3085 	/*
3086 	 * Unsigned 32-bit value; must match the request Id supplied by
3087 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
3088 	 */
3089 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3090 
3091 	/*
3092 	 * Unsigned 32-bit value; used to indicate the size of memory
3093 	 * dump to be allocated.
3094 	 */
3095 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3096 
3097 	/* keep last */
3098 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3099 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3100 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3101 };
3102 
3103 /**
3104  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3105  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3106  */
3107 enum qca_wlan_vendor_channel_prop_flags {
3108 	/* Bits 0, 1, 2, and 3 are reserved */
3109 
3110 	/* Turbo channel */
3111 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
3112 	/* CCK channel */
3113 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
3114 	/* OFDM channel */
3115 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
3116 	/* 2.4 GHz spectrum channel. */
3117 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
3118 	/* 5 GHz spectrum channel */
3119 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
3120 	/* Only passive scan allowed */
3121 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
3122 	/* Dynamic CCK-OFDM channel */
3123 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
3124 	/* GFSK channel (FHSS PHY) */
3125 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
3126 	/* Radar found on channel */
3127 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
3128 	/* 11a static turbo channel only */
3129 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
3130 	/* Half rate channel */
3131 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
3132 	/* Quarter rate channel */
3133 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
3134 	/* HT 20 channel */
3135 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
3136 	/* HT 40 with extension channel above */
3137 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
3138 	/* HT 40 with extension channel below */
3139 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
3140 	/* HT 40 intolerant */
3141 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
3142 	/* VHT 20 channel */
3143 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
3144 	/* VHT 40 with extension channel above */
3145 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
3146 	/* VHT 40 with extension channel below */
3147 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
3148 	/* VHT 80 channel */
3149 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
3150 	/* HT 40 intolerant mark bit for ACS use */
3151 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3152 	/* Channel temporarily blocked due to noise */
3153 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
3154 	/* VHT 160 channel */
3155 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
3156 	/* VHT 80+80 channel */
3157 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
3158 	/* HE 20 channel */
3159 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
3160 	/* HE 40 with extension channel above */
3161 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
3162 	/* HE 40 with extension channel below */
3163 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
3164 	/* HE 40 intolerant */
3165 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1 << 31,
3166 };
3167 
3168 /**
3169  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3170  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3171  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3172  */
3173 enum qca_wlan_vendor_channel_prop_flags_2 {
3174 	/* HE 40 intolerant mark bit for ACS use */
3175 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3176 	/* HE 80 channel */
3177 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
3178 	/* HE 160 channel */
3179 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
3180 	/* HE 80+80 channel */
3181 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
3182 };
3183 
3184 /**
3185  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3186  * each channel. This is used by
3187  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3188  */
3189 enum qca_wlan_vendor_channel_prop_flags_ext {
3190 	/* Radar found on channel */
3191 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
3192 	/* DFS required on channel */
3193 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
3194 	/* DFS required on channel for 2nd band of 80+80 */
3195 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
3196 	/* If channel has been checked for DFS */
3197 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
3198 	/* Excluded in 802.11d */
3199 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
3200 	/* Channel Switch Announcement received on this channel */
3201 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
3202 	/* Ad-hoc is not allowed */
3203 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
3204 	/* Station only channel */
3205 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3206 	/* DFS radar history for slave device (STA mode) */
3207 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
3208 	/* DFS CAC valid for slave device (STA mode) */
3209 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
3210 };
3211 
3212 /**
3213  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3214  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3215  * information to start/stop the NUD statistics collection.
3216  */
3217 enum qca_attr_nud_stats_set {
3218 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
3219 
3220 	/*
3221 	 * Flag to start/stop the NUD statistics collection.
3222 	 * Start - If included, Stop - If not included
3223 	 */
3224 	QCA_ATTR_NUD_STATS_SET_START = 1,
3225 	/* IPv4 address of the default gateway (in network byte order) */
3226 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
3227 	/*
3228 	 * Represents the data packet type to be monitored.
3229 	 * Host driver tracks the stats corresponding to each data frame
3230 	 * represented by these flags.
3231 	 * These data packets are represented by
3232 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
3233 	 */
3234 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
3235 	/* keep last */
3236 	QCA_ATTR_NUD_STATS_SET_LAST,
3237 	QCA_ATTR_NUD_STATS_SET_MAX =
3238 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
3239 };
3240 
3241 /**
3242  * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
3243  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3244  *	information to start / stop the NUD stats collection.
3245  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
3246  *	Bitmap to Flag to Start / Stop the NUD stats collection
3247  *	Start - If included , Stop - If not included
3248  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
3249  *	IPv4 address of Default Gateway (in network byte order)
3250  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3251  *	information to start / stop the NUD stats collection.
3252  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
3253  *	Flag to Start / Stop the NUD stats collection
3254  *	Start - If included , Stop - If not included
3255  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
3256  *	IPv4 address of Default Gateway (in network byte order)
3257  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3258  *	information to start / stop the NUD stats collection.
3259  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
3260  *	Flag to Start / Stop the NUD stats collection
3261  *	Start - If included , Stop - If not included
3262  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
3263  *	IPv4 address of Default Gateway (in network byte order)
3264  */
3265 enum qca_attr_connectivity_check_stats_set {
3266 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
3267 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
3268 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
3269 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
3270 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
3271 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
3272 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
3273 	/* keep last */
3274 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
3275 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
3276 		QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
3277 };
3278 
3279 /**
3280  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
3281  * data types for which the stats have to get collected.
3282  */
3283 enum qca_wlan_vendor_connectivity_check_pkt_flags {
3284 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
3285 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
3286 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
3287 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
3288 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
3289 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
3290 	 * to represent the stats of respective data type.
3291 	 */
3292 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
3293 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
3294 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
3295 };
3296 
3297 enum qca_attr_connectivity_check_stats {
3298 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
3299 	/* Data packet type for which the stats are collected.
3300 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
3301 	 */
3302 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
3303 	/* ID corresponding to the DNS frame for which the respective DNS stats
3304 	 * are monitored (u32).
3305 	 */
3306 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
3307 	/* source / destination port on which the respective proto stats are
3308 	 * collected (u32).
3309 	 */
3310 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
3311 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
3312 	/* IPv4/IPv6 address for which the destined data packets are
3313 	 * monitored. (in network byte order)
3314 	 */
3315 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
3316 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
3317 	/* Data packet Request count received from netdev */
3318 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
3319 	/* Data packet Request count sent to lower MAC from upper MAC */
3320 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
3321 	/* Data packet Request count received by lower MAC from upper MAC */
3322 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
3323 	/* Data packet Request count successfully transmitted by the device */
3324 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
3325 	/* Data packet Response count received by lower MAC */
3326 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
3327 	/* Data packet Response count received by upper MAC */
3328 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
3329 	/* Data packet Response count delivered to netdev */
3330 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
3331 	/* Data Packet Response count that are dropped out of order */
3332 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
3333 
3334 	/* keep last */
3335 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
3336 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
3337 		QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
3338 };
3339 
3340 /**
3341  * qca_attr_nud_stats_get: Attributes to vendor subcmd
3342  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
3343  * NUD statistics collected when queried.
3344  */
3345 enum qca_attr_nud_stats_get {
3346 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
3347 	/* ARP Request count from netdev */
3348 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
3349 	/* ARP Request count sent to lower MAC from upper MAC */
3350 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
3351 	/* ARP Request count received by lower MAC from upper MAC */
3352 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
3353 	/* ARP Request count successfully transmitted by the device */
3354 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
3355 	/* ARP Response count received by lower MAC */
3356 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
3357 	/* ARP Response count received by upper MAC */
3358 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
3359 	/* ARP Response count delivered to netdev */
3360 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
3361 	/* ARP Response count delivered to netdev */
3362 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
3363 	/*
3364 	 * Flag indicating if the station's link to the AP is active.
3365 	 * Active Link - If included, Inactive link - If not included
3366 	 */
3367 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
3368 	/*
3369 	 * Flag indicating if there is any duplicate address detected (DAD).
3370 	 * Yes - If detected, No - If not detected.
3371 	 */
3372 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
3373 	/*
3374 	 * List of Data types for which the stats are requested.
3375 	 * This list does not carry ARP stats as they are done by the
3376 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
3377 	 */
3378 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
3379 	/* keep last */
3380 	QCA_ATTR_NUD_STATS_GET_LAST,
3381 	QCA_ATTR_NUD_STATS_GET_MAX =
3382 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
3383 };
3384 
3385 enum qca_wlan_btm_candidate_status {
3386 	QCA_STATUS_ACCEPT = 0,
3387 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
3388 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
3389 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
3390 	QCA_STATUS_REJECT_LOW_RSSI = 4,
3391 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
3392 	QCA_STATUS_REJECT_UNKNOWN = 6,
3393 };
3394 
3395 enum qca_wlan_vendor_attr_btm_candidate_info {
3396 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
3397 
3398 	/* 6-byte MAC address representing the BSSID of transition candidate */
3399 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
3400 	/*
3401 	 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
3402 	 * returned by the driver. It says whether the BSSID provided in
3403 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
3404 	 * the driver, if not it specifies the reason for rejection.
3405 	 * Note that the user-space can overwrite the transition reject reason
3406 	 * codes provided by driver based on more information.
3407 	 */
3408 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
3409 
3410 	/* keep last */
3411 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
3412 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
3413 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
3414 };
3415 
3416 enum qca_attr_trace_level {
3417 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
3418 	/*
3419 	 * Nested array of the following attributes:
3420 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
3421 	 * QCA_ATTR_TRACE_LEVEL_MASK.
3422 	 */
3423 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
3424 	/*
3425 	 * Specific QCA host driver module. Please refer to the QCA host
3426 	 * driver implementation to get the specific module ID.
3427 	 */
3428 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
3429 	/* Different trace level masks represented in the QCA host driver. */
3430 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
3431 
3432 	/* keep last */
3433 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
3434 	QCA_ATTR_TRACE_LEVEL_MAX =
3435 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
3436 };
3437 
3438 /**
3439  * enum qca_wlan_vendor_attr_get_logger_features - value for logger
3440  *                                                 supported features
3441  * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
3442  * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
3443  * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
3444  * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
3445  *
3446  * enum values are used for NL attributes for data used by
3447  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
3448  */
3449 enum qca_wlan_vendor_attr_get_logger_features {
3450 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
3451 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
3452 
3453 	/* keep last */
3454 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
3455 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
3456 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
3457 };
3458 
3459 /**
3460  * enum qca_wlan_vendor_attr_link_properties - link properties
3461  *
3462  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
3463  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
3464  *	specify the number of spatial streams negotiated
3465  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
3466  *	to specify negotiated rate flags i.e. ht, vht and channel width
3467  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
3468  *	specify the operating frequency
3469  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
3470  * (STA / AP ) for the connected link.
3471  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
3472  * &struct nl80211_sta_flag_update for the respective connected link. MAC
3473  * address of the peer represented by
3474  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
3475  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
3476  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
3477  */
3478 enum qca_wlan_vendor_attr_link_properties {
3479 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
3480 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
3481 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
3482 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
3483 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR  = 4,
3484 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS  = 5,
3485 
3486 	/* KEEP LAST */
3487 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
3488 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
3489 		QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
3490 };
3491 
3492 /**
3493  * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
3494  *
3495  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
3496  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
3497  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
3498  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
3499  *
3500  * enum values are used for NL attributes for data used by
3501  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
3502  */
3503 enum qca_wlan_vendor_attr_nd_offload {
3504 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
3505 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
3506 
3507 	/* Keep last */
3508 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
3509 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
3510 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
3511 };
3512 
3513 /**
3514  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
3515  *
3516  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
3517  *	management offload, a mechanism where the station's firmware
3518  *	does the exchange with the AP to establish the temporal keys
3519  *	after roaming, rather than having the user space wpa_supplicant do it.
3520  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
3521  *	band selection based on channel selection results.
3522  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
3523  *	simultaneous off-channel operations.
3524  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
3525  *	Listen offload; a mechanism where the station's firmware takes care of
3526  *	responding to incoming Probe Request frames received from other P2P
3527  *	Devices whilst in Listen state, rather than having the user space
3528  *	wpa_supplicant do it. Information from received P2P requests are
3529  *	forwarded from firmware to host whenever the host processor wakes up.
3530  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
3531  *	specific features.
3532  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
3533  *	features.
3534  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
3535  *	specific features only. If a Device sets this bit but not the
3536  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
3537  *	this Device may not support all OCE AP functionalities but can support
3538  *	only OCE STA-CFON functionalities.
3539  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
3540  *	managed regulatory.
3541  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
3542  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
3543  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
3544  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
3545  */
3546 enum qca_wlan_vendor_features {
3547 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
3548 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
3549 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
3550 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
3551 	QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
3552 	QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
3553 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
3554 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
3555 	QCA_WLAN_VENDOR_FEATURE_TWT = 8,
3556 	QCA_WLAN_VENDOR_FEATURE_11AX = 9,
3557 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
3558 
3559 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
3560 };
3561 
3562 /**
3563  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
3564  *     conditional channel switch
3565  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
3566  *     value
3567  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
3568  * frequency list (an array of u32 values in host byte order)
3569  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
3570  *     conditional switch (u32)- 0: Success, Non-zero: Failure
3571  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
3572  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
3573  */
3574 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
3575 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
3576 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
3577 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
3578 
3579 	/* Keep Last */
3580 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
3581 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
3582 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
3583 };
3584 
3585 /**
3586  * enum wifi_logger_supported_features - values for supported logger features
3587  * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
3588  * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
3589  * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
3590  * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
3591  * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
3592  * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
3593  * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
3594  * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
3595  */
3596 enum wifi_logger_supported_features {
3597 	WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
3598 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
3599 	WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
3600 	WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
3601 	WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
3602 	WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
3603 	WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
3604 	WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
3605 	WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
3606 };
3607 
3608 /**
3609  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
3610  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
3611  *
3612  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
3613  * Used with event to notify the primary channel number selected in ACS
3614  * operation.
3615  * Note: If both the driver and user-space application supports the 6 GHz band,
3616  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
3617  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
3618  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
3619  * is still used if either of the driver or user space application doesn't
3620  * support the 6 GHz band.
3621  *
3622  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
3623  * Used with event to notify the secondary channel number selected in ACS
3624  * operation.
3625  * Note: If both the driver and user-space application supports the 6 GHz band,
3626  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
3627  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
3628  * To maintain backward compatibility,
3629  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
3630  * the driver or user space application doesn't support 6 GHz band.
3631  *
3632  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
3633  * (a) Used with command to configure hw_mode from
3634  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
3635  * (b) Also used with event to notify the hw_mode of selected primary channel
3636  * in ACS operation.
3637  *
3638  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
3639  * Used with command to configure ACS operation for HT mode.
3640  * Disable (flag attribute not present) - HT disabled and
3641  * Enable (flag attribute present) - HT enabled.
3642  *
3643  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
3644  * Used with command to configure ACS operation for HT40 mode.
3645  * Disable (flag attribute not present) - HT40 disabled and
3646  * Enable (flag attribute present) - HT40 enabled.
3647  *
3648  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
3649  * Used with command to configure ACS operation for VHT mode.
3650  * Disable (flag attribute not present) - VHT disabled and
3651  * Enable (flag attribute present) - VHT enabled.
3652  *
3653  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
3654  * mandatory with event.
3655  * If specified in command path, ACS operation is configured with the given
3656  * channel width (in MHz).
3657  * In event path, specifies the channel width of the primary channel selected.
3658  *
3659  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
3660  * Used with command to configure channel list using an array of
3661  * channel numbers (u8).
3662  * Note: If both the driver and user-space application supports the 6 GHz band,
3663  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
3664  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
3665  *
3666  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
3667  * Used with event to notify the VHT segment 0 center channel number selected in
3668  * ACS operation.
3669  * Note: If both the driver and user-space application supports the 6 GHz band,
3670  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
3671  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
3672  * To maintain backward compatibility,
3673  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
3674  * the driver or user space application doesn't support the 6 GHz band.
3675  *
3676  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
3677  * Used with event to notify the VHT segment 1 center channel number selected in
3678  * ACS operation.
3679  * Note: If both the driver and user-space application supports the 6 GHz band,
3680  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
3681  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
3682  * To maintain backward compatibility,
3683  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
3684  * the driver or user space application doesn't support the 6 GHz band.
3685  *
3686  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
3687  * Used with command to configure the channel list using an array of channel
3688  * center frequencies in MHz (u32).
3689  * Note: If both the driver and user-space application supports the 6 GHz band,
3690  * the driver first parses the frequency list and if it fails to get a frequency
3691  * list, parses the channel list specified using
3692  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
3693  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
3694  *
3695  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
3696  * Used with event to notify the primary channel center frequency (MHz) selected
3697  * in ACS operation.
3698  * Note: If the driver supports the 6 GHz band, the event sent from the driver
3699  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
3700  *
3701  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
3702  * Used with event to notify the secondary channel center frequency (MHz)
3703  * selected in ACS operation.
3704  * Note: If the driver supports the 6 GHz band, the event sent from the driver
3705  * includes this attribute along with
3706  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
3707  *
3708  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
3709  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
3710  * selected in ACS operation.
3711  * Note: If the driver supports the 6 GHz band, the event sent from the driver
3712  * includes this attribute along with
3713  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
3714  *
3715  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
3716  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
3717  * selected in ACS operation.
3718  * Note: If the driver supports the 6 GHz band, the event sent from the driver
3719  * includes this attribute along with
3720  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
3721  */
3722 enum qca_wlan_vendor_attr_acs_offload {
3723 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
3724 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
3725 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
3726 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
3727 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
3728 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
3729 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
3730 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
3731 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
3732 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
3733 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
3734 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
3735 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
3736 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
3737 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
3738 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
3739 
3740 	/* keep last */
3741 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
3742 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
3743 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
3744 };
3745 
3746 /**
3747  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
3748  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
3749  *
3750  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
3751  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
3752  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
3753  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
3754  * @QCA_ACS_MODE_IEEE80211ANY: all modes
3755  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
3756  */
3757 enum qca_wlan_vendor_acs_hw_mode {
3758 	QCA_ACS_MODE_IEEE80211B,
3759 	QCA_ACS_MODE_IEEE80211G,
3760 	QCA_ACS_MODE_IEEE80211A,
3761 	QCA_ACS_MODE_IEEE80211AD,
3762 	QCA_ACS_MODE_IEEE80211ANY,
3763 	QCA_ACS_MODE_IEEE80211AX,
3764 };
3765 
3766 /**
3767  * enum qca_access_policy - access control policy
3768  *
3769  * Access control policy is applied on the configured IE
3770  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
3771  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
3772  *
3773  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
3774  *»       with the specific configuration (IE) set, i.e. allow all the
3775  *»       connections which do not match the configuration.
3776  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
3777  *»       with the specific configuration (IE) set, i.e. deny all the
3778  *»       connections which do not match the configuration.
3779  */
3780 enum qca_access_policy {
3781 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
3782 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
3783 };
3784 
3785 /**
3786  * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
3787  *
3788  * The valid values for the ignore assoc disallowed
3789  *
3790  * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
3791  * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
3792  *
3793  */
3794 enum qca_ignore_assoc_disallowed {
3795 	QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
3796 	QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
3797 };
3798 
3799 /* Attributes for data used by
3800  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
3801  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
3802  */
3803 enum qca_wlan_vendor_attr_config {
3804 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
3805 	/*
3806 	 * Unsigned 32-bit value to set the DTIM period.
3807 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
3808 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
3809 	 * DTIM beacons.
3810 	 */
3811 	QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
3812 	/*
3813 	 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
3814 	 * used to calculate statistics like average the TSF offset or average
3815 	 * number of frame leaked.
3816 	 * For instance, upon Beacon frame reception:
3817 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
3818 	 * For instance, when evaluating leaky APs:
3819 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
3820 	 */
3821 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
3822 	/*
3823 	 * Unsigned 32-bit value to configure guard time, i.e., when
3824 	 * implementing IEEE power management based on frame control PM bit, how
3825 	 * long the driver waits before shutting down the radio and after
3826 	 * receiving an ACK frame for a Data frame with PM bit set.
3827 	 */
3828 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
3829 	/* Unsigned 32-bit value to change the FTM capability dynamically */
3830 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
3831 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
3832 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
3833 	/*
3834 	 * Unsigned 32-bit value to configure the number of continuous
3835 	 * Beacon Miss which shall be used by the firmware to penalize
3836 	 * the RSSI.
3837 	 */
3838 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
3839 	/*
3840 	 * Unsigned 8-bit value to configure the channel avoidance indication
3841 	 * behavior. Firmware to send only one indication and ignore duplicate
3842 	 * indications when set to avoid multiple Apps wakeups.
3843 	 */
3844 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
3845 	/*
3846 	 * 8-bit unsigned value to configure the maximum TX MPDU for
3847 	 * aggregation.
3848 	 */
3849 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
3850 	/*
3851 	 * 8-bit unsigned value to configure the maximum RX MPDU for
3852 	 * aggregation.
3853 	 */
3854 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
3855 	/*
3856 	 * 8-bit unsigned value to configure the Non aggregrate/11g sw
3857 	 * retry threshold (0 disable, 31 max).
3858 	 */
3859 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
3860 	/*
3861 	 * 8-bit unsigned value to configure the aggregrate sw
3862 	 * retry threshold (0 disable, 31 max).
3863 	 */
3864 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
3865 	/*
3866 	 * 8-bit unsigned value to configure the MGMT frame
3867 	 * retry threshold (0 disable, 31 max).
3868 	 */
3869 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
3870 	/*
3871 	 * 8-bit unsigned value to configure the CTRL frame
3872 	 * retry threshold (0 disable, 31 max).
3873 	 */
3874 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
3875 	/*
3876 	 * 8-bit unsigned value to configure the propagation delay for
3877 	 * 2G/5G band (0~63, units in us)
3878 	 */
3879 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
3880 	/*
3881 	 * Unsigned 32-bit value to configure the number of unicast TX fail
3882 	 * packet count. The peer is disconnected once this threshold is
3883 	 * reached.
3884 	 */
3885 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
3886 	/*
3887 	 * Attribute used to set scan default IEs to the driver.
3888 	 *
3889 	 * These IEs can be used by scan operations that will be initiated by
3890 	 * the driver/firmware.
3891 	 *
3892 	 * For further scan requests coming to the driver, these IEs should be
3893 	 * merged with the IEs received along with scan request coming to the
3894 	 * driver. If a particular IE is present in the scan default IEs but not
3895 	 * present in the scan request, then that IE should be added to the IEs
3896 	 * sent in the Probe Request frames for that scan request.
3897 	 */
3898 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
3899 	/* Unsigned 32-bit attribute for generic commands */
3900 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
3901 	/* Unsigned 32-bit value attribute for generic commands */
3902 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
3903 	/* Unsigned 32-bit data attribute for generic command response */
3904 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
3905 	/*
3906 	 * Unsigned 32-bit length attribute for
3907 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
3908 	 */
3909 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
3910 	/*
3911 	 * Unsigned 32-bit flags attribute for
3912 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
3913 	 */
3914 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
3915 	/*
3916 	 * Unsigned 32-bit, defining the access policy.
3917 	 * See enum qca_access_policy. Used with
3918 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
3919 	 */
3920 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
3921 	/*
3922 	 * Sets the list of full set of IEs for which a specific access policy
3923 	 * has to be applied. Used along with
3924 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
3925 	 * Zero length payload can be used to clear this access constraint.
3926 	 */
3927 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
3928 	/*
3929 	 * Unsigned 32-bit, specifies the interface index (netdev) for which the
3930 	 * corresponding configurations are applied. If the interface index is
3931 	 * not specified, the configurations are attributed to the respective
3932 	 * wiphy.
3933 	 */
3934 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
3935 	/* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
3936 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
3937 	/*
3938 	 * 8-bit unsigned value to configure the driver and below layers to
3939 	 * ignore the assoc disallowed set by APs while connecting
3940 	 * 1-Ignore, 0-Don't ignore
3941 	 */
3942 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
3943 	/*
3944 	 * 32-bit unsigned value to trigger antenna diversity features:
3945 	 * 1-Enable, 0-Disable
3946 	 */
3947 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
3948 	/* 32-bit unsigned value to configure specific chain antenna */
3949 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
3950 	/*
3951 	 * 32-bit unsigned value to trigger cycle selftest
3952 	 * 1-Enable, 0-Disable
3953 	 */
3954 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
3955 	/*
3956 	 * 32-bit unsigned to configure the cycle time of selftest
3957 	 * the unit is micro-second
3958 	 */
3959 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
3960 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
3961 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
3962 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
3963 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
3964 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
3965 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
3966 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
3967 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
3968 	/* 6-byte MAC address to point out the specific peer */
3969 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
3970 	/* 32-bit unsigned value to set window size for specific peer */
3971 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
3972 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
3973 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
3974 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
3975 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
3976 	/*
3977 	 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
3978 	 * station device while in disconnect state. The attribute use the
3979 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
3980 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
3981 	 * 10 MHz channel width, the station will not connect to a BSS using 20
3982 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
3983 	 * clear this constraint.
3984 	 */
3985 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
3986 	/*
3987 	 * 32-bit unsigned value to configure the propagation absolute delay
3988 	 * for 2G/5G band (units in us)
3989 	 */
3990 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
3991 	/* 32-bit unsigned value to set probe period */
3992 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
3993 	/* 32-bit unsigned value to set stay period */
3994 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
3995 	/* 32-bit unsigned value to set snr diff */
3996 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
3997 	/* 32-bit unsigned value to set probe dwell time */
3998 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
3999 	/* 32-bit unsigned value to set mgmt snr weight */
4000 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
4001 	/* 32-bit unsigned value to set data snr weight */
4002 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
4003 	/* 32-bit unsigned value to set ack snr weight */
4004 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
4005 	/*
4006 	 * 32-bit unsigned value to configure the listen interval.
4007 	 * This is in units of beacon intervals. This configuration alters
4008 	 * the negotiated listen interval with the AP during the connection.
4009 	 * It is highly recommended to configure a value less than or equal to
4010 	 * the one negotiated during the association. Configuring any greater
4011 	 * value can have adverse effects (frame loss, AP disassociating STA,
4012 	 * etc.).
4013 	 */
4014 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
4015 	/*
4016 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
4017 	 * disable operations that would cause the AP/GO to leave its operating
4018 	 * channel.
4019 	 *
4020 	 * This will restrict the scans to the AP/GO operating channel and the
4021 	 * channels of the other band, if DBS is supported.A STA/CLI interface
4022 	 * brought up after this setting is enabled, will be restricted to
4023 	 * connecting to devices only on the AP/GO interface's operating channel
4024 	 * or on the other band in DBS case. P2P supported channel list is
4025 	 * modified, to only include AP interface's operating-channel and the
4026 	 * channels of the other band if DBS is supported.
4027 	 *
4028 	 * These restrictions are only applicable as long as the AP/GO interface
4029 	 * is alive. If the AP/GO interface is brought down then this
4030 	 * setting/restriction is forgotten.
4031 	 *
4032 	 * If this variable is set on an AP/GO interface while a multi-channel
4033 	 * concurrent session is active, it has no effect on the operation of
4034 	 * the current interfaces, other than restricting the scan to the AP/GO
4035 	 * operating channel and the other band channels if DBS is supported.
4036 	 * However, if the STA is brought down and restarted then the new STA
4037 	 * connection will either be formed on the AP/GO channel or on the
4038 	 * other band in a DBS case. This is because of the scan being
4039 	 * restricted on these channels as mentioned above.
4040 	 *
4041 	 * 1-Disable offchannel operations, 0-Enable offchannel operations.
4042 	 */
4043 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
4044 
4045 	/*
4046 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
4047 	 * on an interface.
4048 	 * 1 - Enable , 0 - Disable.
4049 	 */
4050 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
4051 
4052 	/*
4053 	 * 8 bit unsigned value to globally enable/disable scan
4054 	 * 1 - Enable, 0 - Disable.
4055 	 */
4056 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
4057 
4058 	/* 8-bit unsigned value to set the total beacon miss count */
4059 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
4060 
4061 	/*
4062 	 * Unsigned 32-bit value to configure the number of continuous
4063 	 * Beacon Miss which shall be used by the firmware to penalize
4064 	 * the RSSI for BTC.
4065 	 */
4066 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
4067 
4068 	/*
4069 	 * 8-bit unsigned value to configure the driver and below layers to
4070 	 * enable/disable all fils features.
4071 	 * 0-enable, 1-disable
4072 	 */
4073 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
4074 
4075 	/* 16-bit unsigned value to configure the level of WLAN latency
4076 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
4077 	 */
4078 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
4079 
4080 	/*
4081 	 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
4082 	 * the connect interface. Exclusively used for the scenarios where the
4083 	 * device is used as a test bed device with special functionality and
4084 	 * not recommended for production. This helps driver to not validate the
4085 	 * RSNE passed from user space and thus allow arbitrary IE data to be
4086 	 * used for testing purposes.
4087 	 * 1-enable, 0-disable.
4088 	 * Applications set/reset this configuration. If not reset, this
4089 	 * parameter remains in use until the driver is unloaded.
4090 	 */
4091 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
4092 
4093 	/*
4094 	 * 8-bit unsigned value to trigger green Tx power saving.
4095 	 * 1-Enable, 0-Disable
4096 	 */
4097 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
4098 
4099 	/*
4100 	 * Attribute to configure disconnect IEs to the driver.
4101 	 * This carries an array of unsigned 8-bit characters.
4102 	 *
4103 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
4104 	 * frame.
4105 	 * These IEs are expected to be considered only for the next
4106 	 * immediate disconnection (disassoc/deauth frame) originated by
4107 	 * the DUT, irrespective of the entity (user space/driver/firmware)
4108 	 * triggering the disconnection.
4109 	 * The host drivers are not expected to use the IEs set through
4110 	 * this interface for further disconnections after the first immediate
4111 	 * disconnection initiated post the configuration.
4112 	 * If the IEs are also updated through cfg80211 interface (after the
4113 	 * enhancement to cfg80211_disconnect), host driver is expected to
4114 	 * take the union of IEs from both of these interfaces and send in
4115 	 * further disassoc/deauth frames.
4116 	 */
4117 	QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES = 58,
4118 
4119 	/* 8-bit unsigned value for ELNA bypass.
4120 	 * 1-Enable, 0-Disable
4121 	 */
4122 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
4123 
4124 	/* keep last */
4125 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
4126 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
4127 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
4128 };
4129 
4130 /**
4131  * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
4132  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
4133  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
4134  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
4135  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
4136  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
4137  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
4138  */
4139 enum qca_wlan_vendor_attr_wifi_logger_start {
4140 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
4141 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
4142 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
4143 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
4144 	/* keep last */
4145 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
4146 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
4147 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
4148 };
4149 
4150 /*
4151  * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
4152  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
4153  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
4154  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
4155  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
4156  */
4157 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
4158 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
4159 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
4160 	/* keep last */
4161 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
4162 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
4163 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
4164 };
4165 
4166 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
4167 /**
4168  * enum wlan_offloaded_packets_control - control commands
4169  * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
4170  * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
4171  *
4172  */
4173 enum wlan_offloaded_packets_control {
4174 	WLAN_START_OFFLOADED_PACKETS = 1,
4175 	WLAN_STOP_OFFLOADED_PACKETS  = 2
4176 };
4177 
4178 /**
4179  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
4180  *
4181  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
4182  *      the offloaded data.
4183  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
4184  *      data.
4185  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
4186  *      indication.
4187  */
4188 enum qca_wlan_vendor_attr_data_offload_ind {
4189 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
4190 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
4191 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
4192 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
4193 
4194 	/* keep last */
4195 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
4196 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
4197 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
4198 };
4199 
4200 
4201 /**
4202  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
4203  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
4204  */
4205 enum qca_wlan_vendor_attr_offloaded_packets {
4206 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
4207 	/*
4208 	 * Takes valid value from the enum
4209 	 * qca_wlan_offloaded_packets_sending_control
4210 	 * Unsigned 32-bit value
4211 	 **/
4212 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
4213 	/* Unsigned 32-bit value */
4214 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
4215 	/* array of u8 len: Max packet size */
4216 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
4217 	/* 6-byte MAC address used to represent source MAC address */
4218 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
4219 	/* 6-byte MAC address used to represent destination MAC address */
4220 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
4221 	/* Unsigned 32-bit value, in milli seconds */
4222 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
4223 	/*
4224 	 * This attribute is used and optional for specifying
4225 	 * ethernet protocol type, if not specified it will default to ipv4
4226 	 * Unsigned 16-bit value
4227 	 **/
4228 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
4229 
4230 	/* keep last */
4231 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
4232 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
4233 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
4234 };
4235 
4236 #endif
4237 
4238 /**
4239  * enum qca_wlan_rssi_monitoring_control - rssi control commands
4240  * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
4241  * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
4242  * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
4243  */
4244 enum qca_wlan_rssi_monitoring_control {
4245 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
4246 	QCA_WLAN_RSSI_MONITORING_START,
4247 	QCA_WLAN_RSSI_MONITORING_STOP,
4248 };
4249 
4250 /**
4251  * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
4252  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
4253  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
4254  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
4255  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
4256  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
4257  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
4258  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
4259  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
4260  */
4261 enum qca_wlan_vendor_attr_rssi_monitoring {
4262 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
4263 
4264 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
4265 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
4266 
4267 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
4268 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
4269 
4270 	/* attributes to be used/received in callback */
4271 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
4272 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
4273 
4274 	/* keep last */
4275 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
4276 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
4277 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
4278 };
4279 
4280 /**
4281  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
4282  * QCA_NL80211_VENDOR_SUBCMD_NDP.
4283  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
4284  * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
4285  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
4286  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
4287  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
4288  * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
4289  * address
4290  * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
4291  * created
4292  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
4293  * NCS_SK_TYPE/PMK/SCID instead
4294  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
4295  * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
4296  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
4297  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
4298  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
4299  * code: accept/reject
4300  * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
4301  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
4302  * driver
4303  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
4304  * driver
4305  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
4306  * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
4307  * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
4308  * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
4309  * PMKID
4310  * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
4311  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
4312  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
4313  * update:
4314  *     BIT_0: NSS Update
4315  *     BIT_1: Channel list update
4316  * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
4317  * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
4318  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
4319  *     0:20 MHz,
4320  *     1:40 MHz,
4321  *     2:80 MHz,
4322  *     3:160 MHz
4323  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
4324  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
4325  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
4326  * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
4327  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
4328  * transport port used by NDP.
4329  * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
4330  * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
4331  * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
4332 */
4333 enum qca_wlan_vendor_attr_ndp_params {
4334 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
4335 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
4336 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
4337 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
4338 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
4339 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
4340 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
4341 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
4342 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
4343 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
4344 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
4345 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
4346 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
4347 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
4348 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
4349 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
4350 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
4351 	QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
4352 	QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
4353 	QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
4354 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
4355 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
4356 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
4357 	QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
4358 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
4359 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
4360 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
4361 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
4362 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
4363 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
4364 
4365 	/* keep last */
4366 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
4367 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
4368 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
4369 };
4370 
4371 /**
4372  * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
4373  * QCA_NL80211_VENDOR_SUBCMD_NDP.
4374  * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
4375  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: create a ndi
4376  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: delete a ndi
4377  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST: initiate a ndp session
4378  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
4379  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
4380  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
4381  * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
4382  * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
4383  * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
4384  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
4385  * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
4386  * being received
4387  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
4388  * update
4389  */
4390 enum qca_wlan_ndp_sub_cmd {
4391 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
4392 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
4393 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
4394 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
4395 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
4396 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
4397 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
4398 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
4399 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
4400 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
4401 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
4402 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
4403 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
4404 };
4405 
4406 /**
4407  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
4408  * information. These attributes are sent as part of
4409  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
4410  * attributes correspond to a single channel.
4411  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
4412  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
4413  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
4414  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
4415  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
4416  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
4417  * regulatory transmission power
4418  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
4419  * transmission power
4420  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
4421  * transmission power
4422  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
4423  * class id
4424  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
4425  * antenna gain in dbm
4426  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
4427  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
4428  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
4429  * segment 0 in center freq in MHz.
4430  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
4431  * segment 1 in center freq in MHz.
4432  *
4433  */
4434 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
4435 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
4436 
4437 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
4438 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
4439 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
4440 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
4441 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
4442 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
4443 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
4444 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
4445 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
4446 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
4447 	/*
4448 	 * A bitmask (u32) with flags specified in
4449 	 * enum qca_wlan_vendor_channel_prop_flags_2.
4450 	 */
4451 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
4452 
4453 	/*
4454 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
4455 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
4456 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4457 	 * along with
4458 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
4459 	 *
4460 	 * If both the driver and user-space application supports the 6 GHz
4461 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
4462 	 * is deprecated and
4463 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4464 	 * should be used.
4465 	 *
4466 	 * To maintain backward compatibility,
4467 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
4468 	 * is still used if either of the driver or user space application
4469 	 * doesn't support the 6 GHz band.
4470 	 */
4471 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
4472 
4473 	/*
4474 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
4475 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
4476 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4477 	 * along with
4478 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
4479 	 *
4480 	 * If both the driver and user-space application supports the 6 GHz
4481 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
4482 	 * is deprecated and
4483 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4484 	 * should be considered.
4485 	 *
4486 	 * To maintain backward compatibility,
4487 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
4488 	 * is still used if either of the driver or user space application
4489 	 * doesn't support the 6 GHz band.
4490 	 */
4491 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
4492 
4493 	/* keep last */
4494 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
4495 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
4496 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
4497 };
4498 
4499 /**
4500  * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
4501  * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
4502  * driver.
4503  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
4504  * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
4505  * ACS need to be started
4506  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
4507  * driver supports spectral scanning or not
4508  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
4509  * offloaded to firmware.
4510  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
4511  * provides additional channel capability as part of scan operation.
4512  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
4513  * interface status is UP
4514  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
4515  * interface. It takes one of nl80211_iftype values.
4516  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
4517  * of chan width. ACS logic should try to get a channel with specified width
4518  * if not found then look for lower values.
4519  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
4520  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
4521  * a/b/g/n/ac.
4522  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
4523  * among which ACS should choose best frequency.
4524  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
4525  * driver which will have <channel(u8), weight(u8)> format as array of
4526  * nested values.
4527  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
4528  * for each channel. It takes attr as defined in
4529  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
4530  * PCL mandatory, PCL preferred, etc.It uses values defined in enum
4531  * qca_wlan_vendor_attr_external_acs_policy.
4532  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
4533  * Operating Parameter (RROP) availability information (u16). It uses values
4534  * defined in enum qca_wlan_vendor_attr_rropavail_info.
4535  */
4536 enum qca_wlan_vendor_attr_external_acs_event {
4537 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
4538 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
4539 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
4540 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
4541 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
4542 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
4543 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
4544 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
4545 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
4546 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
4547 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
4548 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
4549 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
4550 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
4551 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
4552 
4553 	/* keep last */
4554 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
4555 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
4556 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
4557 };
4558 
4559 enum qca_iface_type {
4560 	QCA_IFACE_TYPE_STA,
4561 	QCA_IFACE_TYPE_AP,
4562 	QCA_IFACE_TYPE_P2P_CLIENT,
4563 	QCA_IFACE_TYPE_P2P_GO,
4564 	QCA_IFACE_TYPE_IBSS,
4565 	QCA_IFACE_TYPE_TDLS,
4566 };
4567 
4568 /**
4569  * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
4570  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
4571  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
4572  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
4573  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
4574  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
4575  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
4576  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
4577  */
4578 enum qca_wlan_vendor_attr_pcl_config {
4579 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
4580 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
4581 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
4582 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
4583 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
4584 };
4585 
4586 enum qca_set_band {
4587 	QCA_SETBAND_AUTO,
4588 	QCA_SETBAND_5G,
4589 	QCA_SETBAND_2G,
4590 };
4591 
4592 /**
4593  * enum set_reset_packet_filter - set packet filter control commands
4594  * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
4595  * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
4596  * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
4597  * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
4598  * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
4599  * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
4600  */
4601 enum set_reset_packet_filter {
4602 	QCA_WLAN_SET_PACKET_FILTER = 1,
4603 	QCA_WLAN_GET_PACKET_FILTER = 2,
4604 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
4605 	QCA_WLAN_READ_PACKET_FILTER = 4,
4606 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
4607 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
4608 };
4609 
4610 /**
4611  * enum qca_wlan_vendor_attr_packet_filter - APF control commands
4612  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
4613  * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
4614  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
4615  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
4616  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
4617  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
4618  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
4619  *	section in packet filter buffer
4620  */
4621 enum qca_wlan_vendor_attr_packet_filter {
4622 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
4623 	QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
4624 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
4625 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
4626 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
4627 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
4628 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
4629 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
4630 
4631 	/* keep last */
4632 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
4633 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
4634 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
4635 };
4636 
4637 /**
4638  * enum qca_wlan_vendor_attr_wake_stats - wake lock stats
4639  * @QCA_WLAN_VENDOR_ATTR_GET_WAKE_STATS_INVALID: invalid
4640  * @QCA_WLAN_VENDOR_ATTR_TOTAL_CMD_EVENT_WAKE:
4641  * @QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_PTR:
4642  * @QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_SZ:
4643  * @QCA_WLAN_VENDOR_ATTR_TOTAL_DRIVER_FW_LOCAL_WAKE:
4644  * @QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_PTR:
4645  * @QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_SZ:
4646  * @QCA_WLAN_VENDOR_ATTR_TOTAL_RX_DATA_WAKE:
4647  * total rx wakeup count
4648  * @QCA_WLAN_VENDOR_ATTR_RX_UNICAST_CNT:
4649  * Total rx unicast packet which woke up host
4650  * @QCA_WLAN_VENDOR_ATTR_RX_MULTICAST_CNT:
4651  * Total rx multicast packet which woke up host
4652  * @QCA_WLAN_VENDOR_ATTR_RX_BROADCAST_CNT:
4653  * Total rx broadcast packet which woke up host
4654  * @QCA_WLAN_VENDOR_ATTR_ICMP_PKT:
4655  * wake icmp packet count
4656  * @QCA_WLAN_VENDOR_ATTR_ICMP6_PKT:
4657  * wake icmp6 packet count
4658  * @QCA_WLAN_VENDOR_ATTR_ICMP6_RA:
4659  * wake icmp6 RA packet count
4660  * @QCA_WLAN_VENDOR_ATTR_ICMP6_NA:
4661  * wake icmp6 NA packet count
4662  * @QCA_WLAN_VENDOR_ATTR_ICMP6_NS:
4663  * wake icmp6 NS packet count
4664  * @QCA_WLAN_VENDOR_ATTR_ICMP4_RX_MULTICAST_CNT:
4665  * Rx wake packet count due to ipv4 multicast
4666  * @QCA_WLAN_VENDOR_ATTR_ICMP6_RX_MULTICAST_CNT:
4667  * Rx wake packet count due to ipv6 multicast
4668  * @QCA_WLAN_VENDOR_ATTR_OTHER_RX_MULTICAST_CNT:
4669  * Rx wake packet count due to non-ipv4 and non-ipv6 packets
4670  * @QCA_WLAN_VENDOR_ATTR_RSSI_BREACH_CNT:
4671  * wake rssi breach packet count
4672  * @QCA_WLAN_VENDOR_ATTR_LOW_RSSI_CNT:
4673  * wake low rssi packet count
4674  * @QCA_WLAN_VENDOR_ATTR_GSCAN_CNT:
4675  * wake gscan packet count
4676  * @QCA_WLAN_VENDOR_ATTR_PNO_COMPLETE_CNT:
4677  * wake pno complete packet count
4678  * @QCA_WLAN_VENDOR_ATTR_PNO_MATCH_CNT:
4679  * wake pno match packet count
4680  */
4681 enum qca_wlan_vendor_attr_wake_stats {
4682 	QCA_WLAN_VENDOR_ATTR_GET_WAKE_STATS_INVALID = 0,
4683 	QCA_WLAN_VENDOR_ATTR_TOTAL_CMD_EVENT_WAKE,
4684 	QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_PTR,
4685 	QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_SZ,
4686 	QCA_WLAN_VENDOR_ATTR_TOTAL_DRIVER_FW_LOCAL_WAKE,
4687 	QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
4688 	QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
4689 	QCA_WLAN_VENDOR_ATTR_TOTAL_RX_DATA_WAKE,
4690 	QCA_WLAN_VENDOR_ATTR_RX_UNICAST_CNT,
4691 	QCA_WLAN_VENDOR_ATTR_RX_MULTICAST_CNT,
4692 	QCA_WLAN_VENDOR_ATTR_RX_BROADCAST_CNT,
4693 	QCA_WLAN_VENDOR_ATTR_ICMP_PKT,
4694 	QCA_WLAN_VENDOR_ATTR_ICMP6_PKT,
4695 	QCA_WLAN_VENDOR_ATTR_ICMP6_RA,
4696 	QCA_WLAN_VENDOR_ATTR_ICMP6_NA,
4697 	QCA_WLAN_VENDOR_ATTR_ICMP6_NS,
4698 	QCA_WLAN_VENDOR_ATTR_ICMP4_RX_MULTICAST_CNT,
4699 	QCA_WLAN_VENDOR_ATTR_ICMP6_RX_MULTICAST_CNT,
4700 	QCA_WLAN_VENDOR_ATTR_OTHER_RX_MULTICAST_CNT,
4701 	QCA_WLAN_VENDOR_ATTR_RSSI_BREACH_CNT,
4702 	QCA_WLAN_VENDOR_ATTR_LOW_RSSI_CNT,
4703 	QCA_WLAN_VENDOR_ATTR_GSCAN_CNT,
4704 	QCA_WLAN_VENDOR_ATTR_PNO_COMPLETE_CNT,
4705 	QCA_WLAN_VENDOR_ATTR_PNO_MATCH_CNT,
4706 	/* keep last */
4707 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
4708 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
4709 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
4710 };
4711 
4712 /**
4713  * enum qca_vendor_element_id - QCA Vendor Specific element types
4714  *
4715  * These values are used to identify QCA Vendor Specific elements. The
4716  * payload of the element starts with the three octet OUI (OUI_QCA) and
4717  * is followed by a single octet type which is defined by this enum.
4718  *
4719  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
4720  *      This element can be used to specify preference order for supported
4721  *      channels. The channels in this list are in preference order (the first
4722  *      one has the highest preference) and are described as a pair of
4723  *      (global) Operating Class and Channel Number (each one octet) fields.
4724  *
4725  *      This extends the standard P2P functionality by providing option to have
4726  *      more than one preferred operating channel. When this element is present,
4727  *      it replaces the preference indicated in the Operating Channel attribute.
4728  *      For supporting other implementations, the Operating Channel attribute is
4729  *      expected to be used with the highest preference channel. Similarly, all
4730  *      the channels included in this Preferred channel list element are
4731  *      expected to be included in the Channel List attribute.
4732  *
4733  *      This vendor element may be included in GO Negotiation Request, P2P
4734  *      Invitation Request, and Provision Discovery Request frames.
4735  *
4736  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
4737  *      This element can be used for pre-standard publication testing of HE
4738  *      before P802.11ax draft assigns the element ID. The payload of this
4739  *      vendor specific element is defined by the latest P802.11ax draft.
4740  *      Please note that the draft is still work in progress and this element
4741  *      payload is subject to change.
4742  *
4743  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
4744  *      This element can be used for pre-standard publication testing of HE
4745  *      before P802.11ax draft assigns the element ID. The payload of this
4746  *      vendor specific element is defined by the latest P802.11ax draft.
4747  *      Please note that the draft is still work in progress and this element
4748  *      payload is subject to change.
4749  *
4750  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
4751  *      element).
4752  *      This element can be used for pre-standard publication testing of HE
4753  *      before P802.11ax draft assigns the element ID extension. The payload of
4754  *      this vendor specific element is defined by the latest P802.11ax draft
4755  *      (not including the Element ID Extension field). Please note that the
4756  *      draft is still work in progress and this element payload is subject to
4757  *      change.
4758  *
4759  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
4760  *      This element can be used for pre-standard publication testing of HE
4761  *      before P802.11ax draft assigns the element ID extension. The payload of
4762  *      this vendor specific element is defined by the latest P802.11ax draft
4763  *      (not including the Element ID Extension field). Please note that the
4764  *      draft is still work in progress and this element payload is subject to
4765  *      change.
4766  *
4767  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
4768  *      This element can be used for pre-standard publication testing of HE
4769  *      before P802.11ax draft assigns the element ID extension. The payload of
4770  *      this vendor specific element is defined by the latest P802.11ax draft
4771  *      (not including the Element ID Extension field). Please note that the
4772  *      draft is still work in progress and this element payload is subject to
4773  *      change.
4774  */
4775 enum qca_vendor_element_id {
4776 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
4777 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
4778 	QCA_VENDOR_ELEM_HE_OPER = 2,
4779 	QCA_VENDOR_ELEM_RAPS = 3,
4780 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
4781 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
4782 };
4783 
4784 /**
4785  * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
4786  * @QCA_WLAN_VENDOR_ATTR_TSF_INVALID: Invalid attribute value
4787  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
4788  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
4789  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
4790  *	SOC timer value at TSF capture
4791  * @QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST: after last
4792  * @QCA_WLAN_VENDOR_ATTR_TSF_MAX: Max value
4793  */
4794 enum qca_vendor_attr_tsf_cmd {
4795 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
4796 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
4797 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
4798 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
4799 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
4800 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
4801 		QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
4802 };
4803 
4804 /**
4805  * enum qca_tsf_operation: TSF driver commands
4806  * @QCA_TSF_CAPTURE: Initiate TSF Capture
4807  * @QCA_TSF_GET: Get TSF capture value
4808  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
4809  */
4810 enum qca_tsf_cmd {
4811 	QCA_TSF_CAPTURE,
4812 	QCA_TSF_GET,
4813 	QCA_TSF_SYNC_GET,
4814 };
4815 
4816 /**
4817  * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
4818  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
4819  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
4820  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
4821  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
4822  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
4823  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
4824  */
4825 enum qca_vendor_attr_get_preferred_freq_list {
4826 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
4827 	/* A 32-unsigned value; the interface type/mode for which the preferred
4828 	 * frequency list is requested (see enum qca_iface_type for possible
4829 	 * values); used in both south- and north-bound.
4830 	 */
4831 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
4832 	/* An array of 32-unsigned values; values are frequency (MHz); used
4833 	 * in north-bound only.
4834 	 */
4835 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
4836 	/* An array of nested values as per enum
4837 	 *  qca_wlan_vendor_attr_pcl_config attribute.
4838 	 *  Each element contains frequency (MHz), weight, and flag
4839 	 *  bit mask indicating how the frequency should be used in P2P
4840 	 *  negotiation.
4841 	 */
4842 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
4843 	/* keep last */
4844 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
4845 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
4846 		QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
4847 };
4848 
4849 /**
4850  * enum qca_vendor_attr_probable_oper_channel - channel hint
4851  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
4852  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
4853  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
4854  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
4855  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
4856  */
4857 enum qca_vendor_attr_probable_oper_channel {
4858 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
4859 	/* 32-bit unsigned value; indicates the connection/iface type likely to
4860 	 * come on this channel (see enum qca_iface_type).
4861 	 */
4862 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
4863 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
4864 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
4865 	/* keep last */
4866 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
4867 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
4868 		QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
4869 };
4870 
4871 /**
4872  * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
4873  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
4874  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
4875  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
4876  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
4877  */
4878 enum qca_wlan_vendor_attr_gw_param_config {
4879 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
4880 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
4881 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
4882 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
4883 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
4884 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
4885 		QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
4886 };
4887 
4888 /**
4889  * enum drv_dbs_capability - DBS capability
4890  * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
4891  * @DRV_DBS_CAPABILITY_1X1: 1x1
4892  * @DRV_DBS_CAPABILITY_2X2: 2x2
4893  */
4894 enum drv_dbs_capability {
4895 	DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
4896 	DRV_DBS_CAPABILITY_1X1,
4897 	DRV_DBS_CAPABILITY_2X2,
4898 };
4899 
4900 /**
4901  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
4902  *
4903  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
4904  */
4905 enum qca_vendor_attr_txpower_decr_db {
4906 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
4907 	/*
4908 	 * 8-bit unsigned value to indicate the reduction of TX power in dB for
4909 	 * a virtual interface.
4910 	 */
4911 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
4912 	/* keep last */
4913 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
4914 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
4915 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
4916 };
4917 
4918 /**
4919  * enum qca_vendor_attr_ota_test - Enable OTA test
4920  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
4921  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
4922  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
4923  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
4924  */
4925 enum qca_vendor_attr_ota_test {
4926 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
4927 	/* 8-bit unsigned value to indicate if OTA test is enabled */
4928 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
4929 	/* keep last */
4930 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
4931 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
4932 		QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
4933 };
4934 
4935 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
4936  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
4937  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
4938  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
4939  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
4940  */
4941 enum qca_vendor_attr_txpower_scale {
4942 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
4943 	/* 8-bit unsigned value to indicate the scaling of tx power */
4944 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
4945 	/* keep last */
4946 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
4947 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
4948 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
4949 };
4950 
4951 /**
4952  * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
4953  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
4954  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
4955  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
4956  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
4957  */
4958 enum qca_vendor_attr_txpower_scale_decr_db {
4959 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
4960 	/* 8-bit unsigned value to indicate the scaling of tx power */
4961 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
4962 	/* keep last */
4963 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
4964 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
4965 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
4966 };
4967 
4968 /**
4969  * enum dfs_mode - state of DFS mode
4970  * @DFS_MODE_NONE: DFS mode attribute is none
4971  * @DFS_MODE_ENABLE:  DFS mode is enabled
4972  * @DFS_MODE_DISABLE: DFS mode is disabled
4973  * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
4974  */
4975 enum dfs_mode {
4976 	DFS_MODE_NONE,
4977 	DFS_MODE_ENABLE,
4978 	DFS_MODE_DISABLE,
4979 	DFS_MODE_DEPRIORITIZE
4980 };
4981 
4982 /**
4983  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
4984  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
4985  *
4986  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
4987  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
4988  *
4989  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
4990  * channel number hint for ACS operation, if valid channel is specified then
4991  * ACS operation gives priority to this channel.
4992  * Note: If both the driver and user space application supports the 6 GHz band,
4993  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
4994  * should be used.
4995  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
4996  * is still used if either of the driver or user space application doesn't
4997  * support the 6 GHz band.
4998  *
4999  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
5000  * Channel center frequency (MHz) hint for ACS operation, if a valid center
5001  * frequency is specified, ACS operation gives priority to this channel.
5002  */
5003 enum qca_wlan_vendor_attr_acs_config {
5004 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
5005 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
5006 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
5007 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
5008 
5009 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
5010 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
5011 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
5012 };
5013 
5014 /**
5015  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
5016  */
5017 enum qca_wlan_vendor_attr_get_hw_capability {
5018 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
5019 	/*
5020 	 * Antenna isolation
5021 	 * An attribute used in the response.
5022 	 * The content of this attribute is encoded in a byte array. Each byte
5023 	 * value is an antenna isolation value. The array length is the number
5024 	 * of antennas.
5025 	 */
5026 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
5027 	/*
5028 	 * Request HW capability
5029 	 * An attribute used in the request.
5030 	 * The content of this attribute is a u32 array for one or more of
5031 	 * hardware capabilities (attribute IDs) that are being requested. Each
5032 	 * u32 value has a value from this
5033 	 * enum qca_wlan_vendor_attr_get_hw_capability
5034 	 * identifying which capabilities are requested.
5035 	 */
5036 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
5037 
5038 	/* keep last */
5039 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
5040 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
5041 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
5042 };
5043 
5044 /**
5045  * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
5046  *                        config params for sta roam policy
5047  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
5048  * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
5049  * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
5050  * If sta should skip unsafe channels or not in scanning
5051  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
5052  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
5053  */
5054 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
5055 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
5056 	QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
5057 	QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
5058 
5059 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
5060 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
5061 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
5062 };
5063 
5064 /* Attributes for FTM commands and events */
5065 
5066 /**
5067  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
5068  *
5069  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
5070  *      enum qca_wlan_vendor_attr_loc_capa_flags.
5071  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
5072  *      of measurement sessions that can run concurrently.
5073  *      Default is one session (no session concurrency).
5074  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
5075  *      peers that are supported in running sessions. For example,
5076  *      if the value is 8 and maximum number of sessions is 2, you can
5077  *      have one session with 8 unique peers, or 2 sessions with 4 unique
5078  *      peers each, and so on.
5079  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
5080  *      of bursts per peer, as an exponent (2^value). Default is 0,
5081  *      meaning no multi-burst support.
5082  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
5083  *      of measurement exchanges allowed in a single burst.
5084  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
5085  *      types. A bit mask (unsigned 32 bit value), each bit corresponds
5086  *      to an AOA type as defined by enum qca_vendor_attr_aoa_type.
5087  */
5088 enum qca_wlan_vendor_attr_loc_capa {
5089 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
5090 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
5091 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
5092 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
5093 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
5094 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
5095 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
5096 	/* keep last */
5097 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
5098 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
5099 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
5100 };
5101 
5102 /**
5103  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
5104  *
5105  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
5106  *      can be configured as an FTM responder (for example, an AP that
5107  *      services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
5108  *      will be supported if set.
5109  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
5110  *      can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
5111  *      will be supported if set.
5112 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
5113  *      supports immediate (ASAP) response.
5114  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
5115  *      AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
5116  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
5117  *      requesting AOA measurements as part of an FTM session.
5118  */
5119 enum qca_wlan_vendor_attr_loc_capa_flags {
5120 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
5121 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
5122 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
5123 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
5124 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
5125 };
5126 
5127 /**
5128  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
5129  *
5130  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
5131  * Channel number on which Access Point should restart.
5132  * Note: If both the driver and user space application supports the 6 GHz band,
5133  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
5134  * should be used.
5135  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
5136  * is still used if either of the driver or user space application doesn't
5137  * support the 6 GHz band.
5138  *
5139  * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
5140  * Nested attribute to hold list of center frequencies on which AP is
5141  * expected to operate. This is irrespective of ACS configuration.
5142  * This list is a priority based one and is looked for before the AP is
5143  * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
5144  * co-exist in the system.
5145  *
5146  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
5147  * Channel center frequency (MHz) on which the access point should restart.
5148  */
5149 enum qca_wlan_vendor_attr_sap_config {
5150 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
5151 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
5152 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
5153 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
5154 
5155 	/* Keep last */
5156 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
5157 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
5158 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
5159 };
5160 
5161 /**
5162  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
5163  * a single peer in a measurement session.
5164  *
5165  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
5166  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
5167  *      to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
5168  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
5169  *      FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
5170  *      9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
5171  *      list of supported attributes.
5172  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
5173  *      secure measurement.
5174  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
5175  *      measurement every <value> bursts. If 0 or not specified,
5176  *      AOA measurements will be disabled for this peer.
5177  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
5178  *      the measurement frames are exchanged. Optional; if not
5179  *      specified, try to locate the peer in the kernel scan
5180  *      results cache and use frequency from there.
5181  */
5182 enum qca_wlan_vendor_attr_ftm_peer_info {
5183 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
5184 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
5185 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
5186 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
5187 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
5188 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
5189 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
5190 	/* keep last */
5191 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
5192 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
5193 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
5194 };
5195 
5196 /**
5197  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
5198  *      per-peer
5199  *
5200  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
5201  *      immediate (ASAP) response from peer.
5202  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
5203  *      LCI report from peer. The LCI report includes the absolute
5204  *      location of the peer in "official" coordinates (similar to GPS).
5205  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
5206  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
5207  *      Location civic report from peer. The LCR includes the location
5208  *      of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
5209  *      11.24.6.7 for more information.
5210  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
5211  *      request a secure measurement.
5212  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
5213  */
5214 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
5215 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP    = 1 << 0,
5216 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI     = 1 << 1,
5217 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR     = 1 << 2,
5218 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE  = 1 << 3,
5219 };
5220 
5221 /**
5222  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
5223  *
5224  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
5225  *      to perform in a single burst.
5226  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
5227  *      perform, specified as an exponent (2^value).
5228  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
5229  *      instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
5230  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
5231  *      as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
5232  *      be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
5233  */
5234 enum qca_wlan_vendor_attr_ftm_meas_param {
5235 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
5236 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
5237 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
5238 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
5239 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
5240 	/* keep last */
5241 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
5242 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
5243 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
5244 };
5245 
5246 /**
5247  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
5248  *
5249  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
5250  *       peer.
5251  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
5252  *      request for this peer.
5253  *      See enum qca_wlan_vendor_attr_ftm_peer_result_status.
5254  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
5255  *      to measurement results for this peer.
5256  *      See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
5257  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
5258  *      request failed and peer requested not to send an additional request
5259  *      for this number of seconds.
5260  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
5261  *      from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
5262  *      9.4.2.22.10.
5263  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
5264  *      received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
5265  *      9.4.2.22.13.
5266  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
5267  *      overridden some measurement request parameters. See
5268  *      enum qca_wlan_vendor_attr_ftm_meas_param.
5269  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
5270  *      for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
5271  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
5272  *      results. Each entry is a nested attribute defined
5273  *      by enum qca_wlan_vendor_attr_ftm_meas.
5274  */
5275 enum qca_wlan_vendor_attr_ftm_peer_result {
5276 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
5277 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
5278 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
5279 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
5280 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
5281 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
5282 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
5283 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
5284 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
5285 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
5286 	/* keep last */
5287 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
5288 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
5289 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
5290 };
5291 
5292 /**
5293  * enum qca_wlan_vendor_attr_ftm_peer_result_status
5294  *
5295  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
5296  *      will be provided. Peer may have overridden some measurement parameters,
5297  *      in which case overridden parameters will be report by
5298  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
5299  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
5300  *      of performing the measurement request. No more results will be sent
5301  *      for this peer in this session.
5302  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
5303  *      failed, and requested not to send an additional request for number
5304  *      of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
5305  *      attribute.
5306  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
5307  *      failed. Request was not sent over the air.
5308  */
5309 enum qca_wlan_vendor_attr_ftm_peer_result_status {
5310 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
5311 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
5312 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
5313 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
5314 };
5315 
5316 /**
5317  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
5318  *  for measurement result, per-peer
5319  *
5320  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
5321  *      measurement completed for this peer. No more results will be reported
5322  *      for this peer in this session.
5323  */
5324 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
5325 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
5326 };
5327 
5328 /**
5329  * enum qca_vendor_attr_loc_session_status: Session completion status code
5330  *
5331  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
5332  *      successfully.
5333  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
5334  *      by request.
5335  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
5336  *      was invalid and was not started.
5337  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
5338  *      and did not complete normally (for example out of resources).
5339  */
5340 enum qca_vendor_attr_loc_session_status {
5341 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
5342 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
5343 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
5344 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
5345 };
5346 
5347 /**
5348  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
5349  *
5350  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
5351  *      recorded by responder, in picoseconds.
5352  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5353  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
5354  *      initiator, in picoseconds.
5355  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5356  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
5357  *      initiator, in picoseconds.
5358  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5359  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
5360  *      responder, in picoseconds.
5361  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
5362  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
5363  *      during this measurement exchange. Optional and will be provided if
5364  *      the hardware can measure it.
5365  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
5366  *      responder. Not always provided.
5367  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5368  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
5369  *      responder. Not always provided.
5370  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5371  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
5372  *      initiator. Not always provided.
5373  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5374  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
5375  *      initiator. Not always provided.
5376  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
5377  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
5378  */
5379 enum qca_wlan_vendor_attr_ftm_meas {
5380 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
5381 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
5382 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
5383 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
5384 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
5385 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
5386 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
5387 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
5388 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
5389 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
5390 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
5391 	/* keep last */
5392 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
5393 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
5394 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
5395 };
5396 
5397 /**
5398  * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
5399  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
5400  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
5401  *     A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
5402  *     of the social channels.
5403  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
5404  *     A 32-bit unsigned value; the P2P listen offload period (ms).
5405  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
5406  *     A 32-bit unsigned value; the P2P listen interval duration (ms).
5407  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
5408  *     A 32-bit unsigned value; number of interval times the Firmware needs
5409  *     to run the offloaded P2P listen operation before it stops.
5410  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
5411  *     An array of unsigned 8-bit characters; vendor information elements.
5412  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
5413  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
5414  *     A 32-bit unsigned value; a control flag to indicate whether listen
5415  *     results need to be flushed to wpa_supplicant.
5416  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
5417  *     A 8-bit unsigned value; reason code for P2P listen offload stop
5418  *     event.
5419  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
5420  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
5421  */
5422 enum qca_wlan_vendor_attr_p2p_listen_offload {
5423 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
5424 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
5425 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
5426 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
5427 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
5428 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
5429 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
5430 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
5431 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
5432 	/* keep last */
5433 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
5434 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
5435 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
5436 };
5437 
5438 /**
5439  * enum qca_wlan_vendor_drv_info - WLAN driver info
5440  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
5441  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
5442  * between Firmware & Host.
5443  */
5444 enum qca_wlan_vendor_drv_info {
5445 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
5446 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
5447 
5448 	/* keep last */
5449 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
5450 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
5451 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
5452 };
5453 
5454 /**
5455  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
5456  *
5457  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
5458  *      CIR (channel impulse response) path for each antenna.
5459  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
5460  *      of the strongest CIR path for each antenna.
5461  */
5462 enum qca_wlan_vendor_attr_aoa_type {
5463 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
5464 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
5465 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
5466 };
5467 
5468 /**
5469  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
5470  * validate encryption engine
5471  *
5472  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
5473  *    This will be included if the request is for decryption; if not included,
5474  *    the request is treated as a request for encryption by default.
5475  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
5476  *    indicating the key cipher suite. Takes same values as
5477  *    NL80211_ATTR_KEY_CIPHER.
5478  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
5479  *    Key Id to be used for encryption
5480  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
5481  *    Key (TK) to be used for encryption/decryption
5482  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
5483  *    Packet number to be specified for encryption/decryption
5484  *    6 bytes for TKIP/CCMP/GCMP.
5485  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
5486  *    representing the 802.11 packet (header + payload + FCS) that
5487  *    needs to be encrypted/decrypted.
5488  *    Encrypted/decrypted response from the driver will also be sent
5489  *    to userspace with the same attribute.
5490  */
5491 enum qca_wlan_vendor_attr_encryption_test {
5492 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
5493 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
5494 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
5495 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
5496 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
5497 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
5498 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
5499 
5500 	/* keep last */
5501 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
5502 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
5503 		QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
5504 };
5505 
5506 /**
5507  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
5508  * sector for DMG RF sector operations.
5509  *
5510  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
5511  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
5512  */
5513 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
5514 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
5515 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
5516 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
5517 };
5518 
5519 /**
5520  * enum qca_wlan_vendor_attr_fw_state - State of firmware
5521  *
5522  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
5523  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
5524  */
5525 enum qca_wlan_vendor_attr_fw_state {
5526 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
5527 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
5528 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
5529 };
5530 
5531 /**
5532  * BRP antenna limit mode
5533  *
5534  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
5535  *      antenna limit, BRP will be performed as usual.
5536  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
5537  *      antennas limit. the hardware may use less antennas than the
5538  *      maximum limit.
5539  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
5540  *      use exactly the specified number of antennas for BRP.
5541  */
5542 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
5543 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
5544 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
5545 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
5546 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
5547 };
5548 
5549 /**
5550  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
5551  * DMG RF sector configuration for a single RF module.
5552  * The values are defined in a compact way which closely matches
5553  * the way it is stored in HW registers.
5554  * The configuration provides values for 32 antennas and 8 distribution
5555  * amplifiers, and together describes the characteristics of the RF
5556  * sector - such as a beam in some direction with some gain.
5557  *
5558  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
5559  *      of RF module for this configuration.
5560  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
5561  *      amplifier gain index. Unsigned 32 bit number containing
5562  *      bits for all 32 antennas.
5563  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
5564  *      amplifier gain index. Unsigned 32 bit number containing
5565  *      bits for all 32 antennas.
5566  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
5567  *      amplifier gain index. Unsigned 32 bit number containing
5568  *      bits for all 32 antennas.
5569  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
5570  *      for first 16 antennas, 2 bits per antenna.
5571  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
5572  *      for last 16 antennas, 2 bits per antenna.
5573  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
5574  *      DTYPE values (3 bits) for each distribution amplifier, followed
5575  *      by X16 switch bits for each distribution amplifier. There are
5576  *      total of 8 distribution amplifiers.
5577  */
5578 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
5579 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
5580 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
5581 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
5582 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
5583 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
5584 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
5585 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
5586 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
5587 
5588 	/* keep last */
5589 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
5590 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
5591 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
5592 };
5593 
5594 /**
5595  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
5596  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
5597  *
5598  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
5599  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
5600  *	represents the different TDLS trigger modes.
5601  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
5602  *	which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
5603  *	of packets shall meet the criteria for implicit TDLS setup.
5604  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
5605  *	packets within a duration.
5606  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
5607  *	a TDLS setup.
5608  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
5609  *	a TDLS Discovery to the Peer.
5610  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
5611  *	discovery attempts to know the TDLS capability of the peer. A peer is
5612  *	marked as TDLS not capable if there is no response for all the attempts.
5613  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
5614  *	within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
5615  *	number of TX / RX frames meet the criteria for TDLS teardown.
5616  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
5617  *	(u32) of Tx/Rx packets within a duration
5618  *	CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
5619  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
5620  *	corresponding to the RSSI of the peer below which a TDLS
5621  *	setup is triggered.
5622  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
5623  *	corresponding to the RSSI of the peer above which
5624  *	a TDLS teardown is triggered.
5625  */
5626 enum qca_wlan_vendor_attr_tdls_configuration {
5627 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
5628 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
5629 
5630 	/* Attributes configuring the TDLS Implicit Trigger */
5631 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
5632 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
5633 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
5634 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
5635 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
5636 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
5637 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
5638 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
5639 
5640 	/* keep last */
5641 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
5642 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
5643 		QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
5644 };
5645 
5646 /**
5647  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
5648  *	the driver.
5649  *
5650  * The following are the different values for
5651  * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
5652  *
5653  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
5654  *	initiate/teardown the TDLS connection to a respective peer comes
5655  *	 from the user space. wpa_supplicant provides the commands
5656  *	TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
5657  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
5658  *	setup/teardown to the eligible peer once the configured criteria
5659  *	(such as TX/RX threshold, RSSI) is met. The attributes
5660  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
5661  *	the different configuration criteria for the TDLS trigger from the
5662  *	host driver.
5663  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
5664  *	the TDLS setup / teardown through the implicit mode, only to the
5665  *	configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
5666  *	configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
5667  *	External mode works on top of the implicit mode, thus the host Driver
5668  *	is expected to be configured in TDLS Implicit mode too to operate in
5669  *	External mode. Configuring External mode alone without Implicit
5670  *	mode is invalid.
5671  *
5672  * All the above implementations work as expected only when the host driver
5673  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
5674  * representing that the TDLS message exchange is not internal to the host
5675  * driver, but depends on wpa_supplicant to do the message exchange.
5676  */
5677 enum qca_wlan_vendor_tdls_trigger_mode {
5678 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
5679 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
5680 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
5681 };
5682 
5683 /**
5684  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
5685  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
5686  *	that is hard-coded in the Board Data File (BDF).
5687  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
5688  *	that is hard-coded in the Board Data File (BDF).
5689  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
5690  *	that is hard-coded in the Board Data File (BDF).
5691  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
5692  *	that is hard-coded in the Board Data File (BDF).
5693  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
5694  *	that is hard-coded in the Board Data File (BDF).
5695  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
5696  *	source of SAR power limits, thereby disabling the SAR power
5697  *	limit feature.
5698  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
5699  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
5700  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
5701  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
5702  *
5703  * This enumerates the valid set of values that may be supplied for
5704  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
5705  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
5706  * the response to an instance of the
5707  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
5708  */
5709 enum qca_vendor_attr_sar_limits_selections {
5710 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
5711 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
5712 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
5713 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
5714 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
5715 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
5716 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
5717 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
5718 };
5719 
5720 /**
5721  * enum qca_vendor_attr_sar_limits_spec_modulations -
5722  *	SAR limits specification modulation
5723  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
5724  *	CCK modulation
5725  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
5726  *	OFDM modulation
5727  *
5728  * This enumerates the valid set of values that may be supplied for
5729  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
5730  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
5731  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
5732  * command or in the response to an instance of the
5733  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
5734  */
5735 enum qca_vendor_attr_sar_limits_spec_modulations {
5736 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
5737 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
5738 };
5739 
5740 /**
5741  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
5742  *
5743  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
5744  *	select which SAR power limit table should be used.  Valid
5745  *	values are enumerated in enum
5746  *	%qca_vendor_attr_sar_limits_selections.  The existing SAR
5747  *	power limit selection is unchanged if this attribute is not
5748  *	present.
5749  *
5750  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
5751  *	which specifies the number of SAR power limit specifications
5752  *	which will follow.
5753  *
5754  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
5755  *	limit specifications. The number of specifications is
5756  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
5757  *	specification contains a set of
5758  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
5759  *	specification is uniquely identified by the attributes
5760  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
5761  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
5762  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
5763  *	contains as a payload the attribute
5764  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
5765  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
5766  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
5767  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
5768  *	needed based upon the value of
5769  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
5770  *
5771  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
5772  *	indicate for which band this specification applies. Valid
5773  *	values are enumerated in enum %nl80211_band (although not all
5774  *	bands may be supported by a given device). If the attribute is
5775  *	not supplied then the specification will be applied to all
5776  *	supported bands.
5777  *
5778  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
5779  *	to indicate for which antenna chain this specification
5780  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
5781  *	attribute is not supplied then the specification will be
5782  *	applied to all chains.
5783  *
5784  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
5785  *	value to indicate for which modulation scheme this
5786  *	specification applies. Valid values are enumerated in enum
5787  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
5788  *	is not supplied then the specification will be applied to all
5789  *	modulation schemes.
5790  *
5791  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
5792  *	value to specify the actual power limit value in units of 0.5
5793  *	dBm (i.e., a value of 11 represents 5.5 dBm).
5794  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5795  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
5796  *
5797  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
5798  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
5799  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
5800  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
5801  *
5802  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
5803  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
5804  */
5805 enum qca_vendor_attr_sar_limits {
5806 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
5807 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
5808 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
5809 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
5810 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
5811 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
5812 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
5813 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
5814 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
5815 
5816 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
5817 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
5818 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
5819 };
5820 
5821 /**
5822  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
5823  *    offload which is an extension for LL_STATS.
5824  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
5825  *    If MAC counters do not exceed the threshold, FW will report monitored
5826  *    link layer counters periodically as this setting. The first report is
5827  *    always triggered by this timer.
5828  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
5829  *    For each MAC layer counter, FW holds two copies. One is the current value.
5830  *    The other is the last report. Once a current counter's increment is larger
5831  *    than the threshold, FW will indicate that counter to host even if the
5832  *    monitoring timer does not expire.
5833  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
5834  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
5835  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
5836  *    failure code.
5837  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
5838  *    1: TX packet discarded
5839  *    2: No ACK
5840  *    3: Postpone
5841  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
5842  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
5843  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
5844  *    Threshold for all monitored parameters. If per counter dedicated threshold
5845  *    is not enabled, this threshold will take effect.
5846  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
5847  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
5848  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
5849  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
5850  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
5851  *    Bit0: TX counter unit in MSDU
5852  *    Bit1: TX counter unit in MPDU
5853  *    Bit2: TX counter unit in PPDU
5854  *    Bit3: TX counter unit in byte
5855  *    Bit4: Dropped MSDUs
5856  *    Bit5: Dropped Bytes
5857  *    Bit6: MPDU retry counter
5858  *    Bit7: MPDU failure counter
5859  *    Bit8: PPDU failure counter
5860  *    Bit9: MPDU aggregation counter
5861  *    Bit10: MCS counter for ACKed MPDUs
5862  *    Bit11: MCS counter for Failed MPDUs
5863  *    Bit12: TX Delay counter
5864  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
5865  *    Bit0: MAC RX counter unit in MPDU
5866  *    Bit1: MAC RX counter unit in byte
5867  *    Bit2: PHY RX counter unit in PPDU
5868  *    Bit3: PHY RX counter unit in byte
5869  *    Bit4: Disorder counter
5870  *    Bit5: Retry counter
5871  *    Bit6: Duplication counter
5872  *    Bit7: Discard counter
5873  *    Bit8: MPDU aggregation size counter
5874  *    Bit9: MCS counter
5875  *    Bit10: Peer STA power state change (wake to sleep) counter
5876  *    Bit11: Peer STA power save counter, total time in PS mode
5877  *    Bit12: Probe request counter
5878  *    Bit13: Other management frames counter
5879  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
5880  *    Bit0: Idle time
5881  *    Bit1: TX time
5882  *    Bit2: time RX in current bss
5883  *    Bit3: Out of current bss time
5884  *    Bit4: Wireless medium busy time
5885  *    Bit5: RX in bad condition time
5886  *    Bit6: TX in bad condition time
5887  *    Bit7: time wlan card not available
5888  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
5889  *    Bit0: Per channel SNR counter
5890  *    Bit1: Per channel noise floor counter
5891  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
5892  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
5893  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
5894  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
5895  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
5896  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
5897  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
5898  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
5899  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
5900  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
5901  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
5902  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
5903  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
5904  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
5905  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
5906  *    aggregation stats buffer length
5907  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
5908  *    buffer for ACKed MPDUs.
5909  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
5910  *    buffer for failed MPDUs.
5911  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
5912  *    length of delay stats array.
5913  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
5914  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
5915  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
5916  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
5917  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
5918  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
5919  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
5920  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
5921  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
5922  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
5923  *    flagged as retransmissions
5924  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
5925  *    flagged as duplicated
5926  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
5927  *    packets discarded
5928  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
5929  *    stats buffer.
5930  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
5931  *    stats buffer.
5932  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
5933  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
5934  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
5935  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
5936  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
5937  *    requests received
5938  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
5939  *    frames received
5940  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
5941  *    there is no TX, nor RX, nor interference.
5942  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
5943  *    transmitting packets.
5944  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
5945  *    for receiving.
5946  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
5947  *    interference detected.
5948  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
5949  *    receiving packets with errors.
5950  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
5951  *    TX no-ACK.
5952  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
5953  *    the chip is unable to work in normal conditions.
5954  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
5955  *    receiving packets in current BSS.
5956  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
5957  *    receiving packets not in current BSS.
5958  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
5959  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
5960  *    This is a container for per antenna signal stats.
5961  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
5962  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
5963  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
5964  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
5965  */
5966 enum qca_wlan_vendor_attr_ll_stats_ext {
5967 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
5968 
5969 	/* Attributes for configurations */
5970 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
5971 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
5972 
5973 	/* Peer STA power state change */
5974 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
5975 
5976 	/* TX failure event */
5977 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
5978 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
5979 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
5980 
5981 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
5982 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
5983 
5984 	/* MAC counters */
5985 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
5986 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
5987 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
5988 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
5989 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
5990 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
5991 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
5992 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
5993 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
5994 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
5995 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
5996 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
5997 
5998 	/* Sub-attributes for PEER_AC_TX */
5999 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
6000 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
6001 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
6002 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
6003 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
6004 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
6005 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
6006 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
6007 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
6008 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
6009 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
6010 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
6011 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
6012 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
6013 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
6014 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
6015 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
6016 
6017 	/* Sub-attributes for PEER_AC_RX */
6018 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
6019 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
6020 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
6021 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
6022 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
6023 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
6024 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
6025 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
6026 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
6027 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
6028 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
6029 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
6030 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
6031 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
6032 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
6033 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
6034 
6035 	/* Sub-attributes for CCA_BSS */
6036 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
6037 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
6038 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
6039 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
6040 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
6041 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
6042 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
6043 
6044 	/* sub-attribute for BSS_RX_TIME */
6045 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
6046 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
6047 
6048 	/* Sub-attributes for PEER_SIGNAL */
6049 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
6050 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
6051 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
6052 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
6053 
6054 	/* Sub-attributes for IFACE_BSS */
6055 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
6056 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
6057 
6058 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
6059 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
6060 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
6061 };
6062 
6063 /**
6064  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
6065  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
6066  * in priority order as decided after ACS operation in userspace.
6067  *
6068  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
6069  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
6070  *
6071  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
6072  * Array of nested values for each channel with following attributes:
6073  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6074  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6075  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6076  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6077  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6078  * Note: If both the driver and user-space application supports the 6 GHz band,
6079  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
6080  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
6081  * To maintain backward compatibility,
6082  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
6083  * is still used if either of the driver or user space application doesn't
6084  * support the 6 GHz band.
6085  *
6086  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
6087  * Primary channel number
6088  * Note: If both the driver and user-space application supports the 6 GHz band,
6089  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
6090  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
6091  * To maintain backward compatibility,
6092  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
6093  * is still used if either of the driver or user space application doesn't
6094  * support the 6 GHz band.
6095  *
6096  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
6097  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
6098  * Note: If both the driver and user-space application supports the 6 GHz band,
6099  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
6100  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
6101  * To maintain backward compatibility,
6102  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
6103  * is still used if either of the driver or user space application
6104  * doesn't support the 6 GHz band.
6105  *
6106  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
6107  * VHT seg0 channel number
6108  * Note: If both the driver and user-space application supports the 6 GHz band,
6109  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
6110  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
6111  * To maintain backward compatibility,
6112  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
6113  * is still used if either of the driver or user space application
6114  * doesn't support the 6 GHz band.
6115  *
6116  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
6117  * VHT seg1 channel number
6118  * Note: If both the driver and user-space application supports the 6 GHz band,
6119  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
6120  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
6121  * To maintain backward compatibility,
6122  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
6123  * is still used if either of the driver or user space application
6124  * doesn't support the 6 GHz band.
6125  *
6126  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
6127  * Takes one of enum nl80211_chan_width values.
6128  *
6129  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
6130  * Array of nested values for each channel with following attributes:
6131  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
6132  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
6133  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
6134  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
6135  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6136  * Note: If user-space application has no support of the 6 GHz band, this
6137  * attribute is optional.
6138  *
6139  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
6140  * Primary channel frequency in MHz
6141  * Note: If user-space application has no support of the 6 GHz band, this
6142  * attribute is optional.
6143  *
6144  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
6145  * Secondary channel frequency in MHz used for HT 40 MHz channels.
6146  * Note: If user-space application has no support of the 6 GHz band, this
6147  * attribute is optional.
6148  *
6149  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
6150  * VHT seg0 channel frequency in MHz
6151  * Note: If user-space application has no support of the 6GHz band, this
6152  * attribute is optional.
6153  *
6154  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
6155  * VHT seg1 channel frequency in MHz
6156  * Note: If user-space application has no support of the 6 GHz band, this
6157  * attribute is optional.
6158  */
6159 enum qca_wlan_vendor_attr_external_acs_channels {
6160 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
6161 
6162 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
6163 	 */
6164 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
6165 
6166 	/* Array of nested values for each channel with following attributes:
6167 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
6168 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
6169 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
6170 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
6171 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
6172 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
6173 	 */
6174 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
6175 	/* This (u8) will hold values of one of enum nl80211_bands */
6176 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
6177 	/* Primary channel (u8) */
6178 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
6179 	/* Secondary channel (u8) used for HT 40 MHz channels */
6180 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
6181 	/* VHT seg0 channel (u8) */
6182 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
6183 	/* VHT seg1 channel (u8) */
6184 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
6185 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
6186 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
6187 
6188 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
6189 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
6190 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
6191 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
6192 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
6193 
6194 	/* keep last */
6195 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
6196 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
6197 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
6198 };
6199 
6200 /**
6201  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
6202  * the ACS has to be triggered. These values are used by
6203  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
6204  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
6205  */
6206 enum qca_wlan_vendor_acs_select_reason {
6207 	/* Represents the reason that the ACS triggered during the AP start */
6208 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
6209 	/* Represents the reason that DFS found with the current channel */
6210 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
6211 	/* Represents the reason that LTE co-exist in the current band. */
6212 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
6213 	/* Represents the reason that generic, uncategorized interference has
6214 	 * been found in the current channel.
6215 	 */
6216 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
6217 	/* Represents the reason that excessive 802.11 interference has been
6218 	 * found in the current channel.
6219 	 */
6220 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
6221 	/* Represents the reason that generic Continuous Wave (CW) interference
6222 	 * has been found in the current channel.
6223 	 */
6224 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
6225 	/* Represents the reason that Microwave Oven (MWO) interference has been
6226 	 * found in the current channel.
6227 	 */
6228 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
6229 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
6230 	 * (FHSS) interference has been found in the current channel. This may
6231 	 * include 802.11 waveforms.
6232 	 */
6233 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
6234 	/* Represents the reason that non-802.11 generic Frequency-Hopping
6235 	 * Spread Spectrum (FHSS) interference has been found in the current
6236 	 * channel.
6237 	 */
6238 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
6239 	/* Represents the reason that generic Wideband (WB) interference has
6240 	 * been found in the current channel. This may include 802.11 waveforms.
6241 	 */
6242 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
6243 	/* Represents the reason that non-802.11 generic Wideband (WB)
6244 	 * interference has been found in the current channel.
6245 	 */
6246 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
6247 	/* Represents the reason that Jammer interference has been found in the
6248 	 * current channel.
6249 	 */
6250 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
6251 };
6252 
6253 /**
6254  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
6255  */
6256 enum qca_wlan_gpio_attr {
6257 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
6258 	/* Unsigned 32-bit attribute for GPIO command */
6259 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
6260 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
6261 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
6262 	/* Unsigned 32-bit attribute for GPIO value to configure */
6263 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
6264 	/* Unsigned 32-bit attribute for GPIO pull type */
6265 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
6266 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
6267 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
6268 
6269 	/* keep last */
6270 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
6271 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
6272 		QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
6273 };
6274 
6275 /**
6276  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
6277  * MSDUQ depth threshold per peer per tid in the target
6278  *
6279  * Associated Vendor Command:
6280  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
6281  */
6282 enum qca_wlan_set_qdepth_thresh_attr {
6283 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
6284 	/* 6-byte MAC address */
6285 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
6286 	/* Unsigned 32-bit attribute for holding the TID */
6287 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
6288 	/* Unsigned 32-bit attribute for holding the update mask
6289 	 * bit 0 - Update high priority msdu qdepth threshold
6290 	 * bit 1 - Update low priority msdu qdepth threshold
6291 	 * bit 2 - Update UDP msdu qdepth threshold
6292 	 * bit 3 - Update Non UDP msdu qdepth threshold
6293 	 * rest of bits are reserved
6294 	 */
6295 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
6296 	/* Unsigned 32-bit attribute for holding the threshold value */
6297 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
6298 
6299 	/* keep last */
6300 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
6301 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
6302 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
6303 };
6304 
6305 /**
6306  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
6307  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
6308  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
6309  * external ACS policies to select the channels w.r.t. the PCL weights.
6310  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
6311  * their PCL weights.)
6312  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
6313  * select a channel with non-zero PCL weight.
6314  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
6315  * channel with non-zero PCL weight.
6316  *
6317  */
6318 enum qca_wlan_vendor_attr_external_acs_policy {
6319 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
6320 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
6321 };
6322 
6323 /**
6324  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
6325  */
6326 enum qca_wlan_vendor_attr_spectral_scan {
6327 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
6328 	/*
6329 	 * Number of times the chip enters spectral scan mode before
6330 	 * deactivating spectral scans. When set to 0, chip will enter spectral
6331 	 * scan mode continuously. u32 attribute.
6332 	 */
6333 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
6334 	/*
6335 	 * Spectral scan period. Period increment resolution is 256*Tclk,
6336 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
6337 	 */
6338 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
6339 	/* Spectral scan priority. u32 attribute. */
6340 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
6341 	/* Number of FFT data points to compute. u32 attribute. */
6342 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
6343 	/*
6344 	 * Enable targeted gain change before starting the spectral scan FFT.
6345 	 * u32 attribute.
6346 	 */
6347 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
6348 	/* Restart a queued spectral scan. u32 attribute. */
6349 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
6350 	/*
6351 	 * Noise floor reference number for the calculation of bin power.
6352 	 * u32 attribute.
6353 	 */
6354 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
6355 	/*
6356 	 * Disallow spectral scan triggers after TX/RX packets by setting
6357 	 * this delay value to roughly SIFS time period or greater.
6358 	 * u32 attribute.
6359 	 */
6360 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
6361 	/*
6362 	 * Number of strong bins (inclusive) per sub-channel, below
6363 	 * which a signal is declared a narrow band tone. u32 attribute.
6364 	 */
6365 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
6366 	/*
6367 	 * Specify the threshold over which a bin is declared strong (for
6368 	 * scan bandwidth analysis). u32 attribute.
6369 	 */
6370 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
6371 	/* Spectral scan report mode. u32 attribute. */
6372 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
6373 	/*
6374 	 * RSSI report mode, if the ADC RSSI is below
6375 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
6376 	 * then FFTs will not trigger, but timestamps and summaries get
6377 	 * reported. u32 attribute.
6378 	 */
6379 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
6380 	/*
6381 	 * ADC RSSI must be greater than or equal to this threshold (signed dB)
6382 	 * to ensure spectral scan reporting with normal error code.
6383 	 * u32 attribute.
6384 	 */
6385 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
6386 	/*
6387 	 * Format of frequency bin magnitude for spectral scan triggered FFTs:
6388 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
6389 	 * u32 attribute.
6390 	 */
6391 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
6392 	/*
6393 	 * Format of FFT report to software for spectral scan triggered FFTs.
6394 	 * 0: No FFT report (only spectral scan summary report)
6395 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
6396 	 * report
6397 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
6398 	 * bins (in-band) per FFT + spectral scan summary report
6399 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
6400 	 * bins (all) per FFT + spectral scan summary report
6401 	 * u32 attribute.
6402 	 */
6403 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
6404 	/*
6405 	 * Number of LSBs to shift out in order to scale the FFT bins.
6406 	 * u32 attribute.
6407 	 */
6408 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
6409 	/*
6410 	 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
6411 	 * in dBm power. u32 attribute.
6412 	 */
6413 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
6414 	/*
6415 	 * Per chain enable mask to select input ADC for search FFT.
6416 	 * u32 attribute.
6417 	 */
6418 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
6419 	/*
6420 	 * An unsigned 64-bit integer provided by host driver to identify the
6421 	 * spectral scan request. This attribute is included in the scan
6422 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
6423 	 * and used as an attribute in
6424 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
6425 	 * specific scan to be stopped.
6426 	 */
6427 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
6428 	/* Skip interval for FFT reports. u32 attribute */
6429 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
6430 	/* Set to report only one set of FFT results.
6431 	 * u32 attribute.
6432 	 */
6433 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
6434 	/* Debug level for spectral module in driver.
6435 	 * 0 : Verbosity level 0
6436 	 * 1 : Verbosity level 1
6437 	 * 2 : Verbosity level 2
6438 	 * 3 : Matched filterID display
6439 	 * 4 : One time dump of FFT report
6440 	 * u32 attribute.
6441 	 */
6442 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
6443 	/* Type of spectral scan request. u32 attribute.
6444 	 * It uses values defined in enum
6445 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
6446 	 */
6447 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
6448 	/* This specifies the frequency span over which spectral
6449 	 * scan would be carried out. Its value depends on the
6450 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
6451 	 * the relation is as follows.
6452 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
6453 	 *    Not applicable. Spectral scan would happen in the
6454 	 *    operating span.
6455 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
6456 	 *    Center frequency (in MHz) of the span of interest or
6457 	 *    for convenience, center frequency (in MHz) of any channel
6458 	 *    in the span of interest. If agile spectral scan is initiated
6459 	 *    without setting a valid frequency it returns the error code
6460 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
6461 	 * u32 attribute.
6462 	 */
6463 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
6464 	/* Spectral scan mode. u32 attribute.
6465 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6466 	 * If this attribute is not present, it is assumed to be
6467 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
6468 	 */
6469 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
6470 	/* Spectral scan error code. u32 attribute.
6471 	 * It uses values defined in enum
6472 	 * qca_wlan_vendor_spectral_scan_error_code.
6473 	 * This attribute is included only in failure scenarios.
6474 	 */
6475 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
6476 	/* 8-bit unsigned value to enable/disable debug of the
6477 	 * Spectral DMA ring.
6478 	 * 1-enable, 0-disable
6479 	 */
6480 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
6481 	/* 8-bit unsigned value to enable/disable debug of the
6482 	 * Spectral DMA buffers.
6483 	 * 1-enable, 0-disable
6484 	 */
6485 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
6486 
6487 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
6488 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
6489 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
6490 };
6491 
6492 /**
6493  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
6494  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
6495  */
6496 enum qca_wlan_vendor_attr_spectral_diag_stats {
6497 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
6498 	/* Number of spectral TLV signature mismatches.
6499 	 * u64 attribute.
6500 	 */
6501 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
6502 	/* Number of spectral phyerror events with insufficient length when
6503 	 * parsing for secondary 80 search FFT report. u64 attribute.
6504 	 */
6505 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
6506 	/* Number of spectral phyerror events without secondary 80
6507 	 * search FFT report. u64 attribute.
6508 	 */
6509 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
6510 	/* Number of spectral phyerror events with vht operation segment 1 id
6511 	 * mismatches in search fft report. u64 attribute.
6512 	 */
6513 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
6514 	/* Number of spectral phyerror events with vht operation segment 2 id
6515 	 * mismatches in search fft report. u64 attribute.
6516 	 */
6517 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
6518 
6519 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
6520 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
6521 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
6522 };
6523 
6524 /**
6525  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
6526  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
6527  */
6528 enum qca_wlan_vendor_attr_spectral_cap {
6529 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
6530 	/* Flag attribute to indicate phydiag capability */
6531 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
6532 	/* Flag attribute to indicate radar detection capability */
6533 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
6534 	/* Flag attribute to indicate spectral capability */
6535 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
6536 	/* Flag attribute to indicate advanced spectral capability */
6537 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
6538 	/* Spectral hardware generation. u32 attribute.
6539 	 * It uses values defined in enum
6540 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
6541 	 */
6542 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
6543 	/* Spectral bin scaling formula ID. u16 attribute.
6544 	 * It uses values defined in enum
6545 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
6546 	 */
6547 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
6548 	/* Spectral bin scaling param - low level offset.
6549 	 * s16 attribute.
6550 	 */
6551 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
6552 	/* Spectral bin scaling param - high level offset.
6553 	 * s16 attribute.
6554 	 */
6555 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
6556 	/* Spectral bin scaling param - RSSI threshold.
6557 	 * s16 attribute.
6558 	 */
6559 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
6560 	/* Spectral bin scaling param - default AGC max gain.
6561 	 * u8 attribute.
6562 	 */
6563 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
6564 	/* Flag attribute to indicate agile spectral scan capability
6565 	 * for 20/40/80 MHz modes.
6566 	 */
6567 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
6568 	/* Flag attribute to indicate agile spectral scan capability
6569 	 * for 160 MHz mode.
6570 	 */
6571 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
6572 	/* Flag attribute to indicate agile spectral scan capability
6573 	 * for 80+80 MHz mode.
6574 	 */
6575 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
6576 
6577 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
6578 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
6579 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
6580 };
6581 
6582 /**
6583  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
6584  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
6585  */
6586 enum qca_wlan_vendor_attr_spectral_scan_status {
6587 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
6588 	/* Flag attribute to indicate whether spectral scan is enabled */
6589 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
6590 	/* Flag attribute to indicate whether spectral scan is in progress*/
6591 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
6592 	/* Spectral scan mode. u32 attribute.
6593 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
6594 	 * If this attribute is not present, normal mode
6595 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
6596 	 * requested.
6597 	 */
6598 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
6599 
6600 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
6601 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
6602 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
6603 };
6604 
6605 /**
6606  * enum qca_wlan_vendor_attr_config_latency_level - Level for
6607  * wlan latency module.
6608  *
6609  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
6610  * power saving which would causing data exchange out of service, this
6611  * would be a big impact on latency. For latency sensitive applications over
6612  * Wi-Fi are intolerant to such operations and thus would configure them
6613  * to meet their respective needs. It is well understood by such applications
6614  * that altering the default behavior would degrade the Wi-Fi functionality
6615  * w.r.t the above pointed WLAN operations.
6616  *
6617  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
6618  *      Default WLAN operation level which throughput orientated.
6619  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
6620  *      Use moderate level to improve latency by limit scan duration.
6621  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
6622  *      Use low latency level to benifit application like concurrent
6623  *      downloading or video streaming via constraint scan/adaptive PS.
6624  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
6625  *      Use ultra low latency level to benefit for gaming/voice
6626  *      application via constraint scan/roaming/adaptive PS.
6627  */
6628 enum qca_wlan_vendor_attr_config_latency_level {
6629 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
6630 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
6631 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
6632 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
6633 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
6634 
6635 	/* keep last */
6636 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
6637 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
6638 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
6639 };
6640 
6641 /**
6642  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
6643  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
6644  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
6645  * spectral scan request types.
6646  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
6647  * set the spectral parameters and start scan.
6648  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
6649  * only set the spectral parameters.
6650  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
6651  * only start the spectral scan.
6652  */
6653 enum qca_wlan_vendor_attr_spectral_scan_request_type {
6654 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
6655 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
6656 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
6657 };
6658 
6659 /**
6660  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
6661  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
6662  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
6663  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
6664  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
6665  * spectral scan modes.
6666  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
6667  * spectral scan in the current operating span.
6668  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
6669  * spectral scan in the configured agile span.
6670  */
6671 enum qca_wlan_vendor_spectral_scan_mode {
6672 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
6673 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
6674 };
6675 
6676 /**
6677  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
6678  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
6679  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
6680  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
6681  * of a parameter is not supported.
6682  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
6683  * mode is not supported.
6684  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
6685  * has invalid value.
6686  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
6687  * is not initialized.
6688  */
6689 enum qca_wlan_vendor_spectral_scan_error_code {
6690 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
6691 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
6692 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
6693 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
6694 };
6695 
6696 /**
6697  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
6698  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
6699  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6700  * spectral hardware generation.
6701  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
6702  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
6703  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
6704  */
6705 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
6706 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
6707 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
6708 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
6709 };
6710 
6711 /**
6712  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
6713  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
6714  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
6715  * Spectral bin scaling formula ID.
6716  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
6717  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
6718  * and RSSI threshold based formula.
6719  */
6720 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
6721 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
6722 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
6723 };
6724 
6725 /**
6726  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
6727  * RF Operating Parameter (RROP) information is available, and if so, at which
6728  * point in the application-driver interaction sequence it can be retrieved by
6729  * the application from the driver. This point may vary by architecture and
6730  * other factors. This is a u16 value.
6731  */
6732 enum qca_wlan_vendor_attr_rropavail_info {
6733 	/* RROP information is unavailable. */
6734 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
6735 	/* RROP information is available and the application can retrieve the
6736 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
6737 	 * event from the driver.
6738 	 */
6739 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
6740 	/* RROP information is available only after a vendor specific scan
6741 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
6742 	 * successfully completed. The application can retrieve the information
6743 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
6744 	 * the driver.
6745 	 */
6746 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
6747 };
6748 
6749 /**
6750  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
6751  * Representative RF Operating Parameter (RROP) information. It is sent for the
6752  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
6753  * intended for use by external Auto Channel Selection applications. It provides
6754  * guidance values for some RF parameters that are used by the system during
6755  * operation. These values could vary by channel, band, radio, and so on.
6756  */
6757 enum qca_wlan_vendor_attr_rrop_info {
6758 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
6759 
6760 	/* Representative Tx Power List (RTPL) which has an array of nested
6761 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
6762 	 */
6763 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
6764 
6765 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
6766 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
6767 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
6768 };
6769 
6770 /**
6771  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
6772  * entry instances in the Representative Tx Power List (RTPL). It provides
6773  * simplified power values intended for helping external Auto channel Selection
6774  * applications compare potential Tx power performance between channels, other
6775  * operating conditions remaining identical. These values are not necessarily
6776  * the actual Tx power values that will be used by the system. They are also not
6777  * necessarily the max or average values that will be used. Instead, they are
6778  * relative, summarized keys for algorithmic use computed by the driver or
6779  * underlying firmware considering a number of vendor specific factors.
6780  */
6781 enum qca_wlan_vendor_attr_rtplinst {
6782 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
6783 
6784 	/* Primary channel number (u8) */
6785 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
6786 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
6787 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
6788 	/* Representative Tx power in dBm (s32) with emphasis on range. */
6789 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
6790 
6791 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
6792 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
6793 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
6794 };
6795 
6796 /**
6797  * enum qca_wlan_vendor_attr_mac - Used by the vendor command
6798  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
6799  *
6800  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
6801  *  array of nested values as per attributes in
6802  *  enum qca_wlan_vendor_attr_mac_mode_info.
6803  */
6804 enum qca_wlan_vendor_attr_mac {
6805 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
6806 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
6807 
6808 	/* keep last */
6809 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
6810 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
6811 		QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
6812 };
6813 
6814 /**
6815  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
6816  * WiFi netdev interface on a respective MAC. Used by the attribute
6817  * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
6818  *
6819  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
6820  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
6821  *  the connected Wi-Fi interface(u32).
6822  */
6823 enum qca_wlan_vendor_attr_mac_iface_info {
6824 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
6825 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
6826 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
6827 
6828 	/* keep last */
6829 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
6830 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
6831 		QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
6832 };
6833 
6834 /**
6835  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
6836  *  Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
6837  *  vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
6838  *
6839  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
6840  *  MAC (u32)
6841  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
6842  *  at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
6843  *  in enum nl80211_band.
6844  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
6845  * interfaces associated with this MAC. Represented by enum
6846  * qca_wlan_vendor_attr_mac_iface_info.
6847  */
6848 enum qca_wlan_vendor_attr_mac_info {
6849 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
6850 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
6851 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
6852 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
6853 
6854 	/* keep last */
6855 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
6856 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
6857 		QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
6858 
6859 };
6860 
6861 #if !(defined (SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC)) &&	\
6862 	(LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)) && 	\
6863 	!(defined(WITH_BACKPORTS))
6864 
6865 static inline struct sk_buff *
6866 backported_cfg80211_vendor_event_alloc(struct wiphy *wiphy,
6867 					struct wireless_dev *wdev,
6868 					int approxlen,
6869 					int event_idx, gfp_t gfp)
6870 {
6871 	struct sk_buff *skb;
6872 
6873 	skb = cfg80211_vendor_event_alloc(wiphy, approxlen, event_idx, gfp);
6874 
6875 	if (skb && wdev) {
6876 		struct nlattr *attr;
6877 		u32 ifindex = wdev->netdev->ifindex;
6878 
6879 		nla_nest_cancel(skb, ((void **)skb->cb)[2]);
6880 		if (nla_put_u32(skb, NL80211_ATTR_IFINDEX, ifindex))
6881 			goto nla_fail;
6882 
6883 		attr = nla_nest_start(skb, NL80211_ATTR_VENDOR_DATA);
6884 		((void **)skb->cb)[2] = attr;
6885 	}
6886 
6887 	return skb;
6888 
6889 nla_fail:
6890 	kfree_skb(skb);
6891 
6892 	return NULL;
6893 }
6894 #define cfg80211_vendor_event_alloc backported_cfg80211_vendor_event_alloc
6895 #endif
6896 
6897 /**
6898  * enum he_fragmentation_val - HE fragmentation support values
6899  * Indicates level of dynamic fragmentation that is supported by
6900  * a STA as a recipient.
6901  * HE fragmentation values are defined as per 11ax spec and are used in
6902  * HE capability IE to advertise the support. These values are validated
6903  * in the driver to check the device capability and advertised in the HE
6904  * capability element.
6905  *
6906  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
6907  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
6908  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
6909  *	within an A-MPDU that is not an S-MPDU.
6910  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
6911  *	contained within an MPDU or S-MPDU and support for up to one dynamic
6912  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
6913  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
6914  *	MPDU or S-MPDU.
6915  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
6916  *	contained within an MPDU or S-MPDU and support for multiple dynamic
6917  *	fragments for each MSDU and for each A-MSDU if supported by the
6918  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
6919  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
6920  */
6921 enum he_fragmentation_val {
6922 	HE_FRAG_DISABLE,
6923 	HE_FRAG_LEVEL1,
6924 	HE_FRAG_LEVEL2,
6925 	HE_FRAG_LEVEL3,
6926 };
6927 
6928 /**
6929  * enum he_mcs_config - HE MCS support configuration
6930  *
6931  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
6932  * These values are used in driver to configure the HE MCS map to advertise
6933  * Tx/Rx MCS map in HE capability and these values are applied for all the
6934  * streams supported by the device. To configure MCS for different bandwidths,
6935  * vendor command needs to be sent using this attribute with appropriate value.
6936  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
6937  * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
6938  * for HE_160_MCS0_11 send this command using HE MCS config attribute with
6939  * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
6940  *
6941  * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
6942  * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
6943  * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
6944  * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
6945  * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
6946  * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
6947  * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
6948  * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
6949  * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
6950  */
6951 enum he_mcs_config {
6952 	HE_80_MCS0_7 = 0,
6953 	HE_80_MCS0_9 = 1,
6954 	HE_80_MCS0_11 = 2,
6955 	HE_160_MCS0_7 = 4,
6956 	HE_160_MCS0_9 = 5,
6957 	HE_160_MCS0_11 = 6,
6958 	HE_80p80_MCS0_7 = 8,
6959 	HE_80p80_MCS0_9 = 9,
6960 	HE_80p80_MCS0_11 = 10,
6961 };
6962 
6963 /**
6964  * enum qca_wlan_ba_session_config - BA session configuration
6965  *
6966  * Indicates the configuration values for BA session configuration attribute.
6967  *
6968  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
6969  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
6970  */
6971 enum qca_wlan_ba_session_config {
6972 	QCA_WLAN_ADD_BA = 1,
6973 	QCA_WLAN_DELETE_BA = 2,
6974 };
6975 
6976 /**
6977  * enum qca_wlan_ac_type - access category type
6978  *
6979  * Indicates the access category type value.
6980  *
6981  * @QCA_WLAN_AC_BE: BE access category
6982  * @QCA_WLAN_AC_BK: BK access category
6983  * @QCA_WLAN_AC_VI: VI access category
6984  * @QCA_WLAN_AC_VO: VO access category
6985  * @QCA_WLAN_AC_ALL: All ACs
6986  */
6987 enum qca_wlan_ac_type {
6988 	QCA_WLAN_AC_BE = 0,
6989 	QCA_WLAN_AC_BK = 1,
6990 	QCA_WLAN_AC_VI = 2,
6991 	QCA_WLAN_AC_VO = 3,
6992 	QCA_WLAN_AC_ALL = 4,
6993 };
6994 
6995 /**
6996  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
6997  *
6998  * Indicates the HE LTF configuration value.
6999  *
7000  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
7001  * the mandatory HE-LTF based on the GI setting
7002  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
7003  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
7004  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
7005  */
7006 enum qca_wlan_he_ltf_cfg {
7007 	QCA_WLAN_HE_LTF_AUTO = 0,
7008 	QCA_WLAN_HE_LTF_1X = 1,
7009 	QCA_WLAN_HE_LTF_2X = 2,
7010 	QCA_WLAN_HE_LTF_4X = 3,
7011 };
7012 
7013 /**
7014  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
7015  *
7016  * Indicates the HE trigger frame MAC padding duration value.
7017  *
7018  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
7019  * process the trigger frame.
7020  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
7021  * trigger frame.
7022  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
7023  * trigger frame.
7024  */
7025 enum qca_wlan_he_mac_padding_dur {
7026 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
7027 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
7028 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
7029 };
7030 
7031 /**
7032  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
7033  *
7034  * Indicates the HE Operating mode control channel width setting value.
7035  *
7036  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
7037  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
7038  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
7039  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
7040  */
7041 enum qca_wlan_he_om_ctrl_ch_bw {
7042 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
7043 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
7044 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
7045 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
7046 };
7047 
7048 /**
7049  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
7050  * HE operating mode control transmit request. These attributes are
7051  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
7052  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7053  *
7054  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
7055  * indicates the maximum number of spatial streams, NSS, that the STA
7056  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
7057  * and is set to NSS - 1.
7058  *
7059  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
7060  * indicates the operating channel width supported by the STA for both
7061  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
7062  *
7063  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
7064  * indicates the all trigger based UL MU operations by the STA.
7065  * 0 - UL MU operations are enabled by the STA.
7066  * 1 - All triggered UL MU transmissions are suspended by the STA.
7067  *
7068  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
7069  * indicates the maximum number of space-time streams, NSTS, that
7070  * the STA supports in transmission and is set to NSTS - 1.
7071  *
7072  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
7073  * combined with the UL MU Disable subfield and the recipient's setting
7074  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
7075  * capabilities to determine which HE TB PPDUs are possible by the
7076  * STA to transmit.
7077  * 0 - UL MU data operations are enabled by the STA.
7078  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
7079  * bit is not set, else UL MU Tx is suspended.
7080  *
7081  */
7082 enum qca_wlan_vendor_attr_he_omi_tx {
7083 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
7084 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
7085 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
7086 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
7087 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
7088 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
7089 
7090 	/* keep last */
7091 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
7092 	QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
7093 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
7094 };
7095 
7096 /* Attributes for data used by
7097  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
7098  */
7099 enum qca_wlan_vendor_attr_wifi_test_config {
7100 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
7101 	/* 8-bit unsigned value to configure the driver to enable/disable
7102 	 * WMM feature. This attribute is used to configure testbed device.
7103 	 * 1-enable, 0-disable
7104 	 */
7105 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
7106 
7107 	/* 8-bit unsigned value to configure the driver to accept/reject
7108 	 * the addba request from peer. This attribute is used to configure
7109 	 * the testbed device.
7110 	 * 1-accept addba, 0-reject addba
7111 	 */
7112 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
7113 
7114 	/* 8-bit unsigned value to configure the driver to send or not to
7115 	 * send the addba request to peer.
7116 	 * This attribute is used to configure the testbed device.
7117 	 * 1-send addba, 0-do not send addba
7118 	 */
7119 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
7120 
7121 	/* 8-bit unsigned value to indicate the HE fragmentation support.
7122 	 * Uses enum he_fragmentation_val values.
7123 	 * This attribute is used to configure the testbed device to
7124 	 * allow the advertised hardware capabilities to be downgraded
7125 	 * for testing purposes.
7126 	 */
7127 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
7128 
7129 	/* 8-bit unsigned value to indicate the HE MCS support.
7130 	 * Uses enum he_mcs_config values.
7131 	 * This attribute is used to configure the testbed device to
7132 	 * allow the advertised hardware capabilities to be downgraded
7133 	 * for testing purposes.
7134 	 */
7135 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
7136 
7137 	/* 8-bit unsigned value to configure the driver to allow or not to
7138 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
7139 	 * This attribute is used to configure the testbed device.
7140 	 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
7141 	 */
7142 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
7143 
7144 	/* 8-bit unsigned value to configure the driver to add a
7145 	 * new BA session or delete the existing BA session for
7146 	 * given TID. ADDBA command uses the buffer size and tid
7147 	 * configuration if user specifies the values else default
7148 	 * value for buffer size is used for all tids if the tid
7149 	 * also not specified. For DEL_BA command TID value is
7150 	 * required to process the command.
7151 	 * Uses enum qca_wlan_ba_session_config values.
7152 	 * This attribute is used to configure the testbed device.
7153 	 */
7154 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
7155 
7156 	/* 16-bit unsigned value to configure the buffer size in addba
7157 	 * request and response frames.
7158 	 * This attribute is used to configure the testbed device.
7159 	 * The range of the value is 0 to 256.
7160 	 */
7161 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
7162 
7163 	/* 8-bit unsigned value to configure the buffer size in addba
7164 	 * request and response frames.
7165 	 * This attribute is used to configure the testbed device.
7166 	 */
7167 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
7168 
7169 	/* 8-bit unsigned value to configure the no ack policy.
7170 	 * To configure no ack policy, access category value
7171 	 * is required to process the command.
7172 	 * This attribute is used to configure the testbed device.
7173 	 * 1 - enable no ack, 0 - disable no ack
7174 	 */
7175 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
7176 
7177 	/* 8-bit unsigned value to configure the AC for no ack policy
7178 	 * This attribute is used to configure the testbed device.
7179 	 * uses the enum qca_wlan_ac_type values
7180 	 */
7181 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
7182 
7183 	/* 8-bit unsigned value to configure the HE LTF
7184 	 * This attribute is used to configure the testbed device.
7185 	 * Uses the enum qca_wlan_he_ltf_cfg values.
7186 	 */
7187 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
7188 
7189 	/* 8-bit unsigned value to configure the tx beamformee.
7190 	 * This attribute is used to configure the testbed device.
7191 	 * 1 - enable, 0 - disable.
7192 	 */
7193 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
7194 
7195 	/* 8-bit unsigned value to configure the tx beamformee number of
7196 	 * space-time streams.
7197 	 * This attribute is used to configure the testbed device.
7198 	 * The range of the value is 0 to 8
7199 	 */
7200 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
7201 
7202 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
7203 	 * This attribute is used to configure the testbed device.
7204 	 * Uses the enum qca_wlan_ac_type values.
7205 	 */
7206 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
7207 
7208 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
7209 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
7210 	 * is required to process the command.
7211 	 * This attribute is used to configure the testbed device.
7212 	 */
7213 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
7214 
7215 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
7216 	 * given AC.
7217 	 * To configure MU EDCA ECW min value, MU EDCA access category value
7218 	 * is required to process the command.
7219 	 * This attribute is used to configure the testbed device.
7220 	 */
7221 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
7222 
7223 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
7224 	 * given AC.
7225 	 * To configure MU EDCA ECW max value, MU EDCA access category value
7226 	 * is required to process the command.
7227 	 * This attribute is used to configure the testbed device.
7228 	 */
7229 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
7230 
7231 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
7232 	 * To configure MU EDCA timer value, MU EDCA access category value
7233 	 * is required to process the command.
7234 	 * This attribute is used to configure the testbed device.
7235 	 */
7236 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
7237 
7238 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
7239 	 * duration.
7240 	 * This attribute is used to configure the testbed device.
7241 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
7242 	 */
7243 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
7244 
7245 	/* 8-bit unsigned value to override the MU EDCA params to defaults
7246 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
7247 	 * the default values else use the MU EDCA params from AP beacon.
7248 	 * This attribute is used to configure the testbed device.
7249 	 * 1 - enable override, 0 - disable.
7250 	 */
7251 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
7252 
7253 	/* 8-bit unsigned value to configure the support for receiving
7254 	 * an MPDU that contains an operating mode control subfield.
7255 	 * This attribute is used to configure the testbed device.
7256 	 * 1-enable, 0-disable.
7257 	 */
7258 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
7259 
7260 	/* Nested attribute values required to setup the TWT session.
7261 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
7262 	 * information to set up the session. It contains broadcast flags,
7263 	 * set_up flags, trigger value, flow type, flow ID, wake interval
7264 	 * exponent, protection, target wake time, wake duration, wake interval
7265 	 * mantissa. These nested attributes are used to setup a host triggered
7266 	 * TWT session.
7267 	 */
7268 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
7269 
7270 	/* This nested attribute is used to terminate the current TWT session.
7271 	 * It does not currently carry any attributes.
7272 	 */
7273 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
7274 
7275 	/* This nested attribute is used to suspend the current TWT session.
7276 	 * It does not currently carry any attributes.
7277 	 */
7278 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
7279 
7280 	/* Nested attribute values to indicate the request for resume.
7281 	 * This attribute is used to resume the TWT session.
7282 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
7283 	 * parameters required to resume the TWT session.
7284 	 */
7285 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
7286 
7287 	/* 8-bit unsigned value to set the HE operating mode control
7288 	 * (OM CTRL) Channel Width subfield.
7289 	 * The Channel Width subfield indicates the operating channel width
7290 	 * supported by the STA for both reception and transmission.
7291 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
7292 	 * This setting is cleared with the
7293 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7294 	 * flag attribute to reset defaults.
7295 	 * This attribute is used to configure the testbed device.
7296 	 */
7297 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
7298 
7299 	/* 8-bit unsigned value to configure the number of spatial
7300 	 * streams in HE operating mode control field.
7301 	 * This setting is cleared with the
7302 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7303 	 * flag attribute to reset defaults.
7304 	 * This attribute is used to configure the testbed device.
7305 	 */
7306 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
7307 
7308 	/* Flag attribute to configure the UL MU disable bit in
7309 	 * HE operating mode control field.
7310 	 * This setting is cleared with the
7311 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
7312 	 * flag attribute to reset defaults.
7313 	 * This attribute is used to configure the testbed device.
7314 	 */
7315 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
7316 
7317 	/* Flag attribute to clear the previously set HE operating mode
7318 	 * control field configuration.
7319 	 * This attribute is used to configure the testbed device to reset
7320 	 * defaults to clear any previously set HE operating mode control
7321 	 * field configuration.
7322 	 */
7323 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
7324 
7325 	/* 8-bit unsigned value to configure HE single user PPDU
7326 	 * transmission. By default this setting is disabled and it
7327 	 * is disabled in the reset defaults of the device configuration.
7328 	 * This attribute is used to configure the testbed device.
7329 	 * 1-enable, 0-disable
7330 	 */
7331 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
7332 
7333 	/* 8-bit unsigned value to configure action frame transmission
7334 	 * in HE trigger based PPDU transmission.
7335 	 * By default this setting is disabled and it is disabled in
7336 	 * the reset defaults of the device configuration.
7337 	 * This attribute is used to configure the testbed device.
7338 	 * 1-enable, 0-disable
7339 	 */
7340 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
7341 
7342 	/* Nested attribute to indicate HE operating mode control field
7343 	 * transmission. It contains operating mode control field Nss,
7344 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
7345 	 * These nested attributes are used to send HE operating mode control
7346 	 * with configured values.
7347 	 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
7348 	 * This attribute is used to configure the testbed device.
7349 	 */
7350 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
7351 
7352 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
7353 	 * support for the reception of a frame that carries an HE variant
7354 	 * HT Control field.
7355 	 * This attribute is used to configure the testbed device.
7356 	 * 1-enable, 0-disable
7357 	 */
7358 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
7359 
7360 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
7361 	 * This attribute is used to configure the testbed device.
7362 	 * 1-enable, 0-disable
7363 	 */
7364 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
7365 
7366 	/* 8-bit unsigned value to configure HE testbed defaults.
7367 	 * This attribute is used to configure the testbed device.
7368 	 * 1-set the device HE capabilities to testbed defaults.
7369 	 * 0-reset the device HE capabilities to supported config.
7370 	 */
7371 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
7372 
7373 	/* 8-bit unsigned value to configure twt request support.
7374 	 * This attribute is used to configure the testbed device.
7375 	 * 1-enable, 0-disable.
7376 	 */
7377 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
7378 
7379 	/* keep last */
7380 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
7381 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
7382 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
7383 };
7384 
7385 /**
7386  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
7387  * TWT (Target Wake Time) setup request. These attributes are sent as part of
7388  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
7389  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7390  *
7391  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
7392  * Disable (flag attribute not present) - Individual TWT
7393  * Enable (flag attribute present) - Broadcast TWT.
7394  * Individual means the session is between the STA and the AP.
7395  * This session is established using a separate negotiation between
7396  * STA and AP.
7397  * Broadcast means the session is across multiple STAs and an AP. The
7398  * configuration parameters are announced in Beacon frames by the AP.
7399  *
7400  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
7401  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
7402  * specify the TWT request type
7403  *
7404  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
7405  * Enable (flag attribute present) - TWT with trigger support.
7406  * Disable (flag attribute not present) - TWT without trigger support.
7407  * Trigger means the AP will send the trigger frame to allow STA to send data.
7408  * Without trigger, the STA will wait for the MU EDCA timer before
7409  * transmitting the data.
7410  *
7411  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
7412  * 0 - Announced TWT - In this mode, STA may skip few service periods to
7413  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
7414  * NULL frame to AP.
7415  * 1 - Unannounced TWT - The STA will wakeup during every SP.
7416  *
7417  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
7418  * Flow ID is the unique identifier for each TWT session.
7419  * Currently this is not required and dialog ID will be set to zero.
7420  *
7421  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
7422  * This attribute (exp) is used along with the mantissa to derive the
7423  * wake interval using the following formula:
7424  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
7425  * Wake interval is the interval between 2 successive SP.
7426  *
7427  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
7428  * Enable (flag attribute present) - Protection required.
7429  * Disable (flag attribute not present) - Protection not required.
7430  * If protection is enabled, then the AP will use protection
7431  * mechanism using RTS/CTS to self to reserve the airtime.
7432  *
7433  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
7434  * This attribute is used as the SP offset which is the offset from
7435  * TSF after which the wake happens. The units are in microseconds. If
7436  * this attribute is not provided, then the value will be set to zero.
7437  *
7438  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
7439  * This is the duration of the service period. The units are in TU.
7440  *
7441  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
7442  * This attribute is used to configure wake interval mantissa.
7443  * The units are in TU.
7444  */
7445 enum qca_wlan_vendor_attr_twt_setup {
7446 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
7447 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
7448 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
7449 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
7450 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
7451 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
7452 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
7453 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
7454 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
7455 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
7456 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
7457 
7458 	/* keep last */
7459 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
7460 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
7461 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
7462 };
7463 
7464 /**
7465  * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for
7466  * TWT (Target Wake Time) resume request. These attributes are sent as part of
7467  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
7468  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
7469  *
7470  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
7471  * This attribute is used as the SP offset which is the offset from
7472  * TSF after which the wake happens. The units are in microseconds.
7473  * If this attribute is not provided, then the value will be set to
7474  * zero.
7475  *
7476  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
7477  * This attribute represents the next TWT subfield size.
7478  */
7479 enum qca_wlan_vendor_attr_twt_resume {
7480 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
7481 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
7482 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
7483 
7484 	/* keep last */
7485 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
7486 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
7487 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
7488 };
7489 
7490 /**
7491  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
7492  * Represents the setup type being requested for TWT.
7493  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
7494  * parameters but relying on AP to fill the parameters during the negotiation.
7495  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
7496  * values which the AP may accept or AP may provide alternative parameters
7497  * which the STA may accept.
7498  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
7499  * alternate parameters than the requested ones.
7500  */
7501 enum qca_wlan_vendor_twt_setup_req_type {
7502 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
7503 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
7504 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
7505 };
7506 
7507 /**
7508  * enum qca_wlan_throughput_level - Current throughput level
7509  *
7510  * Indicates the current level of throughput calculated by driver. The driver
7511  * may choose different thresholds to decide whether the throughput level is
7512  * low or medium or high based on variety of parameters like physical link
7513  * capacity of current connection, number of pakcets being dispatched per
7514  * second etc. The throughput level events might not be consistent with the
7515  * actual current throughput value being observed.
7516  *
7517  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
7518  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
7519  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
7520  */
7521 enum qca_wlan_throughput_level {
7522 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
7523 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
7524 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
7525 };
7526 
7527 /**
7528  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
7529  * report throughput changes from driver to user space. enum values are used
7530  * for NL attributes sent with
7531  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
7532  */
7533 enum qca_wlan_vendor_attr_throughput_change {
7534 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
7535 	/*
7536 	 * Indicates the direction of throughput in which the change is being
7537 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
7538 	 */
7539 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
7540 
7541 	/*
7542 	 * Indicates the newly observed throughput level.
7543 	 * qca_wlan_throughput_level describes the possible range of values.
7544 	 * u8 attribute.
7545 	 */
7546 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
7547 
7548 	/*
7549 	 * Indicates the driver's guidance on the new value to be set to
7550 	 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
7551 	 * may optionally include this attribute.
7552 	 */
7553 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
7554 
7555 	/*
7556 	 * Indicates the driver's guidance on the new value to be set to
7557 	 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
7558 	 * values are from -31 to 31. Driver may optionally include this
7559 	 * attribute.
7560 	 */
7561 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
7562 
7563 	/*
7564 	 * Indicates the driver's guidance on the new value to be set to
7565 	 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
7566 	 * optionally include this attribute.
7567 	 */
7568 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
7569 
7570 	/* keep last */
7571 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
7572 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
7573 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
7574 };
7575 
7576 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
7577  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
7578  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
7579  */
7580 enum qca_wlan_nan_ext_subcmd_type {
7581 	/* Subcmd of type NAN Enable Request */
7582 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
7583 	/* Subcmd of type NAN Disable Request */
7584 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
7585 };
7586 
7587 /**
7588  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
7589  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
7590  */
7591 enum qca_wlan_vendor_attr_nan_params {
7592 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
7593 	/* Carries NAN command for firmware component. Every vendor command
7594 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
7595 	 * payload containing the NAN command. NLA_BINARY attribute.
7596 	 */
7597 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
7598 	/* Indicates the type of NAN command sent with
7599 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
7600 	 * describes the possible range of values. This attribute is mandatory
7601 	 * if the command being issued is either
7602 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
7603 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
7604 	 */
7605 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
7606 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
7607 	 * band. This attribute is mandatory when command type is
7608 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
7609 	 */
7610 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
7611 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
7612 	 * band. This attribute is optional and should be included when command
7613 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
7614 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
7615 	 */
7616 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
7617 
7618 	/* keep last */
7619 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
7620 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
7621 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
7622 };
7623 
7624 /**
7625  * enum qca_coex_config_profiles - This enum defines different types of
7626  * traffic streams that can be prioritized one over the other during coex
7627  * scenarios.
7628  * The types defined in this enum are categorized in the below manner.
7629  * 0 - 31 values corresponds to WLAN
7630  * 32 - 63 values corresponds to BT
7631  * 64 - 95 values corresponds to Zigbee
7632  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
7633  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
7634  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
7635  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
7636  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
7637  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
7638  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
7639  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
7640  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
7641  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
7642  * @QCA_BT_A2DP: Prioritize BT A2DP
7643  * @QCA_BT_BLE: Prioritize BT BLE
7644  * @QCA_BT_SCO: Prioritize BT SCO
7645  * @QCA_ZB_LOW: Prioritize Zigbee Low
7646  * @QCA_ZB_HIGH: Prioritize Zigbee High
7647  */
7648 enum qca_coex_config_profiles {
7649 	/* 0 - 31 corresponds to WLAN */
7650 	QCA_WIFI_STA_DISCOVERY = 0,
7651 	QCA_WIFI_STA_CONNECTION = 1,
7652 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
7653 	QCA_WIFI_STA_DATA = 3,
7654 	QCA_WIFI_STA_ALL = 4,
7655 	QCA_WIFI_SAP_DISCOVERY = 5,
7656 	QCA_WIFI_SAP_CONNECTION = 6,
7657 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
7658 	QCA_WIFI_SAP_DATA = 8,
7659 	QCA_WIFI_SAP_ALL = 9,
7660 	QCA_WIFI_CASE_MAX = 31,
7661 	/* 32 - 63 corresponds to BT */
7662 	QCA_BT_A2DP = 32,
7663 	QCA_BT_BLE = 33,
7664 	QCA_BT_SCO = 34,
7665 	QCA_BT_CASE_MAX = 63,
7666 	/* 64 - 95 corresponds to Zigbee */
7667 	QCA_ZB_LOW = 64,
7668 	QCA_ZB_HIGH = 65,
7669 	QCA_ZB_CASE_MAX = 95,
7670 	/* 0xff is default value if the u8 profile value is not set. */
7671 	QCA_PROFILE_DEFAULT_VALUE = 255
7672 };
7673 
7674 /**
7675  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
7676  * This enum defines the valid set of values of coex configuration types. These
7677  * values may used by attribute
7678  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
7679  *
7680  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
7681  *	weights to default values.
7682  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
7683  *	weights with configurability value.
7684  */
7685 enum qca_vendor_attr_coex_config_types {
7686 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
7687 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
7688 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
7689 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
7690 };
7691 
7692 /**
7693  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
7694  * attributes
7695  * Attributes for data used by
7696  * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
7697  *
7698  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
7699  * Indicate config type.
7700  * the config types are 32-bit values from qca_vendor_attr_coex_config_types
7701  *
7702  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
7703  *	Indicate the Priority 1 profiles.
7704  *	the profiles are 8-bit values from enum qca_coex_config_profiles
7705  *	In same priority level, maximum to 4 profiles can be set here.
7706  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
7707  *	Indicate the Priority 2 profiles.
7708  *	the profiles are 8-bit values from enum qca_coex_config_profiles
7709  *	In same priority level, maximum to 4 profiles can be set here.
7710  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
7711  *	Indicate the Priority 3 profiles.
7712  *	the profiles are 8-bit values from enum qca_coex_config_profiles
7713  *	In same priority level, maximum to 4 profiles can be set here.
7714  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
7715  *	Indicate the Priority 4 profiles.
7716  *	the profiles are 8-bit values from enum qca_coex_config_profiles
7717  *	In same priority level, maximum to 4 profiles can be set here.
7718  * NOTE:
7719  * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
7720  * arrangement:
7721  *	1: In the same u32 attribute(priority x), the profiles enum values own
7722  *	same priority level.
7723  *	2: 0xff is default value if the u8 profile value is not set.
7724  *	3: max to 4 rules/profiles in same priority level.
7725  *	4: max to 4 priority level (priority 1 - priority 4)
7726  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
7727  *	hybrid rules not support.
7728  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
7729  *	remain blank to reset all parameters.
7730  * For example:
7731  *
7732  *	If the attributes as follow:
7733  *	priority 1:
7734  *	------------------------------------
7735  *	|  0xff  |    0   |   1   |    2   |
7736  *	------------------------------------
7737  *	priority 2:
7738  *	-------------------------------------
7739  *	|  0xff  |  0xff  |  0xff  |   32   |
7740  *	-------------------------------------
7741  *	priority 3:
7742  *	-------------------------------------
7743  *	|  0xff  |  0xff  |  0xff  |   65   |
7744  *	-------------------------------------
7745  *	then it means:
7746  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
7747  *		owns same priority level.
7748  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
7749  *		has priority over BT_A2DP and ZB_HIGH.
7750  *	3: BT_A2DP has priority over ZB_HIGH.
7751  */
7752 
7753 enum qca_vendor_attr_coex_config_three_way {
7754 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
7755 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
7756 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
7757 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
7758 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
7759 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
7760 
7761 	/* Keep last */
7762 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
7763 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
7764 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
7765 };
7766 
7767 /**
7768  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
7769  * This enum defines the valid set of values of peer stats cache types. These
7770  * values are used by attribute
7771  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
7772  *
7773  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
7774  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
7775  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
7776  * statistics
7777  */
7778 enum qca_vendor_attr_peer_stats_cache_type {
7779 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
7780 
7781 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
7782 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
7783 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
7784 };
7785 
7786 /**
7787  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
7788  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
7789  * Attributes are required to flush peer rate statistics from driver to
7790  * user application.
7791  *
7792  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
7793  * Indicate peer stats cache type.
7794  * The statistics types are 32-bit values from
7795  * qca_vendor_attr_peer_stats_cache_type
7796  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
7797  * of size 6, representing peer mac address.
7798  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
7799  * containing buffer of statistics to send event to application layer entity.
7800  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
7801  * representing cookie for peer unique session.
7802  */
7803 enum qca_wlan_vendor_attr_peer_stats_cache_params {
7804 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
7805 
7806 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
7807 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
7808 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
7809 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
7810 
7811 	/* Keep last */
7812 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
7813 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
7814 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
7815 };
7816 
7817 /**
7818  * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
7819  * this enum defines all the possible state of zigbee, which can be
7820  * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
7821  *
7822  * @ZIGBEE_IDLE: zigbee in idle state
7823  * @ZIGBEE_FORM_NETWORK: zibee forming network
7824  * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
7825  * @ZIGBEE_JOIN: zigbee joining network
7826  * @ZIGBEE_NETWORK_UP: zigbee network is up
7827  * @ZIGBEE_HMI: zigbee in HMI mode
7828  */
7829 enum qca_mpta_helper_attr_zigbee_state {
7830 	ZIGBEE_IDLE = 0,
7831 	ZIGBEE_FORM_NETWORK = 1,
7832 	ZIGBEE_WAIT_JOIN = 2,
7833 	ZIGBEE_JOIN = 3,
7834 	ZIGBEE_NETWORK_UP = 4,
7835 	ZIGBEE_HMI = 5,
7836 };
7837 
7838 /**
7839  * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
7840  * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
7841  */
7842 enum qca_mpta_helper_vendor_attr {
7843 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
7844 	/* Optional attribute used to update zigbee state.
7845 	 * enum qca_mpta_helper_attr_zigbee_state.
7846 	 * NLA_U32 attribute.
7847 	 */
7848 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
7849 	/* Optional attribute used to configure wlan duration for Shape-OCS
7850 	 * during interrupt.
7851 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
7852 	 * Value range 0 ~ 300 (ms).
7853 	 * NLA_U32 attribute.
7854 	 */
7855 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
7856 	/* Optional attribute used to configure non wlan duration for Shape-OCS
7857 	 * during interrupt.
7858 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
7859 	 * Value range 0 ~ 300 (ms).
7860 	 * NLA_U32 attribute.
7861 	 */
7862 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
7863 	/* Optional attribute used to configure wlan duration for Shape-OCS
7864 	 * monitor period.
7865 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
7866 	 * Value range 0 ~ 300 (ms)
7867 	 * NLA_U32 attribute
7868 	 */
7869 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
7870 	/* Optional attribute used to configure non wlan duration for Shape-OCS
7871 	 * monitor period.
7872 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
7873 	 * Value range 0 ~ 300 (ms)
7874 	 * NLA_U32 attribute
7875 	 */
7876 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
7877 	/* Optional attribute used to configure ocs interrupt duration.
7878 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
7879 	 * Value range 1000 ~ 20000 (ms)
7880 	 * NLA_U32 attribute
7881 	 */
7882 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
7883 	/* Optional attribute used to configure ocs monitor duration.
7884 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
7885 	 * Value range 1000 ~ 20000 (ms)
7886 	 * NLA_U32 attribute
7887 	 */
7888 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
7889 	/* Optional attribute used to notify wlan FW current zigbee channel.
7890 	 * Value range 11 ~ 26
7891 	 * NLA_U32 attribute
7892 	 */
7893 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
7894 	/* Optional attribute used to configure wlan mute duration.
7895 	 * Value range 0 ~ 400 (ms)
7896 	 * NLA_U32 attribute
7897 	 */
7898 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
7899 
7900 	/* keep last */
7901 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
7902 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
7903 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
7904 };
7905 
7906 /**
7907  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
7908  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
7909  * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
7910  *
7911  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
7912  * to request the driver to start reporting Beacon frames.
7913  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
7914  * to request the driver to stop reporting Beacon frames.
7915  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
7916  * userspace to report received Beacon frames.
7917  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
7918  * to indicate that the driver is going to pause reporting Beacon frames.
7919  */
7920 enum qca_wlan_vendor_beacon_reporting_op_types {
7921 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
7922 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
7923 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
7924 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
7925 };
7926 
7927 /**
7928  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
7929  * types of reasons for which the driver is pausing reporting Beacon frames.
7930  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
7931  *
7932  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
7933  * reasons.
7934  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
7935  * driver/firmware is starting a scan.
7936  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
7937  * driver/firmware disconnects from the ESS and indicates the disconnection to
7938  * userspace (non-seamless roaming case). This reason code will be used by the
7939  * driver/firmware to indicate stopping of beacon report events. Userspace
7940  * will need to start beacon reporting again (if desired) by sending vendor
7941  * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
7942  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
7943  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
7944  * completed.
7945  */
7946 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
7947 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
7948 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
7949 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
7950 };
7951 
7952 /*
7953  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
7954  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
7955  */
7956 enum qca_wlan_vendor_attr_beacon_reporting_params {
7957 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
7958 	/* Specifies the type of operation that the vendor command/event is
7959 	 * intended for. Possible values for this attribute are defined in
7960 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
7961 	 */
7962 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
7963 	/* Optionally set by userspace to request the driver to report Beacon
7964 	 * frames using asynchronous vendor events when the
7965 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7966 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
7967 	 * If this flag is not set, the driver will only update Beacon frames
7968 	 * in cfg80211 scan cache but not send any vendor events.
7969 	 */
7970 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
7971 	/* Optionally used by userspace to request the driver/firmware to
7972 	 * report Beacon frames periodically when the
7973 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7974 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
7975 	 * u32 attribute, indicates the period of Beacon frames to be reported
7976 	 * and in the units of beacon interval.
7977 	 * If this attribute is missing in the command, then the default value
7978 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
7979 	 * Zero is an invalid value.
7980 	 * If a valid value is received for this attribute, the driver will
7981 	 * update the cfg80211 scan cache periodically as per the value
7982 	 * received in this attribute in addition to updating the cfg80211 scan
7983 	 * cache when there is significant change in Beacon frame IEs.
7984 	 */
7985 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
7986 	/* Used by the driver to encapsulate the SSID when the
7987 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7988 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7989 	 * u8 array with a maximum size of 32.
7990 	 *
7991 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
7992 	 * will be taken from the SSID element of the received Beacon frame.
7993 	 *
7994 	 * When generating beacon report from Multiple BSSID Beacon frame and
7995 	 * if the BSSID of the current connected BSS matches the BSSID of the
7996 	 * transmitting BSS, the SSID will be taken from the SSID element of
7997 	 * the received Beacon frame.
7998 	 *
7999 	 * When generating beacon report from Multiple BSSID Beacon frame and
8000 	 * if the BSSID of the current connected BSS matches the BSSID of one
8001 	 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
8002 	 * field included in the nontransmitted BSS profile whose derived BSSI
8003 	 * is same as the BSSID of the current connected BSS. When there is no
8004 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
8005 	 * of current connected* BSS, this attribute will not be present.
8006 	 */
8007 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
8008 	/* Used by the driver to encapsulate the BSSID of the AP to which STA
8009 	 * is currently connected to when the
8010 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8011 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
8012 	 * fixed size of 6 bytes.
8013 	 *
8014 	 * When generating beacon report from a Multiple BSSID beacon and the
8015 	 * current connected BSSID matches one of the nontransmitted BSSIDs in
8016 	 * a Multiple BSSID set, this BSSID will be that particular
8017 	 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
8018 	 * transmitting address of the Beacon frame).
8019 	 */
8020 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
8021 	/* Used by the driver to encapsulate the frequency in MHz on which
8022 	 * the Beacon frame was received when the
8023 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
8024 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
8025 	 * u32 attribute.
8026 	 */
8027 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
8028 	/* Used by the driver to encapsulate the Beacon interval
8029 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8030 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
8031 	 * u16 attribute. The value will be copied from the Beacon frame and
8032 	 * the units are TUs.
8033 	 */
8034 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
8035 	/* Used by the driver to encapsulate the Timestamp field from the
8036 	 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
8037 	 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
8038 	 * u64 attribute.
8039 	 */
8040 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
8041 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
8042 	 * Beacon frame is received in the driver when the
8043 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8044 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
8045 	 * the units of nanoseconds. This value is expected to have accuracy of
8046 	 * about 10 ms.
8047 	 */
8048 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
8049 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
8050 	 * which this event is generated when the
8051 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8052 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
8053 	 */
8054 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
8055 	/* Used by the driver to specify the reason for the driver/firmware to
8056 	 * pause sending beacons to userspace when the
8057 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8058 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
8059 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
8060 	 * attribute.
8061 	 */
8062 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
8063 	/* Used by the driver to specify whether the driver will automatically
8064 	 * resume reporting beacon events to userspace later (for example after
8065 	 * the ongoing off-channel activity is completed etc.) when the
8066 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8067 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
8068 	 */
8069 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
8070 	/* Optionally set by userspace to request the driver not to resume
8071 	 * beacon reporting after a pause is completed, when the
8072 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
8073 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
8074 	 * If this flag is set, the driver will not resume beacon reporting
8075 	 * after any pause in beacon reporting is completed. Userspace has to
8076 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
8077 	 * to initiate beacon reporting again. If this flag is set in the recent
8078 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
8079 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
8080 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
8081 	 * set by the driver. Setting this flag until and unless there is a
8082 	 * specific need is not recommended as there is a chance of some beacons
8083 	 * received after pause command and next start command being not
8084 	 * reported.
8085 	 */
8086 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
8087 
8088 	/* Keep last */
8089 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
8090 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
8091 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
8092 };
8093 
8094 /*
8095  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
8096  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
8097  *
8098  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: The binary blob for the vendor
8099  * command QCA_NL80211_VENDOR_SUBCMD_OEM_DATA are carried through this
8100  * attribute.
8101  * NLA_BINARY attribute, the max size is 1024 bytes.
8102  */
8103 enum qca_wlan_vendor_attr_oem_data_params {
8104 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
8105 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
8106 
8107 	/* keep last */
8108 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
8109 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
8110 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
8111 };
8112 
8113 /*
8114  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
8115  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
8116  */
8117 enum qca_wlan_vendor_attr_add_sta_node_params {
8118 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
8119 	/* 6 byte MAC address of STA */
8120 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
8121 	/* Authentication algorithm used by the station of size u16;
8122 	 * defined in enum nl80211_auth_type.
8123 	 */
8124 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
8125 
8126 	/* keep last */
8127 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
8128 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
8129 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
8130 };
8131 #endif
8132