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