xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/qca_vendor.h (revision d0c05845839e5f2ba5a8dcebe0cd3e4cd4e8dfcf)
1 /*
2  * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: declares vendor commands interfacing with linux kernel
22  */
23 
24 
25 #ifndef _WLAN_QCA_VENDOR_H_
26 #define _WLAN_QCA_VENDOR_H_
27 
28 /* Vendor id to be used in vendor specific command and events
29  * to user space.
30  * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
31  * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
32  * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
33  * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
34  */
35 
36 #define QCA_NL80211_VENDOR_ID           0x001374
37 
38 #ifndef BIT
39 #define BIT(x) (1U << (x))
40 #endif
41 
42 /**
43  * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
44  *
45  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
46  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
47  *	Sub commands 2 to 8 are not used
48  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
49  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
50  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
51  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
52  *	NAN Request/Response and NAN Indication messages. These messages are
53  *	interpreted between the framework and the firmware component. While
54  *	sending the command from userspace to the driver, payload is not
55  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
56  *	is used when receiving vendor events in userspace from the driver.
57  * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
58  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
59  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
60  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
61  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
62  *	results
63  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
64  *	results
65  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
66  *	results
67  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
68  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
69  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
70  *	channels
71  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
72  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
73  *	results
74  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
75  *	available. Used when report_threshold is reached in scan cache.
76  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
77  *	result. Used to report scan results when each probe rsp. is received,
78  *	if report_events enabled in wifi_scan_cmd_params.
79  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
80  *	Indicates progress of scanning state-machine.
81  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
82  *	ap found
83  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
84  *	bssid
85  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
86  *	hotlist bssid
87  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
88  *	change
89  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
90  *	significant change
91  *	ap found
92  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
93  *	significant change
94  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
95  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
96  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
97  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
98  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
99  * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
100  * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
101  * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
102  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
103  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
104  * roaming and auth information.
105  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
106  *
107  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
108  *	invoke the ACS function in device and pass selected channels to
109  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
110  *
111  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
112  * driver.
113  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
114  *	started CAC on DFS channel
115  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
116  * 	completed the CAC check on DFS channel
117  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
118  * 	check was aborted by the driver
119  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
120  * 	driver completed NOP
121  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
122  * 	driver detected radar signal on the current operating channel
123  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
124  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
125  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
126  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
127  * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
128  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
129  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
130  *	extscan reset ssid hotlist
131  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
132  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
133  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
134  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
135  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
136  *	reset passpoint list
137  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
138  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
139  *	passpoint network found
140  * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
141  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
142  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
143  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
144  * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
145  * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
146 	list
147  * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
148  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
149  *	to the host driver. This command sets the band through either
150  *	the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
151  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
152  *	refers enum qca_set_band as unsigned integer values and
153  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
154  *	values. Also, the acceptable values for
155  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
156  *	values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
157  *	attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
158  *	recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
159  *	implementations configure using both the attributes, the configurations
160  *	through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
161  *	precedence.
162  * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
163  * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
164  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
165  * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
166  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
167  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
168  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
169  * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
170  * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
171  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
172  *	start the P2P Listen Offload function in device and pass the listen
173  *	channel, period, interval, count, number of device types, device
174  *	types and vendor information elements to device driver and firmware.
175  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
176  *	indicate stop request/response of the P2P Listen Offload function in
177  *	device. As an event, it indicates either the feature stopped after it
178  *	was already running or feature has actually failed to start.
179  * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
180  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
181  *     beaconing, this sub command provides the driver, the frequencies on the
182  *     5 GHz to check for any radar activity. Driver selects one channel from
183  *     this priority list provided through
184  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
185  *     to check for radar activity on it. If no radar activity is detected
186  *     during the channel availability check period, driver internally switches
187  *     to the selected frequency of operation. If the frequency is zero, driver
188  *     internally selects a channel. The status of this conditional switch is
189  *     indicated through an event using the same sub command through
190  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
191  *     listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
192  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
193  *      indication period and threshold for MAC layer counters.
194  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
195  *	in the host driver. The different TDLS configurations are defined
196  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
197  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
198  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
199  *	(SAR) power limits. A critical regulation for FCC compliance, OEMs
200  *	require methods to set SAR limits on TX power of WLAN/WWAN.
201  *	enum qca_vendor_attr_sar_limits attributes are used with this command.
202  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
203  *      configuration of vendor ACS.
204  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
205  *      requisite information leading to a power save failure. The information
206  *      carried as part of this event is represented by the
207  *      enum qca_attr_chip_power_save_failure attributes.
208  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
209  *      collection. Uses attributes defined in enum qca_attr_nud_stats_set.
210  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
211  *      statistics are represented by the enum qca_attr_nud_stats_get
212  *      attributes.
213  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
214  *      the BSS transition status, whether accept or reject, for a list of
215  *      candidate BSSIDs provided by the userspace. This uses the vendor
216  *      attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
217  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
218  *      the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
219  *      array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
220  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
221  *      the driver shall specify array of
222  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
223  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
224  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
225  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
226  *      specific QCA module. The trace levels are represented by
227  *      enum qca_attr_trace_level attributes.
228  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
229  *      Protocol antenna limit in different modes. See enum
230  *      qca_wlan_vendor_attr_brp_ant_limit_mode.
231  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
232  *      parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
233  *      This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
234  *      identifying the operation in success case. In failure cases an
235  *      error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
236  *      describing the reason for the failure is returned.
237  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
238  *      a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
239  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
240  *      be stopped.
241  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
242  *     specific interface. This can be used to modify some of the low level
243  *     scan parameters (off channel dwell time, home channel time) in the
244  *     driver/firmware. These parameters are maintained within the host
245  *     driver.
246  *     This command is valid only when the interface is in the connected
247  *     state.
248  *     These scan parameters shall be reset by the driver/firmware once
249  *     disconnected. The attributes used with this command are defined in
250  *     enum qca_wlan_vendor_attr_active_tos.
251  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
252  *      driver has detected an internal failure. This event carries the
253  *      information indicating the reason that triggered this detection. The
254  *      attributes for this command are defined in
255  *      enum qca_wlan_vendor_attr_hang.
256  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
257  *     of spectral parameters used. The spectral scan parameters are specified
258  *     by enum qca_wlan_vendor_attr_spectral_scan.
259  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
260  *     for spectral scan functionality. The debug stats are specified by
261  *     enum qca_wlan_vendor_attr_spectral_diag_stats.
262  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
263  *     scan system capabilities. The capabilities are specified
264  *     by enum qca_wlan_vendor_attr_spectral_cap.
265  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
266  *     status of spectral scan. The status values are specified
267  *     by enum qca_wlan_vendor_attr_spectral_scan_status.
268  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
269  *     peer pending packets. Specify the peer MAC address in
270  *     QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
271  *     in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
272  *     in enum qca_wlan_vendor_attr_flush_pending.
273  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
274  *     RF Operating Parameter (RROP) information. The attributes for this
275  *     information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
276  *     intended for use by external Auto Channel Selection applications.
277  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
278  *	(SAR) power limits. This is a companion to the command
279  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
280  *	settings currently in use. The attributes returned by this command are
281  *	defined by enum qca_vendor_attr_sar_limits.
282  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
283  *      the WLAN hardware MAC's associated with each WLAN netdev interface.
284  *      This works both as a query (user space asks the current mode) or event
285  *      interface (driver advertizing the current mode to the user space).
286  *      Driver does not trigger this event for temporary hardware mode changes.
287  *      Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
288  *      channel change etc ) are updated with this event. Attributes for this
289  *      interface are defined in enum qca_wlan_vendor_attr_mac.
290  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
291  *	per peer per TID. Attributes for this command are define in
292  *	enum qca_wlan_set_qdepth_thresh_attr
293  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
294  *	guide for WLAN driver. Request to suspend of driver and FW if the
295  *	temperature is higher than the suspend threshold; resume action is
296  *	requested to driver if the temperature is lower than the resume
297  *	threshold. In user poll mode, request temperature data by user. For test
298  *	purpose, getting thermal shutdown configuration parameters is needed.
299  *	Attributes for this interface are defined in
300  *	enum qca_wlan_vendor_attr_thermal_cmd.
301  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
302  *	driver. Thermal temperature and indication of resume completion are
303  *	reported as thermal events. The attributes for this command are defined
304  *	in enum qca_wlan_vendor_attr_thermal_event.
305  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
306  *	test configuration. Attributes for this command are defined in
307  *	enum qca_wlan_vendor_attr_wifi_test_config.
308  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
309  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
310  *	carried a payload which was a binary blob of data. The command was not
311  *	extendable to send more information. The newer version carries the
312  *	legacy blob encapsulated within an attribute and can be extended with
313  *	additional vendor attributes that can enhance the NAN command
314  *	interface.
315  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
316  *	configure parameters per peer to capture Channel Frequency Response
317  *	(CFR) and enable Periodic CFR capture. The attributes for this command
318  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
319  *	can also be used to send CFR data from the driver to userspace when
320  *	netlink events are used to send CFR data.
321  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
322  *	The returned firmware state is specified in the attribute
323  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
324  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
325  *	is used by host driver to flush per-peer cached statistics to user space
326  *	application. This interface is used as an event from host driver to
327  *	user space application. Attributes for this event are specified in
328  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
329  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
330  *	sent as event from host driver.
331  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
332  *	improve the success rate of Zigbee joining network.
333  *	Due to PTA master limitation, zigbee joining network success rate is
334  *	low while wlan is working. Wlan host driver need to configure some
335  *	parameters including Zigbee state and specific WLAN periods to enhance
336  *	PTA master. All this parameters are delivered by the NetLink attributes
337  *	defined in "enum qca_mpta_helper_vendor_attr".
338  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
339  *	implement Beacon frame reporting feature.
340  *
341  *	Userspace can request the driver/firmware to periodically report
342  *	received Beacon frames whose BSSID is same as the current connected
343  *	BSS's MAC address.
344  *
345  *	In case the STA seamlessly (without sending disconnect indication to
346  *	userspace) roams to a different BSS, Beacon frame reporting will be
347  *	automatically enabled for the Beacon frames whose BSSID is same as the
348  *	MAC address of the new BSS. Beacon reporting will be stopped when the
349  *	STA is disconnected (when the disconnect indication is sent to
350  *	userspace) and need to be explicitly enabled by userspace for next
351  *	connection.
352  *
353  *	When a Beacon frame matching configured conditions is received, and if
354  *	userspace has requested to send asynchronous beacon reports, the
355  *	driver/firmware will encapsulate the details of the Beacon frame in an
356  *	event and send it to userspace along with updating the BSS information
357  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
358  *	scan cache with the information from the received Beacon frame but
359  *	will not send any active report to userspace.
360  *
361  *	The userspace can request the driver/firmware to stop reporting Beacon
362  *	frames. If the driver/firmware is not able to receive Beacon frames
363  *	due to other Wi-Fi operations such as off-channel activities, etc.,
364  *	the driver/firmware will send a pause event to userspace and stop
365  *	reporting Beacon frames. Whether the beacon reporting will be
366  *	automatically resumed or not by the driver/firmware later will be
367  *	reported to userspace using the
368  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
369  *	reporting shall be resumed for all the cases except either when
370  *	userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
371  *	in the command which triggered the current beacon reporting or during
372  *	any disconnection case as indicated by setting
373  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
374  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
375  *	driver.
376  *
377  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
378  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
379  *	flag not set, the next first
380  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
381  *	shall be considered as un-pause event.
382  *
383  *	All the attributes used with this command are defined in
384  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
385  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
386  *	interop issues with the DUT. This sub command is used to transfer the
387  *	ap info between driver and user space. This works both as a command
388  *	or event. As a command, it configs the stored list of aps from user
389  *	space to firmware; as an event, it indicates the ap info detected by
390  *	firmware to user space for persistent storage. The attributes defined
391  *	in enum qca_vendor_attr_interop_issues_ap are used to deliver the
392  *	parameters.
393  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
394  *	binary blobs from application/service to firmware. The attributes
395  *	defined in enum qca_wlan_vendor_attr_oem_data_params are used to
396  *	deliver the parameters.
397  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
398  *	to send/receive avoid frequency data using
399  *	enum qca_wlan_vendor_attr_avoid_frequency_ext.
400  *	This new command is alternative to existing command
401  *	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
402  *	is using stream of bytes instead of structured data using vendor
403  *	attributes. User space sends unsafe frequency ranges to the driver using
404  *	a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
405  *	reception of this command, the driver shall check if an interface is
406  *	operating on an unsafe frequency and the driver shall try to move to a
407  *	safe channel when needed. If the driver is not able to find a safe
408  *	channel the interface can keep operating on an unsafe channel with the
409  *	TX power limit derived based on internal configurations	like
410  *	regulatory/SAR rules.
411  *
412  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
413  *	add the STA node details in driver/firmware. Attributes for this event
414  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
415  * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
416  *	coex chain mode from application/service.
417  *	The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
418  *	to deliver the parameters.
419  * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
420  *	get information of a station from driver to userspace. This command can
421  *	be used in both STA and AP modes. For STA mode, it provides information
422  *	of the current association when in connected state or the last
423  *	association when in disconnected state. For AP mode, only information
424  *	of the currently connected stations is available. This command uses
425  *	attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
426  * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
427  *	Host drivers can request the user space entity to set the SAR power
428  *	limits with this event. Accordingly, the user space entity is expected
429  *	to set the SAR power limits. Host drivers can retry this event to the
430  *	user space for the SAR power limits configuration from user space. If
431  *	the driver does not get the SAR power limits from user space for all
432  *	the retried attempts, it can configure a default SAR power limit.
433  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
434  *	is used to update the information about the station from the driver to
435  *	userspace. Uses attributes from enum
436  *	qca_wlan_vendor_attr_update_sta_info.
437  *
438  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
439  *	The host driver initiates the disconnection for scenarios such as beacon
440  *	miss, NUD failure, peer kick out, etc. The disconnection indication
441  *	through cfg80211_disconnected() expects the reason codes from enum
442  *	ieee80211_reasoncode which does not signify these various reasons why
443  *	the driver has triggered the disconnection. This event will be used to
444  *	send the driver specific reason codes by the host driver to userspace.
445  *	Host drivers should trigger this event and pass the respective reason
446  *	code immediately prior to triggering cfg80211_disconnected(). The
447  *	attributes used with this event are defined in enum
448  *	qca_wlan_vendor_attr_driver_disconnect_reason.
449  *
450  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
451  *	add/delete TSPEC for each AC. One command is for one specific AC only.
452  *	This command can only be used in STA mode and the STA must be
453  *	associated with an AP when the command is issued. Uses attributes
454  *	defined in enum qca_wlan_vendor_attr_config_tspec.
455  *
456  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
457  *	Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
458  *
459  * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
460  *	the host driver. The band configurations obtained are referred through
461  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
462  *
463  * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
464  *	assessment.
465  *	Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
466  *
467  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
468  *	used to update SSID information in hostapd when it is updated in the
469  *	driver. Uses the attribute NL80211_ATTR_SSID.
470  *
471  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
472  *	the driver to send opaque data from the firmware to userspace. The
473  *	driver sends an event to userspace whenever such data is received from
474  *	the firmware.
475  *
476  *	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
477  *	send this opaque data for this event.
478  *
479  *	The format of the opaque data is specific to the particular firmware
480  *	version and there is no guarantee of the format remaining same.
481  *
482  * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
483  *	The host driver selects Tx VDEV, and notifies user. The attributes
484  *	used with this event are defined in enum
485  *	qca_wlan_vendor_attr_mbssid_tx_vdev_status.
486  *	This event contains Tx VDEV group information contains other VDEVs
487  *	interface index and status information.
488  *
489  * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY: Vendor command to
490  *	configure the concurrent session policies when multiple STA interfaces
491  *	are (getting) active. The attributes used by this command are defined
492  *	in enum qca_wlan_vendor_attr_concurrent_sta_policy.
493  *
494  * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
495  *	to query usable channels for different interface types such as STA,
496  *	AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
497  *	channels in the response based on country code, different static
498  *	configurations, concurrency combinations, etc. The attributes used
499  *	with this command are defined in
500  *	enum qca_wlan_vendor_attr_usable_channels.
501  *
502  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
503  *	to get DFS radar history from the driver to userspace. The driver
504  *	returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
505  *	array of nested entries.
506  * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
507  *	enable/disable mDNS offload to the firmware. The attributes used with
508  *	this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
509  *
510  * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
511  *	important debug events that are required for various issues. The
512  *	attributes used with this command are defined in
513  *	enum qca_wlan_vendor_attr_diag.
514  *	This command is defined for temporary usage until this interface is
515  *	moved to the existing diag infra with cnss diag events. This command
516  *	will be deprecated soon and it is not recommended to do any further
517  *	enhancements to this command.
518  *
519  * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
520  *     to set packet monitor mode that aims to send the specified set of TX and
521  *     RX frames on the current client interface to an active monitor interface.
522  *     If this Monitor mode is set, the driver will send the configured frames,
523  *     from the interface on which the command is issued, to an active monitor
524  *     interface. The attributes used with this command are defined in
525  *     enum qca_wlan_vendor_attr_set_monitor_mode.
526  *
527  *     Though the monitor mode is configured for the respective data/mgmt/ctrl
528  *     frames, it is up to the respective WLAN driver/firmware/hardware designs
529  *     to consider the possibility of sending these frames over the monitor
530  *     interface. For example, the control frames are handled with in the
531  *     hardware and thus passing such frames over the monitor interface is left
532  *     to the respective designs.
533  *
534  *     Also, this monitor mode is governed to behave accordingly in
535  *     suspend/resume states. If the firmware handles any of such frames
536  *     in suspend state without waking up the host and if the monitor mode
537  *     is configured to notify all such frames, then the firmware is expected
538  *     to resume the host and forward the respective frames to the monitor
539  *     interface. Please note that such a request to get the frames over the
540  *     monitor interface will have a definite power implications.
541  *
542  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
543  *     as a request to set the driver/firmware with the parameters to trigger
544  *     the roaming events, and also used by the driver/firmware to pass on the
545  *     various roam events to userspace.
546  *     Applicable only for the STA mode. The attributes used with this command
547  *     are defined in enum qca_wlan_vendor_attr_roam_events.
548  *
549  * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
550  *     rate mask config for a list of phy types. Userspace shall provide
551  *     an array of the vendor attributes defined in
552  *     enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
553  *
554  * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
555  *	when two interfaces are active on the same band, using two different
556  *	home channels, and only supported by a single radio. In this scenario
557  *	the device must split the use of the radio between the two interfaces.
558  *	The percentage of time allocated to a given interface is the quota.
559  *	Depending on the configuration, the quota can either be fixed or
560  *	dynamic.
561  *
562  *	When used as an event, the device will report the quota type, and for
563  *	all interfaces operating in MCC it will report the current quota.
564  *	When used as a command, the device can be configured for a specific
565  *	quota type, and in the case of a fixed quota, the quota to apply to one
566  *	of the interfaces.
567  *
568  *	Applications can use the event to do TX bitrate control based on the
569  *	information, and can use the command to explicitly set the quota to
570  *	enhance performance in specific scenarios.
571  *
572  *	The attributes used with this command are defined in
573  *	enum qca_wlan_vendor_attr_mcc_quota.
574  *
575  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
576  *	user space that the driver is ready for operations again after
577  *	recovering from internal failures. This occurs following a failure
578  *	that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
579  *
580  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
581  *	get the WLAN radio combinations matrix supported by the device which
582  *	provides the device simultaneous radio configurations such as
583  *	standalone, dual band simultaneous, and single band simultaneous.
584  *
585  *	The attributes used with this command are defined in
586  *	enum qca_wlan_vendor_attr_radio_combination_matrix.
587  *
588  * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
589  *	security negotiation and key generation to user space.
590  *
591  *	When used as an event, the driver requests userspace to trigger the PASN
592  *	authentication or dropping of a PTKSA for the indicated peer devices.
593  *	When used as a command response, userspace indicates a consolidated
594  *	status report for all the peers that were requested for.
595  *
596  *	The attributes used with this command are defined in
597  *	enum qca_wlan_vendor_attr_pasn.
598  *
599  * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
600  *	secure ranging context such as TK and LTF keyseed for each peer
601  *	requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
602  *
603  *	The attributes used with this command are defined in
604  *	enum qca_wlan_vendor_attr_secure_ranging_ctx.
605  *
606  * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
607  *	enable/disable offload processing in firmware during system/runtime
608  *	suspend for CoAP messages (see RFC7252: The Constrained Application
609  *	Protocol) and fetch information of the CoAP messages cached during
610  *	offload processing.
611  *
612  *	The attributes used with this command are defined in
613  *	enum qca_wlan_vendor_attr_coap_offload.
614  *
615  * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
616  *	(add, remove, or change) a Stream Classification Service (SCS) rule.
617  *
618  *	The attributes used with this event are defined in
619  *	enum qca_wlan_vendor_attr_scs_rule_config.
620  */
621 
622 enum qca_nl80211_vendor_subcmds {
623 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
624 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
625 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
626 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
627 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
628 	QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
629 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
630 
631 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
632 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
633 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
634 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
635 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
636 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
637 
638 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
639 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
640 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
641 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
642 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
643 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
644 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
645 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
646 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
647 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
648 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
649 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
650 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
651 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
652 
653 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
654 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
655 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
656 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
657 
658 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
659 
660 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
661 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
662 
663 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
664 
665 	/* Get Concurrency Matrix */
666 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
667 
668 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
669 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
670 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
671 
672 	/* Deprecated */
673 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
674 
675 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
676 
677 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
678 
679 	/* Off loaded DFS events */
680 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
681 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
682 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
683 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
684 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
685 
686 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
687 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
688 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
689 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
690 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
691 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
692 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
693 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
694 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
695 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
696 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
697 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
698 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
699 
700 	/* Wi-Fi Configuration subcommands */
701 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
702 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
703 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
704 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
705 
706 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
707 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
708 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
709 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
710 
711 	/* NS Offload enable/disable cmd */
712 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
713 
714 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
715 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
716 
717 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
718 
719 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
720 	/* OCB commands */
721 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
722 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
723 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
724 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
725 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
726 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
727 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
728 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
729 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
730 
731 	/* subcommand to get link properties */
732 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
733 	/* LFR Subnet Detection */
734 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
735 
736 	/* DBS subcommands */
737 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
738 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
739 
740 	/* Vendor setband command */
741 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
742 
743 	/* Vendor scan commands */
744 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
745 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
746 
747 	/* OTA test subcommand */
748 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
749 	/* Tx power scaling subcommands */
750 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
751 	/* Tx power scaling in db subcommands */
752 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
753 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
754 	QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
755 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG  = 118,
756 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
757 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
758 	QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
759 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
760 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
761 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
762 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
763 
764 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
765 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
766 	/* FTM/indoor location subcommands */
767 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
768 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
769 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
770 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
771 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
772 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
773 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
774 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
775 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
776 
777 	/* Encrypt/Decrypt command */
778 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
779 
780 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
781 	/* DMG low level RF sector operations */
782 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
783 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
784 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
785 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
786 
787 	/* Configure the TDLS mode from user space */
788 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
789 
790 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
791 
792 	/* Vendor abort scan command */
793 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
794 
795 	/* Set Specific Absorption Rate(SAR) Power Limits */
796 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
797 
798 	/* External Auto channel configuration setting */
799 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
800 
801 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
802 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
803 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
804 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
805 
806 	/* Set the trace level for QDF */
807 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
808 
809 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
810 
811 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
812 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
813 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
814 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
815 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
816 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
817 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
818 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
819 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
820 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
821 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
822 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
823 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
824 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
825 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
826 	/* Wi-Fi test configuration subcommand */
827 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
828 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
829 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
830 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
831 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
832 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
833 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
834 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
835 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
836 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
837 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
838 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
839 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
840 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
841 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
842 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
843 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
844 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
845 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
846 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
847 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
848 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
849 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
850 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
851 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
852 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197,
853 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
854 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
855 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
856 	QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
857 	QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
858 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
859 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
860 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
861 	/* 206..212 - reserved for QCA */
862 	QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
863 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
864 	QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
865 	QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
866 	QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
867 	QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
868 };
869 
870 enum qca_wlan_vendor_tos {
871 	QCA_WLAN_VENDOR_TOS_BK = 0,
872 	QCA_WLAN_VENDOR_TOS_BE = 1,
873 	QCA_WLAN_VENDOR_TOS_VI = 2,
874 	QCA_WLAN_VENDOR_TOS_VO = 3,
875 };
876 
877 /**
878  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
879  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
880  */
881 enum qca_wlan_vendor_attr_active_tos {
882 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
883 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
884 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
885 	/* Flag attribute representing the start (attribute included) or stop
886 	 * (attribute not included) of the respective TOS.
887 	 */
888 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
889 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
890 };
891 
892 enum qca_wlan_vendor_hang_reason {
893 	/* Unspecified reason */
894 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
895 	/* No Map for the MAC entry for the received frame */
896 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
897 	/* peer deletion timeout happened */
898 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
899 	/* peer unmap timeout */
900 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
901 	/* Scan request timed out */
902 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
903 	/* Consecutive Scan attempt failures */
904 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
905 	/* Unable to get the message buffer */
906 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
907 	/* Current command processing is timedout */
908 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
909 	/* Timeout for an ACK from FW for suspend request */
910 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
911 	/* Timeout for an ACK from FW for resume request */
912 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
913 	/* Transmission timeout for consecutive data frames */
914 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
915 	/* Timeout for the TX completion status of data frame */
916 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
917 	/* DXE failure for tx/Rx, DXE resource unavailability */
918 	QCA_WLAN_HANG_DXE_FAILURE = 12,
919 	/* WMI pending commands exceed the maximum count */
920 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
921 	/* Timeout for peer STA connection accept command's response from the
922 	 * FW in AP mode. This command is triggered when a STA (peer) connects
923 	 * to AP (DUT).
924 	 */
925 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
926 	/* Timeout for the AP connection accept command's response from the FW
927 	 * in STA mode. This command is triggered when the STA (DUT) connects
928 	 * to an AP (peer).
929 	 */
930 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
931 	/* Timeout waiting for the response to the MAC HW mode change command
932 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
933 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
934 	 * Channel Concurrency) mode.
935 	 */
936 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
937 	/* Timeout waiting for the response from FW to configure the MAC HW's
938 	 * mode. This operation is to configure the single/two MACs in either
939 	 * SCC/MCC/DBS mode.
940 	 */
941 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
942 	/* Timeout waiting for response of VDEV start command from the FW */
943 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
944 	/* Timeout waiting for response of VDEV restart command from the FW */
945 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
946 	/* Timeout waiting for response of VDEV stop command from the FW */
947 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
948 	/* Timeout waiting for response of VDEV delete command from the FW */
949 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
950 	/* Timeout waiting for response of peer all delete request command to
951 	 * the FW on a specific VDEV.
952 	 */
953 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
954 	/* WMI sequence mismatch between WMI command and Tx completion */
955 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
956 	/* Write to Device HAL register failed */
957 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
958 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
959 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
960 	/* Bus failure */
961 	QCA_WLAN_HANG_BUS_FAILURE = 26,
962 	/* tasklet/credit latency found */
963 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
964 };
965 
966 /**
967  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
968  * QCA_NL80211_VENDOR_SUBCMD_HANG.
969  */
970 enum qca_wlan_vendor_attr_hang {
971 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
972 	/*
973 	 * Reason for the Hang - Represented by enum
974 	 * qca_wlan_vendor_hang_reason.
975 	 */
976 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
977 	/* The binary blob data associated with the hang reason specified by
978 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
979 	 * contain the required dump to analyze the reason for the hang.
980 	 * NLA_BINARY attribute, the max size is 1024 bytes.
981 	 */
982 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
983 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
984 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
985 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
986 };
987 
988 /**
989  * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
990  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
991  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
992  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
993     level needs to be updated.
994  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
995  * to be set.
996  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
997  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
998  */
999 enum qca_vendor_attr_set_trace_level {
1000 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
1001 	/*
1002 	* Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
1003 	* attributes.
1004 	*/
1005 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
1006 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
1007 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
1008 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
1009 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
1010 		QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
1011 };
1012 
1013 /**
1014  * enum qca_wlan_vendor_attr_get_station - Sub commands used by
1015  * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
1016  * station information. The information obtained through these
1017  * commands signify the current info in connected state and
1018  * latest cached information during the connected state , if queried
1019  * when in disconnected state.
1020  *
1021  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
1022  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
1023  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
1024  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
1025  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
1026  */
1027 enum qca_wlan_vendor_attr_get_station {
1028 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
1029 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
1030 	QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
1031 	QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
1032 
1033 	/* keep last */
1034 	QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
1035 	QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
1036 		QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
1037 };
1038 
1039 /**
1040  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
1041  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
1042  *
1043  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
1044  * Used in STA mode. This attribute represents the list of channel center
1045  * frequencies in MHz (u32) the station has learnt during the last connection
1046  * or roaming attempt. This information shall not signify the channels for
1047  * an explicit scan request from the user space. Host drivers can update this
1048  * information to the user space in both connected and disconnected state.
1049  * In the disconnected state this information shall signify the channels
1050  * scanned in the last connection/roam attempt that lead to the disconnection.
1051  */
1052 enum qca_wlan_vendor_attr_update_sta_info {
1053 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
1054 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
1055 
1056 	/* keep last */
1057 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
1058 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
1059 		QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
1060 };
1061 
1062 /**
1063  * enum qca_wlan_802_11_mode - dot11 mode
1064  * @QCA_WLAN_802_11_MODE_11B: mode B
1065  * @QCA_WLAN_802_11_MODE_11G: mode G
1066  * @QCA_WLAN_802_11_MODE_11N: mode N
1067  * @QCA_WLAN_802_11_MODE_11A: mode A
1068  * @QCA_WLAN_802_11_MODE_11AC: mode AC
1069  * @QCA_WLAN_802_11_MODE_11AX: mode AX
1070  * @QCA_WLAN_802_11_MODE_11BE: mode BE
1071  * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
1072  */
1073 enum qca_wlan_802_11_mode {
1074 	QCA_WLAN_802_11_MODE_11B,
1075 	QCA_WLAN_802_11_MODE_11G,
1076 	QCA_WLAN_802_11_MODE_11N,
1077 	QCA_WLAN_802_11_MODE_11A,
1078 	QCA_WLAN_802_11_MODE_11AC,
1079 	QCA_WLAN_802_11_MODE_11AX,
1080 	QCA_WLAN_802_11_MODE_11BE,
1081 	QCA_WLAN_802_11_MODE_INVALID,
1082 };
1083 
1084 /**
1085  * enum qca_wlan_auth_type - Authentication key management type
1086  * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
1087  * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
1088  * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
1089  * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
1090  * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
1091  * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
1092  * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
1093  * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
1094  * @QCA_WLAN_AUTH_TYPE_FT: ft key
1095  * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
1096  * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
1097  * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
1098  * @QCA_WLAN_AUTH_TYPE_WAI: wai key
1099  * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
1100  * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
1101  * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
1102  * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
1103  * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
1104  * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
1105  * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
1106  * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
1107  * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
1108  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
1109  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
1110  * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
1111  * @QCA_WLAN_AUTH_TYPE_OWE: owe key
1112  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
1113  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
1114  */
1115 enum qca_wlan_auth_type {
1116 	QCA_WLAN_AUTH_TYPE_INVALID,
1117 	QCA_WLAN_AUTH_TYPE_OPEN,
1118 	QCA_WLAN_AUTH_TYPE_SHARED,
1119 	QCA_WLAN_AUTH_TYPE_WPA,
1120 	QCA_WLAN_AUTH_TYPE_WPA_PSK,
1121 	QCA_WLAN_AUTH_TYPE_WPA_NONE,
1122 	QCA_WLAN_AUTH_TYPE_RSN,
1123 	QCA_WLAN_AUTH_TYPE_RSN_PSK,
1124 	QCA_WLAN_AUTH_TYPE_FT,
1125 	QCA_WLAN_AUTH_TYPE_FT_PSK,
1126 	QCA_WLAN_AUTH_TYPE_SHA256,
1127 	QCA_WLAN_AUTH_TYPE_SHA256_PSK,
1128 	QCA_WLAN_AUTH_TYPE_WAI,
1129 	QCA_WLAN_AUTH_TYPE_WAI_PSK,
1130 	QCA_WLAN_AUTH_TYPE_CCKM_WPA,
1131 	QCA_WLAN_AUTH_TYPE_CCKM_RSN,
1132 	QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
1133 	QCA_WLAN_AUTH_TYPE_FT_SAE,
1134 	QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
1135 	QCA_WLAN_AUTH_TYPE_SAE,
1136 	QCA_WLAN_AUTH_TYPE_FILS_SHA256,
1137 	QCA_WLAN_AUTH_TYPE_FILS_SHA384,
1138 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
1139 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
1140 	QCA_WLAN_AUTH_TYPE_DPP_RSN,
1141 	QCA_WLAN_AUTH_TYPE_OWE,
1142 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
1143 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
1144 };
1145 
1146 /**
1147  * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
1148  * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
1149  *
1150  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
1151  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
1152  *  Get the standard NL attributes Nested with this attribute.
1153  *  Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
1154  *  NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
1155  *  NL80211_ATTR_STA_INFO
1156  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
1157  *  Get the standard NL attributes Nested with this attribute.
1158  *  Ex : Query HT/VHT Capability advertized by the AP.
1159  *  NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
1160  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
1161  *  Number of successful Roam attempts before a
1162  *  disconnect, Unsigned 32 bit value
1163  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
1164  *  Authentication Key Management Type used for the connected session.
1165  *  Signified by enum qca_wlan_auth_type
1166  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
1167  *  connected Session, signified by enum qca_wlan_802_11_mode
1168  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
1169  *  HS20 Indication Element
1170  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
1171  *  Status Code Corresponding to the Association Failure.
1172  *  Unsigned 32 bit value.
1173  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
1174  *  Max phy rate of remote station
1175  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
1176  *  TX packets to remote station
1177  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
1178  *  TX bytes to remote station
1179  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
1180  *  RX packets from remote station
1181  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
1182  *  RX bytes from remote station
1183  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
1184  *  Last TX rate with remote station
1185  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
1186  *  Last RX rate with remote station
1187  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
1188  *  Remote station enable/disable WMM
1189  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
1190  *  Remote station connection mode
1191  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
1192  *  Remote station AMPDU enable/disable
1193  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
1194  *  Remote station TX Space-time block coding enable/disable
1195  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
1196  *  Remote station RX Space-time block coding enable/disable
1197  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
1198  *  Remote station channel width
1199  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
1200  *  Remote station short GI enable/disable
1201  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
1202  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
1203  *  containing the raw information elements from Beacon frames. Represents
1204  *  the Beacon frames of the current BSS in the connected state. When queried
1205  *  in the disconnected state, these IEs correspond to the last connected BSSID.
1206  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
1207  *  disconnect reason for the last disconnection if the disconnection is
1208  *  triggered from the host driver. The values are referred from
1209  *  enum qca_disconnect_reason_codes. If the disconnect is from
1210  *  peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
1211  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
1212  *  Applicable in AP mode only. It contains the raw information elements
1213  *  from assoc request frame of the given peer station. User queries with the
1214  *  mac address of peer station when it disconnects. Host driver sends
1215  *  assoc request frame of the given station. Host driver doesn't provide
1216  *  the IEs when the peer station is still in connected state.
1217  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
1218  * sending HE operation info.
1219  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
1220  *
1221  */
1222 enum qca_wlan_vendor_attr_get_station_info {
1223 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
1224 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
1225 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
1226 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
1227 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
1228 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
1229 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
1230 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
1231 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
1232 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
1233 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
1234 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
1235 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
1236 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
1237 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
1238 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
1239 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
1240 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
1241 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
1242 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
1243 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
1244 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
1245 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
1246 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
1247 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
1248 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
1249 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
1250 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
1251 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
1252 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
1253 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
1254 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
1255 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
1256 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
1257 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
1258 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
1259 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
1260 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
1261 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
1262 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
1263 
1264 	/* keep last */
1265 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
1266 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
1267 		QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
1268 };
1269 
1270 /**
1271  * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
1272  *
1273  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
1274  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
1275  *	value
1276  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
1277  *	keep as unsigned for now
1278  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
1279  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
1280  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
1281  *	in KBPS
1282  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
1283  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
1284  */
1285 enum qca_wlan_vendor_attr_tdls_enable {
1286 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
1287 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
1288 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
1289 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
1290 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
1291 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
1292 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
1293 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
1294 		QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
1295 };
1296 
1297 /**
1298  * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
1299  *
1300  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
1301  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
1302  *	8-bit value
1303  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
1304  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
1305  */
1306 enum qca_wlan_vendor_attr_tdls_disable {
1307 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
1308 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
1309 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
1310 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
1311 		QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
1312 };
1313 
1314 /**
1315  * qca_chip_power_save_failure_reason: Power save failure reason
1316  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1317  * due to protocol/module.
1318  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1319  * due to hardware
1320  */
1321 enum qca_chip_power_save_failure_reason {
1322 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1323 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1324 };
1325 
1326 /**
1327  * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1328  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1329  * information leading to the power save failure.
1330  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1331  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1332  * represented by enum qca_chip_power_save_failure_reason
1333  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1334  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1335  */
1336 enum qca_attr_chip_power_save_failure {
1337 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1338 
1339 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1340 
1341 	/* keep last */
1342 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1343 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1344 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1345 };
1346 
1347 
1348 /**
1349  * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
1350  *
1351  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
1352  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
1353  *	8-bit value
1354  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
1355  *	unsigned 32-bit value
1356  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
1357  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
1358  *	unsigned 32-bit value
1359  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
1360  *	class, unsigned 32-bit value
1361  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
1362  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
1363  */
1364 enum qca_wlan_vendor_attr_tdls_get_status {
1365 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
1366 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
1367 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
1368 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
1369 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
1370 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
1371 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
1372 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
1373 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
1374 };
1375 
1376 /**
1377  * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
1378  *
1379  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
1380  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
1381  *	8-bit value
1382  * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
1383  *	unsigned 32-bit value
1384  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
1385  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
1386  *	unsigned 32-bit value
1387  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
1388  *	operating class, unsigned 32-bit value
1389  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
1390  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
1391  */
1392 enum qca_wlan_vendor_attr_tdls_state {
1393 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
1394 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
1395 	QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
1396 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
1397 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
1398 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
1399 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
1400 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
1401 		QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
1402 };
1403 
1404 /* enum's to provide TDLS capabilities */
1405 enum qca_wlan_vendor_attr_get_tdls_capabilities {
1406 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1407 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1408 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1409 
1410 	/* keep last */
1411 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1412 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1413 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1414 };
1415 
1416 enum qca_wlan_vendor_attr {
1417 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1418 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1419 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1420 	/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1421 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1422 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1423 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1424 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1425 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1426 	/*
1427 	 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1428 	 * by enum qca_roaming_policy.
1429 	 */
1430 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1431 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1432 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1433 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1434 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1435 	/*
1436 	 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1437 	 * Unsigned 32-bit value.
1438 	 */
1439 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1440 	/* Unsigned 32-bit value */
1441 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1442 	/* Unsigned 32-bit value */
1443 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1444 	/* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
1445 	 * value for this attribute are only till QCA_SETBAND_2G. This attribute
1446 	 * is deprecated. Recommendation is to use
1447 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
1448 	 * using both the attributes, the ones configured through
1449 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
1450 	 */
1451 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1452 	/* Dummy (NOP) attribute for 64 bit padding */
1453 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1454 	/*
1455 	 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1456 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1457 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1458 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1459 	 */
1460 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1461 	/*
1462 	 * Indoor location capabilities, returned by
1463 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1464 	 * see enum qca_wlan_vendor_attr_loc_capa.
1465 	 */
1466 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1467 	/*
1468 	 * Array of nested attributes containing information about each peer
1469 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1470 	 * for supported attributes for each peer.
1471 	 */
1472 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1473 	/*
1474 	 * Array of nested attributes containing measurement results for
1475 	 * one or more peers, reported by the
1476 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1477 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1478 	 * attributes.
1479 	 */
1480 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1481 	/* Flag attribute for enabling or disabling responder functionality. */
1482 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1483 	/*
1484 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1485 	 * command to specify the LCI report that will be sent by
1486 	 * the responder during a measurement exchange. The format is
1487 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1488 	 */
1489 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1490 	/*
1491 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1492 	 * command to specify the location civic report that will
1493 	 * be sent by the responder during a measurement exchange.
1494 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1495 	 */
1496 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1497 	/*
1498 	 * Session/measurement completion status code,
1499 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1500 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1501 	 * see enum qca_vendor_attr_loc_session_status.
1502 	 */
1503 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1504 	/*
1505 	 * Initial dialog token used by responder (0 if not specified),
1506 	 * unsigned 8 bit value.
1507 	 */
1508 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1509 	/*
1510 	 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1511 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1512 	 * AOA measurements are needed as part of an FTM session.
1513 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1514 	 * enum qca_wlan_vendor_attr_aoa_type.
1515 	 */
1516 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1517 	/*
1518 	 * A bit mask (unsigned 32 bit value) of antenna arrays used
1519 	 * by indoor location measurements. Refers to the antenna
1520 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1521 	 */
1522 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1523 	/*
1524 	 * AOA measurement data. Its contents depends on the AOA measurement
1525 	 * type and antenna array mask:
1526 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1527 	 * phase of the strongest CIR path for each antenna in the measured
1528 	 * array(s).
1529 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1530 	 * values, phase and amplitude of the strongest CIR path for each
1531 	 * antenna in the measured array(s).
1532 	 */
1533 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1534 	/*
1535 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1536 	 * to specify the chain number (unsigned 32 bit value) to inquire
1537 	 * the corresponding antenna RSSI value */
1538 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1539 	/*
1540 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1541 	 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1542 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1543 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1544 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1545 	/*
1546 	 *  TSF timer value, unsigned 64 bit value.
1547 	 * May be returned by various commands.
1548 	 */
1549 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1550 	/*
1551 	 * DMG RF sector index, unsigned 16 bit number. Valid values are
1552 	 * 0..127 for sector indices or 65535 as special value used to
1553 	 * unlock sector selection in
1554 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1555 	 */
1556 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1557 	/*
1558 	 * DMG RF sector type, unsigned 8 bit value. One of the values
1559 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1560 	 */
1561 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1562 	/*
1563 	 * Bitmask of DMG RF modules for which information is requested. Each
1564 	 * bit corresponds to an RF module with the same index as the bit
1565 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1566 	 * all DMG chips currently have up to 8 RF modules.
1567 	 */
1568 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1569 	/*
1570 	 * Array of nested attributes where each entry is DMG RF sector
1571 	 * configuration for a single RF module.
1572 	 * Attributes for each entry are taken from enum
1573 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1574 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1575 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1576 	 */
1577 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1578 	/*
1579 	 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1580 	 * to report frame aggregation statistics to userspace.
1581 	 */
1582 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1583 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1584 	/*
1585 	 * Unsigned 8-bit value representing MBO transition reason code as
1586 	 * provided by the AP used by subcommand
1587 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1588 	 * specified by the userspace in the request to the driver.
1589 	 */
1590 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1591 	/*
1592 	 * Array of nested attributes, BSSID and status code, used by subcommand
1593 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1594 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1595 	 * The userspace space specifies the list/array of candidate BSSIDs in
1596 	 * the order of preference in the request. The driver specifies the
1597 	 * status code, for each BSSID in the list, in the response. The
1598 	 * acceptable candidates are listed in the order preferred by the
1599 	 * driver.
1600 	 */
1601 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1602 	/*
1603 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1604 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1605 	 */
1606 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1607 	/*
1608 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1609 	 * to define the number of antennas to use for BRP.
1610 	 * different purpose in each ANT_LIMIT_MODE:
1611 	 * DISABLE - ignored
1612 	 * EFFECTIVE - upper limit to number of antennas to be used
1613 	 * FORCE - exact number of antennas to be used
1614 	 * unsigned 8 bit value
1615 	 */
1616 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1617 	/*
1618 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1619 	 * to report the corresponding antenna index to the chain RSSI value
1620 	 */
1621 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1622 	/*
1623 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1624 	 * to report the specific antenna EVM value (unsigned 32 bit value).
1625 	 * With a determinate group of antennas, the driver specifies the
1626 	 * EVM value for each antenna ID, and application extract them
1627 	 * in user space.
1628 	 */
1629 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1630 	/*
1631 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1632 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1633 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1634 	 */
1635 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1636 
1637 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1638 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
1639 	 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
1640 	 * This attribute shall consider the bitmask combinations to define
1641 	 * the respective Band combinations and always takes precedence over
1642 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
1643 	 */
1644 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1645 
1646 	/* keep last */
1647 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1648 	QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1649 };
1650 
1651 enum qca_wlan_vendor_attr_extscan_config_params {
1652 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1653 
1654 	/* Unsigned 32-bit value */
1655 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
1656 
1657 	/*
1658 	 * Attributes for data used by
1659 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1660 	 */
1661 
1662 	/* Unsigned 32-bit value */
1663 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1664 	= 2,
1665 	/* Unsigned 32-bit value */
1666 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1667 	= 3,
1668 
1669 	/*
1670 	 * Attributes for input params used by
1671 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1672 	 */
1673 
1674 	/* Unsigned 32-bit value; channel frequency */
1675 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1676 	/* Unsigned 32-bit value; dwell time in ms. */
1677 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1678 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1679 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1680 	/* Unsigned 8-bit value; channel class */
1681 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
1682 
1683 	/* Unsigned 8-bit value; bucket index, 0 based */
1684 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1685 	/* Unsigned 8-bit value; band. */
1686 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1687 	/* Unsigned 32-bit value; desired period, in ms. */
1688 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1689 	/* Unsigned 8-bit value; report events semantics. */
1690 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1691 	/*
1692 	 * Unsigned 32-bit value. Followed by a nested array of
1693 	 * EXTSCAN_CHANNEL_SPEC_* attributes.
1694 	 */
1695 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
1696 
1697 	/*
1698 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1699 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1700 	 */
1701 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
1702 
1703 	/* Unsigned 32-bit value; base timer period in ms. */
1704 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1705 	/*
1706 	 * Unsigned 32-bit value; number of APs to store in each scan in the
1707 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1708 	 */
1709 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1710 	/*
1711 	 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1712 	 * up AP.
1713 	 */
1714 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1715 	= 16,
1716 
1717 	/*
1718 	 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1719 	 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1720 	 * of the array is determined by NUM_BUCKETS.
1721 	 */
1722 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
1723 
1724 	/*
1725 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1726 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1727 	 */
1728 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
1729 
1730 	/* Unsigned 8-bit value */
1731 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1732 	= 19,
1733 	/* Unsigned 32-bit value; maximum number of results to be returned. */
1734 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1735 	= 20,
1736 
1737 	/* An array of 6 x unsigned 8-bit value */
1738 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1739 	/* Signed 32-bit value */
1740 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1741 	/* Signed 32-bit value */
1742 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1743 	/* Unsigned 32-bit value */
1744 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
1745 
1746 	/*
1747 	 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1748 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1749 	 * array is determined by NUM_AP.
1750 	 */
1751 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
1752 
1753 	/*
1754 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1755 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1756 	 */
1757 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
1758 
1759 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
1760 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1761 	= 27,
1762 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1763 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1764 	= 28,
1765 	/* Unsigned 32-bit value; number of APs breaching threshold. */
1766 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1767 	/*
1768 	 * Unsigned 32-bit value; number of APs. Followed by an array of
1769 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1770 	 */
1771 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1772 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1773 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1774 	= 31,
1775 	/*
1776 	 * Unsigned 32-bit value. If max_period is non zero or different than
1777 	 * period, then this bucket is an exponential backoff bucket.
1778 	 */
1779 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1780 	/* Unsigned 32-bit value. */
1781 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1782 	/*
1783 	 * Unsigned 32-bit value. For exponential back off bucket, number of
1784 	 * scans to perform for a given period.
1785 	 */
1786 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1787 	/*
1788 	 * Unsigned 8-bit value; in number of scans, wake up AP after these
1789 	 * many scans.
1790 	 */
1791 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1792 	= 35,
1793 
1794 	/*
1795 	 * Attributes for data used by
1796 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1797 	 */
1798 
1799 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1800 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1801 	= 36,
1802 	/*
1803 	 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1804 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1805 	 * size of the array is determined by NUM_SSID.
1806 	 */
1807 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1808 	/*
1809 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1810 	 * attributes.
1811 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1812 	 */
1813 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1814 
1815 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1816 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1817 	/* Unsigned 8-bit value */
1818 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1819 	/* Signed 32-bit value */
1820 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1821 	/* Signed 32-bit value */
1822 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1823 	/* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1824 	 */
1825 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1826 
1827 	/* keep last */
1828 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1829 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
1830 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
1831 };
1832 
1833 enum qca_wlan_vendor_attr_extscan_results {
1834 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1835 
1836 	/*
1837 	 * Unsigned 32-bit value; must match the request Id supplied by
1838 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
1839 	 */
1840 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
1841 
1842 	/*
1843 	 * Unsigned 32-bit value; used to indicate the status response from
1844 	 * firmware/driver for the vendor sub-command.
1845 	 */
1846 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
1847 
1848 	/*
1849 	 * EXTSCAN Valid Channels attributes */
1850 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
1851 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
1852 	/*
1853 	 * An array of NUM_CHANNELS x unsigned 32-bit value integers
1854 	 * representing channel numbers.
1855 	 */
1856 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
1857 
1858 	/* EXTSCAN Capabilities attributes */
1859 
1860 	/* Unsigned 32-bit value */
1861 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
1862 	/* Unsigned 32-bit value */
1863 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
1864 	/* Unsigned 32-bit value */
1865 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
1866 	= 7,
1867 	/* Unsigned 32-bit value */
1868 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
1869 	= 8,
1870 	/* Signed 32-bit value */
1871 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
1872 	= 9,
1873 	/* Unsigned 32-bit value */
1874 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
1875 	/* Unsigned 32-bit value */
1876 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
1877 	= 11,
1878 	/* Unsigned 32-bit value */
1879 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
1880 	= 12,
1881 
1882 	/*
1883 	 * EXTSCAN Attributes used with
1884 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
1885 	 */
1886 
1887 	/* Unsigned 32-bit value */
1888 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
1889 
1890 	/*
1891 	 * EXTSCAN attributes used with
1892 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
1893 	 */
1894 
1895 	/*
1896 	 * An array of NUM_RESULTS_AVAILABLE x
1897 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
1898 	 */
1899 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
1900 
1901 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
1902 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
1903 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
1904 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
1905 	/* An array of 6 x unsigned 8-bit value */
1906 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
1907 	/* Unsigned 32-bit value; channel frequency in MHz */
1908 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
1909 	/* Signed 32-bit value */
1910 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
1911 	/* Unsigned 32-bit value */
1912 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
1913 	/* Unsigned 32-bit value */
1914 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
1915 	/* Unsigned 16-bit value */
1916 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
1917 	/* Unsigned 16-bit value */
1918 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
1919 	/* Unsigned 32-bit value; size of the IE DATA blob */
1920 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
1921 	/*
1922 	 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
1923 	 * information elements found in the beacon; this data should be a
1924 	 * packed list of wifi_information_element objects, one after the
1925 	 * other.
1926 	 */
1927 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
1928 
1929 	/*
1930 	 * Unsigned 8-bit value; set by driver to indicate more scan results are
1931 	 * available.
1932 	 */
1933 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
1934 
1935 	/*
1936 	 * EXTSCAN attributes for
1937 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
1938 	 */
1939 	/* Unsigned 8-bit value */
1940 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
1941 	/* Unsigned 32-bit value */
1942 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
1943 
1944 	/*
1945 	 * EXTSCAN attributes for
1946 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
1947 	 */
1948 	/*
1949 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1950 	 * to indicate number of results.
1951 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
1952 	 * list of results.
1953 	 */
1954 
1955 	/*
1956 	 * EXTSCAN attributes for
1957 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
1958 	 */
1959 	/* An array of 6 x unsigned 8-bit value */
1960 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
1961 	/* Unsigned 32-bit value */
1962 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
1963 	= 30,
1964 	/* Unsigned 32-bit value. */
1965 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
1966 	= 31,
1967 	/*
1968 	 * A nested array of signed 32-bit RSSI values. Size of the array is
1969 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
1970 	 */
1971 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
1972 	= 32,
1973 
1974 	/*
1975 	 * EXTSCAN attributes used with
1976 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
1977 	 */
1978 	/*
1979 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1980 	 * to indicate number of extscan cached results returned.
1981 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
1982 	 *  the list of extscan cached results.
1983 	 */
1984 
1985 	/*
1986 	 * An array of NUM_RESULTS_AVAILABLE x
1987 	 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
1988 	 */
1989 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
1990 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
1991 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
1992 	/*
1993 	 * Unsigned 32-bit value; a bitmask w/additional information about scan.
1994 	 */
1995 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
1996 	/*
1997 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1998 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
1999 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2000 	 * list of wifi scan results returned for each cached result block.
2001 	 */
2002 
2003 	/*
2004 	 * EXTSCAN attributes for
2005 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
2006 	 */
2007 	/*
2008 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
2009 	 * number of results.
2010 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2011 	 * list of wifi scan results returned for each
2012 	 * wifi_passpoint_match_result block.
2013 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
2014 	 */
2015 
2016 	/*
2017 	 * EXTSCAN attributes for
2018 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
2019 	 */
2020 	/* Unsigned 32-bit value */
2021 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
2022 	= 36,
2023 	/*
2024 	 * A nested array of
2025 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
2026 	 * attributes. Array size =
2027 	 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
2028 	 */
2029 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
2030 
2031 	/* Unsigned 32-bit value; network block id for the matched network */
2032 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
2033 	/*
2034 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2035 	 * list of wifi scan results returned for each
2036 	 * wifi_passpoint_match_result block.
2037 	 */
2038 	/* Unsigned 32-bit value */
2039 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
2040 	/*
2041 	 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
2042 	 * ANQP data in the information_element format.
2043 	 */
2044 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
2045 
2046 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2047 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
2048 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2049 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
2050 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2051 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
2052 	= 43,
2053 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2054 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
2055 	= 44,
2056 
2057 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
2058 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
2059 
2060 	/* keep last */
2061 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
2062 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
2063 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
2064 };
2065 
2066 /**
2067  * enum qca_vendor_interop_issues_ap_type - interop issues type
2068  * This enum defines the valid set of values of interop issues type. These
2069  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
2070  *
2071  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
2072  * when the STA's Qpower feature is enabled.
2073  */
2074 enum qca_vendor_interop_issues_ap_type {
2075 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
2076 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
2077 };
2078 
2079 /**
2080  * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
2081  * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
2082  *
2083  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
2084  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
2085  * 32-bit unsigned value, The type defined in enum
2086  * qca_vendor_interop_issues_ap_type are used.
2087  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
2088  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
2089  * it is present and mandatory for the command but is not used for
2090  * the event since only a single BSSID is reported in an event.
2091  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
2092  * 6-byte MAC address. It is used within the nested
2093  * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
2094  * and without such encapsulation in the event case.
2095  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
2096  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
2097  */
2098 enum qca_vendor_attr_interop_issues_ap {
2099 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
2100 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
2101 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
2102 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
2103 	/* keep last */
2104 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
2105 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
2106 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
2107 };
2108 
2109 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
2110 
2111 /**
2112  * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
2113  *
2114  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
2115  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
2116  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
2117  *	Aggresive stats gathering
2118  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
2119  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
2120  */
2121 enum qca_wlan_vendor_attr_ll_stats_set {
2122 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2123 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2124 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
2125 	/* keep last */
2126 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2127 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2128 		QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
2129 };
2130 
2131 /**
2132  * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
2133  *
2134  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
2135  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
2136  *	provided by the caller issuing the GET stats command. When reporting
2137  *	the stats results, the driver uses the same value to indicate which
2138  *	GET request the results correspond to.
2139  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
2140  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2141  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2142  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
2143  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
2144  */
2145 enum qca_wlan_vendor_attr_ll_stats_get {
2146 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2147 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
2148 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
2149 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2150 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2151 		QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
2152 };
2153 
2154 /**
2155  * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
2156  *
2157  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
2158  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
2159  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
2160  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2161  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2162  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
2163  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
2164  */
2165 enum qca_wlan_vendor_attr_ll_stats_clr {
2166 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2167 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
2168 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
2169 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
2170 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
2171 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2172 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2173 		QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
2174 };
2175 
2176 /**
2177  * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
2178  *
2179  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
2180  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
2181  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
2182  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
2183  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
2184  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
2185  */
2186 enum qca_wlan_vendor_attr_ll_stats_results_type {
2187 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
2188 
2189 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
2190 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
2191 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
2192 
2193 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
2194 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
2195 		QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
2196 };
2197 
2198 enum qca_wlan_vendor_attr_ll_stats_results {
2199 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2200 	/* Unsigned 32bit value. Used by the driver; must match the request id
2201 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2202 	 */
2203 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2204 
2205 	/* Unsigned 32 bit value */
2206 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2207 	/* Unsigned 32 bit value */
2208 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2209 	/* Unsigned 32 bit value */
2210 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2211 	/* Unsigned 32 bit value */
2212 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2213 	/* Signed 32 bit value */
2214 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2215 	/* Signed 32 bit value */
2216 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2217 	/* Signed 32 bit value */
2218 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2219 
2220 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2221 	 * nested within the interface stats.
2222 	 */
2223 
2224 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2225 	 * Type = enum wifi_interface_mode.
2226 	 */
2227 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2228 	/* Interface MAC address. An array of 6 Unsigned int8 */
2229 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2230 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2231 	 * AUTHENTICATING, etc. valid for STA, CLI only.
2232 	 */
2233 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2234 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2235 	 */
2236 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2237 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2238 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2239 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2240 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2241 	/* BSSID. An array of 6 unsigned 8 bit values */
2242 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2243 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
2244 	 * values.
2245 	 */
2246 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2247 	/* Country string for this association. An array of 3 unsigned 8 bit
2248 	 * values.
2249 	 */
2250 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2251 
2252 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2253 	 * be nested within the interface stats.
2254 	 */
2255 
2256 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2257 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2258 	/* Unsigned int 32 value corresponding to respective AC */
2259 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2260 	/* Unsigned int 32 value corresponding to respective AC */
2261 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2262 	/* Unsigned int 32 value corresponding to respective AC */
2263 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2264 	/* Unsigned int 32 value corresponding to respective AC */
2265 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2266 	/* Unsigned int 32 value corresponding to respective AC */
2267 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2268 	/* Unsigned int 32 value corresponding to respective AC */
2269 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2270 	/* Unsigned int 32 value corresponding to respective AC */
2271 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2272 	/* Unsigned int 32 value corresponding to respective AC */
2273 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2274 	/* Unsigned int 32 value corresponding to respective AC  */
2275 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2276 	/* Unsigned int 32 values corresponding to respective AC */
2277 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2278 	/* Unsigned int 32 values corresponding to respective AC */
2279 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2280 	/* Unsigned int 32 values corresponding to respective AC */
2281 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2282 	/* Unsigned int 32 values corresponding to respective AC */
2283 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2284 	/* Unsigned int 32 values corresponding to respective AC */
2285 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2286 	/* Unsigned 32 bit value. Number of peers */
2287 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2288 
2289 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2290 	 * nested within the interface stats.
2291 	 */
2292 
2293 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2294 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2295 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
2296 	 * 8 bit values.
2297 	 */
2298 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2299 	/* Unsigned int 32 bit value representing capabilities corresponding
2300 	 * to respective peer.
2301 	 */
2302 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2303 	/* Unsigned 32 bit value. Number of rates */
2304 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2305 
2306 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2307 	 * are nested within the rate stat.
2308 	 */
2309 
2310 	/* Wi-Fi Rate - separate attributes defined for individual fields */
2311 
2312 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2313 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2314 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2315 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2316 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2317 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2318 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2319 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2320 	 */
2321 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2322 
2323 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2324 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2325 
2326 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2327 	 * nested within the peer info stats.
2328 	 */
2329 
2330 	/* Unsigned int 32 bit value. Number of successfully transmitted data
2331 	 * packets, i.e., with ACK received corresponding to the respective
2332 	 * rate.
2333 	 */
2334 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2335 	/* Unsigned int 32 bit value. Number of received data packets
2336 	 * corresponding to the respective rate.
2337 	 */
2338 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2339 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2340 	 * received corresponding to the respective rate.
2341 	 */
2342 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2343 	/* Unsigned int 32 bit value. Total number of data packet retries for
2344 	 * the respective rate.
2345 	 */
2346 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2347 	/* Unsigned int 32 bit value. Total number of short data packet retries
2348 	 * for the respective rate.
2349 	 */
2350 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2351 	/* Unsigned int 32 bit value. Total number of long data packet retries
2352 	 * for the respective rate.
2353 	 */
2354 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2355 
2356 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2357 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
2358 	 * accruing over time.
2359 	 */
2360 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2361 	/* Unsigned 32 bit value. Total number of msecs the radio is
2362 	 * transmitting accruing over time.
2363 	 */
2364 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2365 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
2366 	 * receive accruing over time.
2367 	 */
2368 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2369 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2370 	 * to all scan accruing over time.
2371 	 */
2372 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2373 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2374 	 * to NAN accruing over time.
2375 	 */
2376 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2377 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2378 	 * to GSCAN accruing over time.
2379 	 */
2380 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2381 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2382 	 * to roam scan accruing over time.
2383 	 */
2384 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2385 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2386 	 * to PNO scan accruing over time.
2387 	 */
2388 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2389 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2390 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2391 	 */
2392 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2393 	/* Unsigned 32 bit value. Number of channels. */
2394 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2395 
2396 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2397 	 * be nested within the channel stats.
2398 	 */
2399 
2400 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2401 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2402 	/* Unsigned 32 bit value. Primary 20 MHz channel. */
2403 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2404 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2405 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2406 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2407 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2408 
2409 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2410 	 * nested within the radio stats.
2411 	 */
2412 
2413 	/* Unsigned int 32 bit value representing total number of msecs the
2414 	 * radio is awake on that channel accruing over time, corresponding to
2415 	 * the respective channel.
2416 	 */
2417 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2418 	/* Unsigned int 32 bit value representing total number of msecs the CCA
2419 	 * register is busy accruing over time corresponding to the respective
2420 	 * channel.
2421 	 */
2422 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2423 
2424 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2425 
2426 	/* Signifies the nested list of channel attributes
2427 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
2428 	 */
2429 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2430 
2431 	/* Signifies the nested list of peer info attributes
2432 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2433 	 */
2434 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2435 
2436 	/* Signifies the nested list of rate info attributes
2437 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2438 	 */
2439 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2440 
2441 	/* Signifies the nested list of wmm info attributes
2442 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2443 	 */
2444 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2445 
2446 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2447 	 * that more stats, e.g., peers or radio, are to follow in the next
2448 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2449 	 * Otherwise, it is set to 0.
2450 	 */
2451 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2452 
2453 	/* Unsigned 64 bit value */
2454 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2455 
2456 	/* Unsigned 32 bit value */
2457 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2458 
2459 	/* Unsigned 32 bit value */
2460 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2461 
2462 	/* Unsigned 32 bit value */
2463 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2464 
2465 	/* Unsigned 32 bit value */
2466 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2467 
2468 	/* Unsigned 32 bit value */
2469 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2470 
2471 	/* Number of msecs the radio spent in transmitting for each power level
2472 	 */
2473 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2474 
2475 	/* Unsigned 32 bit value */
2476 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2477 	/* Unsigned 32 bit value */
2478 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2479 	/* Unsigned 32 bit value */
2480 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2481 	/* Unsigned 32 bit value */
2482 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2483 
2484 	/* Unsigned int 32 value.
2485 	 * Pending MSDUs corresponding to respective AC.
2486 	 */
2487 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2488 
2489 	/* u32 value representing total time in milliseconds for which the radio
2490 	 * is transmitting on this channel. This attribute will be nested
2491 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2492 	 */
2493 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
2494 	/* u32 value representing total time in milliseconds for which the radio
2495 	 * is receiving all 802.11 frames intended for this device on this
2496 	 * channel. This attribute will be nested within
2497 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2498 	 */
2499 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
2500 	/* u8 value representing the channel load percentage. Possible values
2501 	 * are 0-100.
2502 	 */
2503 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
2504 	/* u8 value representing the time slicing duty cycle percentage.
2505 	 * Possible values are 0-100.
2506 	 */
2507 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
2508 	/* Unsigned 32 bit value. The number of Beacon frames which are received
2509 	 * from the associated AP and indicate buffered unicast frame(s) for us
2510 	 * in the TIM element.
2511 	 */
2512 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
2513 	/* Unsigned 32 bit value. The total number of Beacon frames received
2514 	 * from the associated AP that have wrongly indicated buffered unicast
2515 	 * traffic in the TIM element for us.
2516 	 * Below scenarios will be considered as wrong TIM element beacon:
2517 	 * 1) The related TIM element is set in the beacon for STA but STA
2518 	 *    doesn’t receive any unicast data after this beacon.
2519 	 * 2) The related TIM element is still set in the beacon for STA
2520 	 *    after STA has indicated power save exit by QoS Null Data frame.
2521 	 */
2522 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
2523 
2524 	/* keep last */
2525 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2526 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2527 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2528 };
2529 
2530 enum qca_wlan_vendor_attr_ll_stats_type {
2531 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2532 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2533 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2534 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2535 
2536 	/* keep last */
2537 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2538 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2539 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2540 };
2541 
2542 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2543 
2544 /**
2545  * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2546  *
2547  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2548  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2549  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2550  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2551  */
2552 enum qca_wlan_vendor_attr_get_supported_features {
2553 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2554 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2555 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2556 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2557 		QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2558 };
2559 
2560 /**
2561  * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2562  *
2563  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2564  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2565  *	value
2566  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2567  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2568  */
2569 enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2570 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2571 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2572 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2573 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2574 		QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2575 };
2576 
2577 /**
2578  * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2579  * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2580  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2581  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2582  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2583  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2584  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2585  */
2586 enum qca_wlan_vendor_scan_priority {
2587 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2588 	QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2589 	QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2590 	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2591 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2592 };
2593 
2594 /**
2595  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2596  *
2597  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2598  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2599  *	with frequencies to be scanned (in MHz)
2600  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2601  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2602  *	rates to be included
2603  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2604  *	at non CCK rate in 2GHz band
2605  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2606  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2607  *	driver for the specific scan request
2608  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2609  *	request decoded as in enum scan_status
2610  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2611  *	scan flag is set
2612  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2613  *	randomisation
2614  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2615  *	specific BSSID to scan for.
2616  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2617  *	microseconds. This is a common value which applies across all
2618  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
2619  * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2620  *      other scan requests. It is a u32 attribute and takes values from enum
2621  *      qca_wlan_vendor_scan_priority. This is an optional attribute.
2622  *      If this attribute is not configured, the driver shall use
2623  *      QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
2624  */
2625 enum qca_wlan_vendor_attr_scan {
2626 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2627 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2628 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2629 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2630 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2631 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2632 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2633 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2634 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2635 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2636 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2637 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
2638 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
2639 	QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
2640 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2641 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2642 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2643 };
2644 
2645 /**
2646  * enum scan_status - Specifies the valid values the vendor scan attribute
2647  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2648  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2649  *	new scan results
2650  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2651  */
2652 enum scan_status {
2653 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2654 	VENDOR_SCAN_STATUS_ABORTED,
2655 	VENDOR_SCAN_STATUS_MAX,
2656 };
2657 
2658 /**
2659  * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2660  *
2661  * NL attributes for data used by
2662  * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2663  *
2664  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2665  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2666  *	Unsigned 32-bit value
2667  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
2668  *	Unsigned 32-bit value
2669  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
2670  *	array of SET_SIZE x Unsigned 32bit values representing concurrency
2671  *	combinations
2672  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
2673  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
2674  */
2675 enum qca_wlan_vendor_attr_get_concurrency_matrix {
2676 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
2677 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
2678 									= 1,
2679 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
2680 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
2681 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
2682 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
2683 		QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
2684 };
2685 
2686 /**
2687  * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
2688  *
2689  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
2690  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
2691  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
2692  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
2693  */
2694 enum qca_wlan_vendor_attr_set_no_dfs_flag {
2695 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
2696 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
2697 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
2698 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
2699 		QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
2700 };
2701 
2702 /**
2703  * enum qca_vendor_attr_wisa_cmd
2704  * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
2705  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
2706  * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
2707  * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
2708  * WISA setup vendor commands
2709  */
2710 enum qca_vendor_attr_wisa_cmd {
2711 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2712 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2713 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2714 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2715 		QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2716 };
2717 
2718 enum qca_roaming_policy {
2719 	QCA_ROAMING_NOT_ALLOWED,
2720 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
2721 };
2722 
2723 /**
2724  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
2725  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
2726  *
2727  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
2728  * reasons.
2729  *
2730  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
2731  * the configured threshold.
2732  *
2733  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
2734  * beacon misses from the then connected AP.
2735  *
2736  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
2737  * by the connected AP.
2738  *
2739  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
2740  * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
2741  * not poor.
2742  *
2743  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
2744  * or environment being very noisy / congested.
2745  *
2746  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
2747  * from the user (user space).
2748  *
2749  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
2750  * connected AP.
2751  *
2752  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
2753  * breaching out the configured threshold.
2754  *
2755  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
2756  * transition request.
2757  *
2758  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
2759  * there is no data activity with the AP and the current rssi falls below a
2760  * certain threshold.
2761  *
2762  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
2763  * deauthentication or disassociation frames received from the connected AP.
2764  *
2765  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
2766  * scan that happens when there is no candiate AP found during the poor
2767  * RSSI scan trigger.
2768  *
2769  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
2770  * results obtained from an external scan (not aimed at roaming).
2771  *
2772  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
2773  * connection is established when the station is connected in 2.4 Ghz band.
2774  */
2775 enum qca_roam_reason {
2776 	QCA_ROAM_REASON_UNKNOWN,
2777 	QCA_ROAM_REASON_PER,
2778 	QCA_ROAM_REASON_BEACON_MISS,
2779 	QCA_ROAM_REASON_POOR_RSSI,
2780 	QCA_ROAM_REASON_BETTER_RSSI,
2781 	QCA_ROAM_REASON_CONGESTION,
2782 	QCA_ROAM_REASON_USER_TRIGGER,
2783 	QCA_ROAM_REASON_BTM,
2784 	QCA_ROAM_REASON_BSS_LOAD,
2785 	QCA_ROAM_REASON_WTC,
2786 	QCA_ROAM_REASON_IDLE,
2787 	QCA_ROAM_REASON_DISCONNECTION,
2788 	QCA_ROAM_REASON_PERIODIC_TIMER,
2789 	QCA_ROAM_REASON_BACKGROUND_SCAN,
2790 	QCA_ROAM_REASON_BT_ACTIVITY,
2791 };
2792 
2793 /**
2794  * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
2795  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP
2796  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
2797  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
2798  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
2799  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
2800  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
2801  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
2802  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
2803  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
2804  * Indicates the status of re-association requested by user space for
2805  * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
2806  * Type u16.
2807  * Represents the status code from AP. Use
2808  * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
2809  * real status code for failures.
2810  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
2811  * This attribute indicates that the old association was maintained when
2812  * a re-association is requested by user space and that re-association
2813  * attempt fails (i.e., cannot connect to the requested BSS, but can
2814  * remain associated with the BSS with which the association was in
2815  * place when being requested to roam). Used along with
2816  * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
2817  * re-association status. Type flag.
2818  * This attribute is applicable only for re-association failure cases.
2819  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
2820  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
2821  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
2822  * seq number
2823  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
2824  * representing the reasons for the roaming. Defined by enum
2825  * qca_roam_reason.
2826  */
2827 enum qca_wlan_vendor_attr_roam_auth {
2828 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
2829 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
2830 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
2831 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
2832 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
2833 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
2834 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
2835 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
2836 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
2837 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
2838 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
2839 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
2840 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
2841 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
2842 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
2843 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
2844 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
2845 		QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
2846 };
2847 
2848 /**
2849  * enum qca_wlan_vendor_attr_wifi_config - wifi config
2850  *
2851  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
2852  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
2853  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
2854  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
2855  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
2856  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
2857  */
2858 enum qca_wlan_vendor_attr_wifi_config {
2859 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
2860 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
2861 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
2862 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
2863 
2864 	/* keep last */
2865 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
2866 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
2867 		QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
2868 };
2869 
2870 /**
2871  * enum qca_wlan_epno_type - the type of request to the EPNO command
2872  * @QCA_WLAN_EPNO: epno type request
2873  * @QCA_WLAN_PNO: pno type request
2874  */
2875 enum qca_wlan_epno_type {
2876 	QCA_WLAN_EPNO,
2877 	QCA_WLAN_PNO
2878 };
2879 
2880 /**
2881  * enum qca_wlan_vendor_attr_pno_config_params - pno config params
2882  *
2883  * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
2884  *
2885  *	NL attributes for data used by
2886  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
2887  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
2888  *	Unsigned 32-bit value; pno passpoint number of networks
2889  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
2890  *	Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
2891  *	attributes. Array size =
2892  *	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
2893  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
2894  *	Unsigned 32-bit value; network id
2895  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
2896  *	An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
2897  *	realm, 0 if unspecified.
2898  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
2899  *	An array of 16 x Unsigned 32-bit value; roaming consortium ids
2900  *	to match, 0 if unspecified.
2901  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
2902  *	An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
2903  *	unspecified.
2904  *
2905  *	NL attributes for data used by
2906  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
2907  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
2908  *	Unsigned 32-bit value; set pno number of networks
2909  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
2910  *	Array of nested
2911  *	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
2912  *	attributes. Array size =
2913  *		QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
2914  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
2915  *	An array of 33 x Unsigned 8-bit value; NULL terminated SSID
2916  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
2917  *	Signed 8-bit value; threshold for considering this SSID as found,
2918  *	required granularity for this threshold is 4dBm to 8dBm
2919  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
2920  *	Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
2921  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
2922  *	Unsigned 8-bit value; auth bit field for matching WPA IE
2923  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
2924  *	Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
2925  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
2926  *	Nested attribute to send the channel list
2927  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
2928  *	Unsigned 32-bit value; indicates the Interval between PNO scan
2929  *	cycles in msec
2930  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
2931  *	Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
2932  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
2933  *	Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
2934  *	This attribute is obsolete now.
2935  *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
2936  *	Signed 32-bit value; the maximum score that a network
2937  *	can have before bonuses
2938  *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
2939  *	Signed 32-bit value; only report when there is a network's
2940  *	score this much higher han the current connection
2941  *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
2942  *	Signed 32-bit value; score bonus for all networks with
2943  *	the same network flag
2944  *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
2945  *	Signed 32-bit value; score bonus for networks that are not open
2946  *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
2947  *	Signed 32-bit value; 5GHz RSSI score bonus applied to all
2948  *	5GHz networks
2949  *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
2950  *	Unsigned 32-bit value, representing the PNO Request ID
2951  * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
2952  * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
2953  */
2954 enum qca_wlan_vendor_attr_pno_config_params {
2955 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
2956 
2957 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
2958 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
2959 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
2960 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
2961 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
2962 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
2963 
2964 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
2965 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
2966 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
2967 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
2968 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
2969 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
2970 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
2971 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
2972 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
2973 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
2974 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
2975 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
2976 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
2977 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
2978 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
2979 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
2980 
2981 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
2982 	/* keep last */
2983 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
2984 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
2985 		QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
2986 };
2987 
2988 /**
2989  * enum qca_scan_freq_list_type: Frequency list types
2990  *
2991  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
2992  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
2993  *	a preferred frequency list for roaming.
2994  *
2995  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
2996  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
2997  *	a specific frequency list for roaming.
2998  */
2999 enum qca_scan_freq_list_type {
3000 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
3001 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
3002 };
3003 
3004 /**
3005  * enum qca_roam_scan_scheme: scan scheme
3006  *
3007  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
3008  *	Indicates the driver to not scan on a Roam Trigger scenario, but
3009  *	Disconnect.e.g., On a BTM request from the AP driver/firmware shall
3010  *	disconnect from the current connected AP by notifying a failure
3011  *	code in the BTM response.
3012  *
3013  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
3014  *	trigger partial frequency scans. These frequencies are the ones learnt
3015  *	or maintained by the driver based on the probability of finding the
3016  *	BSSID's in the ESS for which the roaming is triggered.
3017  *
3018  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
3019  *	trigger the scan on all the valid frequencies to find the better
3020  *	candidates to roam.
3021  */
3022 enum qca_roam_scan_scheme {
3023 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
3024 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
3025 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
3026 };
3027 
3028 /**
3029  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
3030  *
3031  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
3032  *	List of frequencies in MHz to be considered for a roam scan.
3033  *
3034  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
3035  *	Type of frequency list scheme being configured/gotten as defined by the
3036  *	enum qca_scan_freq_list_type.
3037  */
3038 enum qca_vendor_attr_scan_freq_list_scheme {
3039 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
3040 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
3041 
3042 	/* keep last */
3043 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
3044 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
3045 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
3046 };
3047 
3048 /*
3049  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
3050  *
3051  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
3052  *	a bad packet error rates (PER).
3053  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
3054  *	based on beacon misses from the connected AP.
3055  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
3056  *	due to poor RSSI of the connected AP.
3057  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
3058  *	upon finding a BSSID with a better RSSI than the connected BSSID.
3059  *	Here the RSSI of the current BSSID need not be poor.
3060  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
3061  *	by triggering a periodic scan to find a better AP to roam.
3062  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
3063  *	when the connected channel environment is too noisy/congested.
3064  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
3065  *	when BTM Request frame is received from the connected AP.
3066  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
3067  *	when the channel utilization is goes above the configured threshold.
3068  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
3069  *	based on the request from the user (space).
3070  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
3071  *	device receives Deauthentication/Disassociation frame from connected
3072  *	AP.
3073  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
3074  *	DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
3075  *	is determined to be a poor one.
3076  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
3077  *	based on continuous TX Data Frame failures to the connected AP.
3078  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
3079  *	based on the scan results obtained from an external scan (not
3080  *	triggered to aim roaming)
3081  *
3082  * Set the corresponding roam trigger reason bit to consider it for roam
3083  * trigger.
3084  * Userspace can set multiple bits and send to the driver. The driver shall
3085  * consider all of them to trigger/initiate a roam scan.
3086  */
3087 enum qca_vendor_roam_triggers {
3088 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
3089 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
3090 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
3091 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
3092 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
3093 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
3094 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
3095 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
3096 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
3097 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
3098 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
3099 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
3100 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
3101 };
3102 
3103 /*
3104  * enum qca_vendor_roam_fail_reasons: Defines the various roam
3105  * fail reasons. This enum value is used in
3106  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
3107  *
3108  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
3109  * able to trigger the scan.
3110  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
3111  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
3112  * scan.
3113  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
3114  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
3115  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
3116  * status code.
3117  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
3118  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
3119  * frame.
3120  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
3121  * with error status code.
3122  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
3123  * received.
3124  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
3125  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
3126  * frame.
3127  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
3128  * internally before transmission.
3129  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
3130  * Request frame.
3131  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
3132  * dropped internally.
3133  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
3134  * times out.
3135  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
3136  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
3137  * internally.
3138  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
3139  * M2 frame.
3140  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
3141  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
3142  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
3143  * internally.
3144  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
3145  * frame.
3146  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
3147  * started for final beacon miss case.
3148  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
3149  * received from the AP during roaming handoff.
3150  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
3151  * or host is suspended and gives the indication of the last roamed AP only
3152  * when the Apps is resumed. If the Apps is resumed while the roaming is in
3153  * progress, this ongoing roaming is aborted and the last roamed AP is
3154  * indicated to host.
3155  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
3156  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
3157  * out.
3158  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
3159  */
3160 enum qca_vendor_roam_fail_reasons {
3161 	QCA_ROAM_FAIL_REASON_NONE = 0,
3162 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
3163 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
3164 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
3165 	QCA_ROAM_FAIL_REASON_HOST = 4,
3166 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
3167 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
3168 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
3169 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
3170 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
3171 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
3172 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
3173 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
3174 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
3175 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
3176 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
3177 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
3178 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
3179 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
3180 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
3181 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
3182 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
3183 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
3184 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
3185 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
3186 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
3187 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
3188 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
3189 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
3190 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
3191 };
3192 
3193 /*
3194  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
3195  * invoke fail reasons. This enum value is used in
3196  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
3197  *
3198  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
3199  * in roam invoke command.
3200  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
3201  * enabled.
3202  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
3203  * length is invalid.
3204  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
3205  * in progress.
3206  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
3207  * of the AP in the roam invoke command to firmware. This reason is sent by the
3208  * firmware when the given AP is configured to be ignored or SSID/security
3209  * does not match.
3210  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
3211  * firmware internal reasons.
3212  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
3213  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
3214  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
3215  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
3216  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
3217  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
3218  */
3219 enum qca_vendor_roam_invoke_fail_reasons {
3220 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
3221 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
3222 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
3223 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
3224 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
3225 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
3226 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
3227 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
3228 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
3229 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
3230 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
3231 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
3232 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
3233 
3234 };
3235 
3236 /**
3237  * enum qca_vendor_attr_roam_candidate_selection_criteria:
3238  *
3239  * Each attribute carries a weightage in percentage (%).
3240  *
3241  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
3242  *	Represents the weightage to be given for the RSSI selection
3243  *	criteria among other parameters.
3244  *
3245  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
3246  *	Represents the weightage to be given for the rate selection
3247  *	criteria among other parameters.
3248  *
3249  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
3250  *	Represents the weightage to be given for the band width selection
3251  *	criteria among other parameters.
3252  *
3253  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
3254  *	Represents the weightage to be given for the band selection
3255  *	criteria among other parameters.
3256  *
3257  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
3258  *	Represents the weightage to be given for the NSS selection
3259  *	criteria among other parameters.
3260  *
3261  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
3262  *	Represents the weightage to be given for the channel congestion
3263  *	selection criteria among other parameters.
3264  *
3265  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
3266  *	Represents the weightage to be given for the beamforming selection
3267  *	criteria among other parameters.
3268  *
3269  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
3270  *	Represents the weightage to be given for the OCE selection
3271  *	criteria among other parameters.
3272  */
3273 enum qca_vendor_attr_roam_candidate_selection_criteria {
3274 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
3275 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
3276 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
3277 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
3278 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
3279 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
3280 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
3281 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
3282 
3283 	/* keep last */
3284 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
3285 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
3286 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
3287 };
3288 
3289 /**
3290  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
3291  *	The following attributes are used to set/get/clear the respective
3292  *	configurations to/from the driver.
3293  *	For the get, the attribute for the configuration to be queried shall
3294  *	carry any of its acceptable values to the driver. In return, the driver
3295  *	shall send the configured values within the same attribute to the user
3296  *	space.
3297  *
3298  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
3299  *	Signifies to enable/disable roam control in driver.
3300  *	1-enable, 0-disable
3301  *	Enable: Mandates the driver to do the further roams using the
3302  *	configuration parameters set through
3303  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
3304  *	Disable: Disables the driver/firmware roaming triggered through
3305  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
3306  *	expected to continue with the default configurations.
3307  *
3308  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
3309  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
3310  *	Roam control status is obtained through this attribute.
3311  *
3312  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
3313  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
3314  *	is to be cleared in the driver.
3315  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
3316  *	and shall be ignored if used with other sub commands.
3317  *	If this attribute is specified along with subcmd
3318  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
3319  *	all other attributes, if there are any.
3320  *	If this attribute is not specified when the subcmd
3321  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
3322  *	clear the data corresponding to the attributes specified.
3323  *
3324  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
3325  *	list of frequencies and its type, represented by
3326  *	enum qca_vendor_attr_scan_freq_list_scheme.
3327  *	Frequency list and its type are mandatory for this attribute to set
3328  *	the frequencies.
3329  *	Frequency type is mandatory for this attribute to get the frequencies
3330  *	and the frequency list is obtained through
3331  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
3332  *	Frequency list type is mandatory for this attribute to clear the
3333  *	frequencies.
3334  *
3335  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
3336  *	Carries the value of scan period in seconds to set.
3337  *	The value of scan period is obtained with the same attribute for get.
3338  *	Clears the scan period in the driver when specified with clear command.
3339  *	Scan period is the idle time in seconds between each subsequent
3340  *	channel scans.
3341  *
3342  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
3343  *	Carries the value of full scan period in seconds to set.
3344  *	The value of full scan period is obtained with the same attribute for
3345  *	get.
3346  *	Clears the full scan period in the driver when specified with clear
3347  *	command. Full scan period is the idle period in seconds between two
3348  *	successive full channel roam scans.
3349  *
3350  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
3351  *	Carries a bitmap of the roam triggers specified in
3352  *	enum qca_vendor_roam_triggers.
3353  *	The driver shall enable roaming by enabling corresponding roam triggers
3354  *	based on the trigger bits sent with this attribute.
3355  *	If this attribute is not configured, the driver shall proceed with
3356  *	default behavior.
3357  *	The bitmap configured is obtained with the same attribute for get.
3358  *	Clears the bitmap configured in driver when specified with clear
3359  *	command.
3360  *
3361  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
3362  *	weightage in percentage (%) to be given for each selection criteria.
3363  *	Different roam candidate selection criteria are represented by
3364  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
3365  *	The driver shall select the roam candidate based on corresponding
3366  *	candidate selection scores sent.
3367  *
3368  *	An empty nested attribute is used to indicate that no specific
3369  *	preference score/criteria is configured (i.e., to disable this mechanism
3370  *	in the set case and to show that the mechanism is disabled in the get
3371  *	case).
3372  *
3373  *	Userspace can send multiple attributes out of this enum to the driver.
3374  *	Since this attribute represents the weight/percentage of preference for
3375  *	the respective selection criteria, it is preferred to configure 100%
3376  *	total weightage. The value in each attribute or cumulative weight of the
3377  *	values in all the nested attributes should not exceed 100%. The driver
3378  *	shall reject such configuration.
3379  *
3380  *	If the weights configured through this attribute are less than 100%,
3381  *	the driver shall honor the weights (x%) passed for the corresponding
3382  *	selection criteria and choose/distribute rest of the weight (100-x)%
3383  *	for the other selection criteria, based on its internal logic.
3384  *
3385  *	The selection criteria configured is obtained with the same
3386  *	attribute for get.
3387  *
3388  *	Clears the selection criteria configured in the driver when specified
3389  *	with clear command.
3390  *
3391  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
3392  *	Represents value of scan frequency scheme from
3393  *      enum qca_roam_scan_scheme.
3394  *
3395  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3396  *	signifying the RSSI threshold of the current connected AP, indicating
3397  *	the driver to trigger roam only when the current connected AP's RSSI
3398  *	is lesser than this threshold.
3399  *
3400  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3401  *	signifying the RSSI threshold of the candidate AP, indicating
3402  *	the driver to trigger roam only to the candidate AP with RSSI
3403  *	better than this threshold. If RSSI thresholds for candidate APs found
3404  *	in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
3405  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
3406  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
3407  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
3408  *	will take precedence over the value configured using
3409  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
3410  *
3411  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
3412  *	user triggered reason code to be sent to the AP in response to AP's
3413  *	request to trigger the roam if the roaming cannot be triggered.
3414  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
3415  *
3416  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
3417  *	Carries a bitmap of the roam triggers specified in
3418  *	enum qca_vendor_roam_triggers.
3419  *	Represents the roam triggers for which the specific scan scheme from
3420  *	enum qca_roam_scan_scheme has to be applied.
3421  *	It's an optional attribute. If this attribute is not configured, but
3422  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
3423  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
3424  *	all the roams.
3425  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
3426  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
3427  *	driver shall proceed with the default behavior.
3428  *
3429  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
3430  *	in dBm, signifying the RSSI threshold of the candidate AP found in
3431  *	2.4GHz band. The driver/firmware shall trigger roaming to the candidate
3432  *	AP found in 2.4GHz band only if it's RSSI value is better than this
3433  *	threshold. Optional attribute. If this attribute is not included, then
3434  *	threshold value specified by the
3435  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3436  *
3437  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
3438  *	dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
3439  *	band. The driver/firmware shall trigger roaming to the candidate AP
3440  *	found in 5GHz band only if it's RSSI value is better than this
3441  *	threshold. Optional attribute. If this attribute is not included, then
3442  *	threshold value specified by the
3443  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3444  *
3445  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
3446  *	dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
3447  *	band. The driver/firmware shall trigger roaming to the candidate AP
3448  *	found in 6GHz band only if it's RSSI value is better than this
3449  *	threshold. Optional attribute. If this attribute is not included, then
3450  *	threshold value specified by the
3451  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3452  *
3453  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
3454  *	Carries bitmask value of bits from &enum qca_set_band and represents
3455  *	all the bands in which roaming is allowed. The configuration is valid
3456  *	until next disconnection. If this attribute is not present, the
3457  *	existing configuration shall be used. By default, roaming is allowed
3458  *	on all bands supported by local device. When the value is set to
3459  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
3460  *
3461  * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
3462  *	Optional parameter. RX link speed threshold to disable roaming.
3463  *	If the current RX link speed is above the threshold, roaming is not
3464  *	needed. If this attribute is not configured, or if it is set to 0, the
3465  *	driver will not consider the RX link speed in the roaming decision.
3466  */
3467 enum qca_vendor_attr_roam_control {
3468 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
3469 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
3470 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
3471 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
3472 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
3473 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
3474 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
3475 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
3476 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
3477 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
3478 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
3479 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
3480 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
3481 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
3482 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
3483 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
3484 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
3485 	QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
3486 
3487 	/* keep last */
3488 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
3489 	QCA_ATTR_ROAM_CONTROL_MAX =
3490 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
3491 };
3492 
3493 /**
3494  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
3495  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3496  *
3497  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
3498  *	Represents the different roam sub commands referred by
3499  *	enum qca_wlan_vendor_roaming_subcmd.
3500  *
3501  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
3502  *	Represents the Request ID for the specific set of commands.
3503  *	This also helps to map specific set of commands to the respective
3504  *	ID / client. e.g., helps to identify the user entity configuring the
3505  *	Blacklist BSSID and accordingly clear the respective ones with the
3506  *	matching ID.
3507  *
3508  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
3509  *	32-bit value.Represents the number of whitelist SSIDs configured.
3510  *
3511  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
3512  *	to carry the list of Whitelist SSIDs.
3513  *
3514  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
3515  *	0..32 octets). Represents the white list SSID. Whitelist SSIDs
3516  *	represent the list of SSIDs to which the firmware/driver can consider
3517  *	to roam to.
3518  *
3519  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
3520  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
3521  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
3522  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
3523  *
3524  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
3525  *	value, RSSI threshold above which 5GHz RSSI is favored.
3526  *
3527  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
3528  *	value, RSSI threshold below which 5GHz RSSI is penalized.
3529  *
3530  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
3531  *	value, factor by which 5GHz RSSI is boosted.
3532  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
3533  *
3534  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
3535  *	value, factor by which 5GHz RSSI is penalized.
3536  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3537  *
3538  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3539  *	value, maximum boost that can be applied to a 5GHz RSSI.
3540  *
3541  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3542  *	value, boost applied to current BSSID to ensure the currently
3543  *	associated BSSID is favored so as to prevent ping-pong situations.
3544  *
3545  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3546  *	value, RSSI below which "Alert" roam is enabled.
3547  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3548  *	because the RSSI is low, or because many successive beacons have been
3549  *	lost or other bad link conditions.
3550  *
3551  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3552  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3553  *	firmware is hunting for a better BSSID or white listed SSID even though
3554  *	the RSSI of the link is good. The parameters enabling the roaming are
3555  *	configured through the PARAM_A_BAND_XX attrbutes.
3556  *
3557  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3558  *	represents the BSSIDs preferred over others while evaluating them
3559  *	for the roaming.
3560  *
3561  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3562  *	32-bit value. Represents the number of preferred BSSIDs set.
3563  *
3564  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3565  *	address representing the BSSID to be preferred.
3566  *
3567  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3568  *	32-bit value, representing the modifier to be applied to the RSSI of
3569  *	the BSSID for the purpose of comparing it with other roam candidate.
3570  *
3571  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3572  *	represents the BSSIDs to get blacklisted for roaming.
3573  *
3574  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3575  *	32-bit value, represents the number of blacklisted BSSIDs.
3576  *
3577  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3578  *	address representing the Blacklisted BSSID.
3579  *
3580  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3581  *	indicates this BSSID blacklist as a hint to the driver. The driver can
3582  *	select this BSSID in the worst case (when no other BSSIDs are better).
3583  *
3584  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3585  *	set/get/clear the roam control config as
3586  *	defined @enum qca_vendor_attr_roam_control.
3587  *
3588  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
3589  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
3590  */
3591 enum qca_wlan_vendor_attr_roaming_config_params {
3592 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3593 
3594 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3595 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3596 
3597 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3598 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3599 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3600 
3601 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3602 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3603 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3604 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3605 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3606 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3607 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3608 
3609 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3610 
3611 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3612 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3613 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3614 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3615 
3616 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3617 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3618 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
3619 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
3620 
3621 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
3622 
3623 	/* keep last */
3624 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3625 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3626 		QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3627 };
3628 
3629 /**
3630  * enum qca_wlan_vendor_roaming_subcmd: Referred by
3631  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
3632  *
3633  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
3634  *	configure the white list SSIDs. These are configured through
3635  *	the following attributes.
3636  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3637  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3638  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3639  *
3640  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
3641  *	configure the Roam params. These parameters are evaluated on the extscan
3642  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
3643  *	params.
3644  *
3645  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
3646  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3647  *	to enable/disable Lazy roam.
3648  *
3649  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
3650  *	preference. Contains the attribute
3651  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
3652  *	preference.
3653  *
3654  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
3655  *
3656  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
3657  *	BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
3658  *	set the same.
3659  *
3660  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
3661  *	roam control config to the driver with the attribute
3662  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3663  *
3664  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
3665  *	roam control config from driver with the attribute
3666  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3667  *	For the get, the attribute for the configuration to be queried shall
3668  *	carry any of its acceptable value to the driver. In return, the driver
3669  *	shall send the configured values within the same attribute to the user
3670  *	space.
3671  *
3672  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
3673  *	roam control config in the driver with the attribute
3674  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3675  *	The driver shall continue with its default roaming behavior when data
3676  *	corresponding to an attribute is cleared.
3677  */
3678 enum qca_wlan_vendor_roaming_subcmd {
3679 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
3680 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
3681 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
3682 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
3683 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
3684 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
3685 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
3686 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
3687 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
3688 };
3689 
3690 /**
3691  * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
3692  *
3693  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
3694  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
3695  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
3696  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
3697  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
3698  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
3699  */
3700 enum qca_wlan_vendor_attr_get_wifi_info {
3701 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3702 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION     = 1,
3703 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION   = 2,
3704 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX        = 3,
3705 
3706 	/* KEEP LAST */
3707 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3708 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX  =
3709 		QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3710 };
3711 
3712 enum qca_wlan_vendor_attr_logger_results {
3713 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3714 
3715 	/*
3716 	 * Unsigned 32-bit value; must match the request Id supplied by
3717 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
3718 	 */
3719 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3720 
3721 	/*
3722 	 * Unsigned 32-bit value; used to indicate the size of memory
3723 	 * dump to be allocated.
3724 	 */
3725 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3726 
3727 	/* keep last */
3728 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3729 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3730 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3731 };
3732 
3733 /**
3734  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3735  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3736  */
3737 enum qca_wlan_vendor_channel_prop_flags {
3738 	/* Bits 0, 1, 2, and 3 are reserved */
3739 
3740 	/* Turbo channel */
3741 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
3742 	/* CCK channel */
3743 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
3744 	/* OFDM channel */
3745 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
3746 	/* 2.4 GHz spectrum channel. */
3747 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
3748 	/* 5 GHz spectrum channel */
3749 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
3750 	/* Only passive scan allowed */
3751 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
3752 	/* Dynamic CCK-OFDM channel */
3753 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
3754 	/* GFSK channel (FHSS PHY) */
3755 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
3756 	/* Radar found on channel */
3757 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
3758 	/* 11a static turbo channel only */
3759 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
3760 	/* Half rate channel */
3761 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
3762 	/* Quarter rate channel */
3763 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
3764 	/* HT 20 channel */
3765 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
3766 	/* HT 40 with extension channel above */
3767 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
3768 	/* HT 40 with extension channel below */
3769 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
3770 	/* HT 40 intolerant */
3771 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
3772 	/* VHT 20 channel */
3773 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
3774 	/* VHT 40 with extension channel above */
3775 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
3776 	/* VHT 40 with extension channel below */
3777 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
3778 	/* VHT 80 channel */
3779 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
3780 	/* HT 40 intolerant mark bit for ACS use */
3781 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3782 	/* Channel temporarily blocked due to noise */
3783 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
3784 	/* VHT 160 channel */
3785 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
3786 	/* VHT 80+80 channel */
3787 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
3788 	/* HE 20 channel */
3789 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
3790 	/* HE 40 with extension channel above */
3791 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
3792 	/* HE 40 with extension channel below */
3793 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
3794 	/* HE 40 intolerant */
3795 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1 << 31,
3796 };
3797 
3798 /**
3799  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3800  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3801  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3802  */
3803 enum qca_wlan_vendor_channel_prop_flags_2 {
3804 	/* HE 40 intolerant mark bit for ACS use */
3805 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3806 	/* HE 80 channel */
3807 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
3808 	/* HE 160 channel */
3809 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
3810 	/* HE 80+80 channel */
3811 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
3812 };
3813 
3814 /**
3815  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3816  * each channel. This is used by
3817  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3818  */
3819 enum qca_wlan_vendor_channel_prop_flags_ext {
3820 	/* Radar found on channel */
3821 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
3822 	/* DFS required on channel */
3823 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
3824 	/* DFS required on channel for 2nd band of 80+80 */
3825 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
3826 	/* If channel has been checked for DFS */
3827 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
3828 	/* Excluded in 802.11d */
3829 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
3830 	/* Channel Switch Announcement received on this channel */
3831 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
3832 	/* Ad-hoc is not allowed */
3833 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
3834 	/* Station only channel */
3835 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3836 	/* DFS radar history for slave device (STA mode) */
3837 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
3838 	/* DFS CAC valid for slave device (STA mode) */
3839 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
3840 };
3841 
3842 /**
3843  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3844  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3845  * information to start/stop the NUD statistics collection.
3846  */
3847 enum qca_attr_nud_stats_set {
3848 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
3849 
3850 	/*
3851 	 * Flag to start/stop the NUD statistics collection.
3852 	 * Start - If included, Stop - If not included
3853 	 */
3854 	QCA_ATTR_NUD_STATS_SET_START = 1,
3855 	/* IPv4 address of the default gateway (in network byte order) */
3856 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
3857 	/*
3858 	 * Represents the data packet type to be monitored.
3859 	 * Host driver tracks the stats corresponding to each data frame
3860 	 * represented by these flags.
3861 	 * These data packets are represented by
3862 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
3863 	 */
3864 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
3865 	/* keep last */
3866 	QCA_ATTR_NUD_STATS_SET_LAST,
3867 	QCA_ATTR_NUD_STATS_SET_MAX =
3868 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
3869 };
3870 
3871 /**
3872  * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
3873  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3874  *	information to start / stop the NUD stats collection.
3875  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
3876  *	Bitmap to Flag to Start / Stop the NUD stats collection
3877  *	Start - If included , Stop - If not included
3878  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
3879  *	IPv4 address of Default Gateway (in network byte order)
3880  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3881  *	information to start / stop the NUD stats collection.
3882  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
3883  *	Flag to Start / Stop the NUD stats collection
3884  *	Start - If included , Stop - If not included
3885  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
3886  *	IPv4 address of Default Gateway (in network byte order)
3887  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3888  *	information to start / stop the NUD stats collection.
3889  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
3890  *	Flag to Start / Stop the NUD stats collection
3891  *	Start - If included , Stop - If not included
3892  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
3893  *	IPv4 address of Default Gateway (in network byte order)
3894  */
3895 enum qca_attr_connectivity_check_stats_set {
3896 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
3897 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
3898 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
3899 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
3900 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
3901 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
3902 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
3903 	/* keep last */
3904 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
3905 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
3906 		QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
3907 };
3908 
3909 /**
3910  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
3911  * data types for which the stats have to get collected.
3912  */
3913 enum qca_wlan_vendor_connectivity_check_pkt_flags {
3914 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
3915 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
3916 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
3917 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
3918 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
3919 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
3920 	 * to represent the stats of respective data type.
3921 	 */
3922 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
3923 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
3924 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
3925 };
3926 
3927 enum qca_attr_connectivity_check_stats {
3928 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
3929 	/* Data packet type for which the stats are collected.
3930 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
3931 	 */
3932 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
3933 	/* ID corresponding to the DNS frame for which the respective DNS stats
3934 	 * are monitored (u32).
3935 	 */
3936 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
3937 	/* source / destination port on which the respective proto stats are
3938 	 * collected (u32).
3939 	 */
3940 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
3941 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
3942 	/* IPv4/IPv6 address for which the destined data packets are
3943 	 * monitored. (in network byte order)
3944 	 */
3945 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
3946 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
3947 	/* Data packet Request count received from netdev */
3948 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
3949 	/* Data packet Request count sent to lower MAC from upper MAC */
3950 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
3951 	/* Data packet Request count received by lower MAC from upper MAC */
3952 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
3953 	/* Data packet Request count successfully transmitted by the device */
3954 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
3955 	/* Data packet Response count received by lower MAC */
3956 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
3957 	/* Data packet Response count received by upper MAC */
3958 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
3959 	/* Data packet Response count delivered to netdev */
3960 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
3961 	/* Data Packet Response count that are dropped out of order */
3962 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
3963 
3964 	/* keep last */
3965 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
3966 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
3967 		QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
3968 };
3969 
3970 /**
3971  * qca_attr_nud_stats_get: Attributes to vendor subcmd
3972  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
3973  * NUD statistics collected when queried.
3974  */
3975 enum qca_attr_nud_stats_get {
3976 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
3977 	/* ARP Request count from netdev */
3978 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
3979 	/* ARP Request count sent to lower MAC from upper MAC */
3980 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
3981 	/* ARP Request count received by lower MAC from upper MAC */
3982 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
3983 	/* ARP Request count successfully transmitted by the device */
3984 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
3985 	/* ARP Response count received by lower MAC */
3986 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
3987 	/* ARP Response count received by upper MAC */
3988 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
3989 	/* ARP Response count delivered to netdev */
3990 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
3991 	/* ARP Response count delivered to netdev */
3992 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
3993 	/*
3994 	 * Flag indicating if the station's link to the AP is active.
3995 	 * Active Link - If included, Inactive link - If not included
3996 	 */
3997 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
3998 	/*
3999 	 * Flag indicating if there is any duplicate address detected (DAD).
4000 	 * Yes - If detected, No - If not detected.
4001 	 */
4002 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
4003 	/*
4004 	 * List of Data types for which the stats are requested.
4005 	 * This list does not carry ARP stats as they are done by the
4006 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
4007 	 */
4008 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
4009 	/* keep last */
4010 	QCA_ATTR_NUD_STATS_GET_LAST,
4011 	QCA_ATTR_NUD_STATS_GET_MAX =
4012 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
4013 };
4014 
4015 enum qca_wlan_btm_candidate_status {
4016 	QCA_STATUS_ACCEPT = 0,
4017 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
4018 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
4019 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
4020 	QCA_STATUS_REJECT_LOW_RSSI = 4,
4021 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
4022 	QCA_STATUS_REJECT_UNKNOWN = 6,
4023 };
4024 
4025 enum qca_wlan_vendor_attr_btm_candidate_info {
4026 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
4027 
4028 	/* 6-byte MAC address representing the BSSID of transition candidate */
4029 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
4030 	/*
4031 	 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4032 	 * returned by the driver. It says whether the BSSID provided in
4033 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4034 	 * the driver, if not it specifies the reason for rejection.
4035 	 * Note that the user-space can overwrite the transition reject reason
4036 	 * codes provided by driver based on more information.
4037 	 */
4038 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
4039 
4040 	/* keep last */
4041 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
4042 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
4043 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
4044 };
4045 
4046 enum qca_attr_trace_level {
4047 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
4048 	/*
4049 	 * Nested array of the following attributes:
4050 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
4051 	 * QCA_ATTR_TRACE_LEVEL_MASK.
4052 	 */
4053 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
4054 	/*
4055 	 * Specific QCA host driver module. Please refer to the QCA host
4056 	 * driver implementation to get the specific module ID.
4057 	 */
4058 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
4059 	/* Different trace level masks represented in the QCA host driver. */
4060 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
4061 
4062 	/* keep last */
4063 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
4064 	QCA_ATTR_TRACE_LEVEL_MAX =
4065 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
4066 };
4067 
4068 /**
4069  * enum qca_wlan_vendor_attr_get_logger_features - value for logger
4070  *                                                 supported features
4071  * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
4072  * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
4073  * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
4074  * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
4075  *
4076  * enum values are used for NL attributes for data used by
4077  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
4078  */
4079 enum qca_wlan_vendor_attr_get_logger_features {
4080 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
4081 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
4082 
4083 	/* keep last */
4084 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
4085 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
4086 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
4087 };
4088 
4089 /**
4090  * enum qca_wlan_vendor_attr_link_properties - link properties
4091  *
4092  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
4093  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
4094  *	specify the number of spatial streams negotiated
4095  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
4096  *	to specify negotiated rate flags i.e. ht, vht and channel width
4097  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
4098  *	specify the operating frequency
4099  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
4100  * (STA / AP ) for the connected link.
4101  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
4102  * &struct nl80211_sta_flag_update for the respective connected link. MAC
4103  * address of the peer represented by
4104  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
4105  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
4106  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
4107  */
4108 enum qca_wlan_vendor_attr_link_properties {
4109 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
4110 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
4111 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
4112 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
4113 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR  = 4,
4114 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS  = 5,
4115 
4116 	/* KEEP LAST */
4117 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
4118 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
4119 		QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
4120 };
4121 
4122 /**
4123  * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
4124  *
4125  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
4126  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
4127  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
4128  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
4129  *
4130  * enum values are used for NL attributes for data used by
4131  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
4132  */
4133 enum qca_wlan_vendor_attr_nd_offload {
4134 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
4135 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
4136 
4137 	/* Keep last */
4138 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
4139 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
4140 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
4141 };
4142 
4143 /**
4144  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
4145  *
4146  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
4147  *	management offload, a mechanism where the station's firmware
4148  *	does the exchange with the AP to establish the temporal keys
4149  *	after roaming, rather than having the user space wpa_supplicant do it.
4150  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
4151  *	band selection based on channel selection results.
4152  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
4153  *	simultaneous off-channel operations.
4154  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
4155  *	Listen offload; a mechanism where the station's firmware takes care of
4156  *	responding to incoming Probe Request frames received from other P2P
4157  *	Devices whilst in Listen state, rather than having the user space
4158  *	wpa_supplicant do it. Information from received P2P requests are
4159  *	forwarded from firmware to host whenever the host processor wakes up.
4160  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
4161  *	specific features.
4162  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
4163  *	features.
4164  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
4165  *	specific features only. If a Device sets this bit but not the
4166  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
4167  *	this Device may not support all OCE AP functionalities but can support
4168  *	only OCE STA-CFON functionalities.
4169  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
4170  *	managed regulatory.
4171  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
4172  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
4173  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
4174  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
4175  *	and applying thermal configuration through
4176  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
4177  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
4178  *	userspace.
4179  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
4180  *	With Adaptive 11r feature, access points advertise the vendor
4181  *	specific IEs and MDE but do not include FT AKM in the RSNE.
4182  *	The Adaptive 11r supported stations are expected to identify
4183  *	such vendor specific IEs and connect to the AP in FT mode though
4184  *	the profile is configured in non-FT mode.
4185  *	The driver-based SME cases also need to have this support for
4186  *	Adaptive 11r to handle the connection and roaming scenarios.
4187  *	This flag indicates the support for the same to the user space.
4188  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
4189  *	concurrent network sessions on different Wi-Fi Bands. This feature
4190  *	capability is attributed to the hardware's capability to support
4191  *	the same (e.g., DBS).
4192  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
4193  *	responses for the respective TWT operations are asynchronous (separate)
4194  *	event message) from the driver. If not specified, the responses are
4195  *	synchronous (in vendor command reply) to the request. Each TWT
4196  *	operation is specifically mentioned (against its respective)
4197  *	documentation) to support either of these or both modes.
4198  * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
4199  * 	that the driver requires add/del virtual interface path using the
4200  *	generic nl80211 commands for NDP interface create/delete and to
4201  *	register/unregister the netdev instead of creating/deleting the NDP
4202  *	interface using the vendor commands
4203  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
4204  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
4205  * 	(5.12 version onward), interface creation/deletion is not allowed using
4206  * 	vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
4207  * 	during the register/unregister of netdev. Create and delete NDP
4208  * 	interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
4209  * 	commands respectively if the driver advertises this capability set.
4210  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
4211  *	station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
4212  *	set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
4213  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
4214  *	mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
4215  *	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
4216  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
4217  *	station mode supports secure RTT measurement exchange. If
4218  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4219  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
4220  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
4221  *	mode supports secure RTT measurement exchange. If
4222  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4223  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
4224  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
4225  *	the device in station mode supports protection of range negotiation and
4226  *	measurement management frames. If
4227  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4228  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
4229  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
4230  *	the device in AP mode supports protection of range negotiation and
4231  *	measurement management frames. If
4232  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4233  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
4234  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
4235  */
4236 enum qca_wlan_vendor_features {
4237 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
4238 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
4239 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
4240 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
4241 	QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
4242 	QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
4243 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
4244 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
4245 	QCA_WLAN_VENDOR_FEATURE_TWT = 8,
4246 	QCA_WLAN_VENDOR_FEATURE_11AX = 9,
4247 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
4248 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
4249 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
4250 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
4251 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
4252 	QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
4253 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA		= 16,
4254 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP		= 17,
4255 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA		= 18,
4256 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP		= 19,
4257 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
4258 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
4259 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
4260 };
4261 
4262 /**
4263  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
4264  *     conditional channel switch
4265  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
4266  *     value
4267  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
4268  * frequency list (an array of u32 values in host byte order)
4269  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
4270  *     conditional switch (u32)- 0: Success, Non-zero: Failure
4271  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
4272  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
4273  */
4274 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
4275 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
4276 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
4277 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
4278 
4279 	/* Keep Last */
4280 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
4281 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
4282 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
4283 };
4284 
4285 /**
4286  * enum wifi_logger_supported_features - values for supported logger features
4287  * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
4288  * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
4289  * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
4290  * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
4291  * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
4292  * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
4293  * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
4294  * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
4295  */
4296 enum wifi_logger_supported_features {
4297 	WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
4298 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
4299 	WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
4300 	WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
4301 	WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
4302 	WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
4303 	WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
4304 	WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
4305 	WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
4306 };
4307 
4308 /**
4309  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
4310  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4311  *
4312  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
4313  * Used with event to notify the primary channel number selected in ACS
4314  * operation.
4315  * Note: If both the driver and user-space application supports the 6 GHz band,
4316  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
4317  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
4318  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4319  * is still used if either of the driver or user space application doesn't
4320  * support the 6 GHz band.
4321  *
4322  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
4323  * Used with event to notify the secondary channel number selected in ACS
4324  * operation.
4325  * Note: If both the driver and user-space application supports the 6 GHz band,
4326  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
4327  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
4328  * To maintain backward compatibility,
4329  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
4330  * the driver or user space application doesn't support 6 GHz band.
4331  *
4332  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
4333  * (a) Used with command to configure hw_mode from
4334  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
4335  * (b) Also used with event to notify the hw_mode of selected primary channel
4336  * in ACS operation.
4337  *
4338  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
4339  * Used with command to configure ACS operation for HT mode.
4340  * Disable (flag attribute not present) - HT disabled and
4341  * Enable (flag attribute present) - HT enabled.
4342  *
4343  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
4344  * Used with command to configure ACS operation for HT40 mode.
4345  * Disable (flag attribute not present) - HT40 disabled and
4346  * Enable (flag attribute present) - HT40 enabled.
4347  *
4348  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
4349  * Used with command to configure ACS operation for VHT mode.
4350  * Disable (flag attribute not present) - VHT disabled and
4351  * Enable (flag attribute present) - VHT enabled.
4352  *
4353  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
4354  * mandatory with event.
4355  * If specified in command path, ACS operation is configured with the given
4356  * channel width (in MHz).
4357  * In event path, specifies the channel width of the primary channel selected.
4358  *
4359  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
4360  * Used with command to configure channel list using an array of
4361  * channel numbers (u8).
4362  * Note: If both the driver and user-space application supports the 6 GHz band,
4363  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
4364  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
4365  *
4366  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
4367  * Used with event to notify the VHT segment 0 center channel number selected in
4368  * ACS operation.
4369  * Note: If both the driver and user-space application supports the 6 GHz band,
4370  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
4371  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
4372  * To maintain backward compatibility,
4373  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
4374  * the driver or user space application doesn't support the 6 GHz band.
4375  *
4376  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
4377  * Used with event to notify the VHT segment 1 center channel number selected in
4378  * ACS operation.
4379  * Note: If both the driver and user-space application supports the 6 GHz band,
4380  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
4381  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
4382  * To maintain backward compatibility,
4383  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
4384  * the driver or user space application doesn't support the 6 GHz band.
4385  *
4386  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
4387  * Used with command to configure the channel list using an array of channel
4388  * center frequencies in MHz (u32).
4389  * Note: If both the driver and user-space application supports the 6 GHz band,
4390  * the driver first parses the frequency list and if it fails to get a frequency
4391  * list, parses the channel list specified using
4392  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
4393  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
4394  *
4395  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
4396  * Used with event to notify the primary channel center frequency (MHz) selected
4397  * in ACS operation.
4398  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4399  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
4400  *
4401  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
4402  * Used with event to notify the secondary channel center frequency (MHz)
4403  * selected in ACS operation.
4404  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4405  * includes this attribute along with
4406  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
4407  *
4408  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
4409  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
4410  * selected in ACS operation.
4411  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4412  * includes this attribute along with
4413  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
4414  *
4415  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
4416  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
4417  * selected in ACS operation.
4418  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4419  * includes this attribute along with
4420  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
4421  *
4422  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
4423  * Used with command to notify the driver of EDMG request for ACS
4424  * operation.
4425  *
4426  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
4427  * Used with event to notify the EDMG channel number selected in ACS
4428  * operation.
4429  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4430  *
4431  * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
4432  * Used with event to notify the puncture pattern selected in ACS operation.
4433  * Encoding for this attribute will follow the convention used in the Disabled
4434  * Subchannel Bitmap field of the EHT Operation IE.
4435  *
4436  * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
4437  * Used with command to configure ACS operation for EHT mode.
4438  * Disable (flag attribute not present) - EHT disabled and
4439  * Enable (flag attribute present) - EHT enabled.
4440  *
4441  * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
4442  * Used with command to configure how older scan can be considered for ACS
4443  * scoring. In case scan was performed on partial set of channels configured
4444  * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
4445  * (in ms), then scan only remaining channels.
4446  */
4447 enum qca_wlan_vendor_attr_acs_offload {
4448 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
4449 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
4450 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
4451 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
4452 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
4453 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
4454 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
4455 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
4456 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
4457 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
4458 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
4459 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
4460 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
4461 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
4462 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
4463 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
4464 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
4465 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
4466 	QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
4467 	QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
4468 	QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
4469 
4470 	/* keep last */
4471 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
4472 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
4473 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
4474 };
4475 
4476 /**
4477  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
4478  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4479  *
4480  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
4481  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
4482  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
4483  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
4484  * @QCA_ACS_MODE_IEEE80211ANY: all modes
4485  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
4486  */
4487 enum qca_wlan_vendor_acs_hw_mode {
4488 	QCA_ACS_MODE_IEEE80211B,
4489 	QCA_ACS_MODE_IEEE80211G,
4490 	QCA_ACS_MODE_IEEE80211A,
4491 	QCA_ACS_MODE_IEEE80211AD,
4492 	QCA_ACS_MODE_IEEE80211ANY,
4493 	QCA_ACS_MODE_IEEE80211AX,
4494 };
4495 
4496 /**
4497  * enum qca_access_policy - access control policy
4498  *
4499  * Access control policy is applied on the configured IE
4500  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
4501  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
4502  *
4503  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
4504  *»       with the specific configuration (IE) set, i.e. allow all the
4505  *»       connections which do not match the configuration.
4506  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
4507  *»       with the specific configuration (IE) set, i.e. deny all the
4508  *»       connections which do not match the configuration.
4509  */
4510 enum qca_access_policy {
4511 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
4512 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
4513 };
4514 
4515 /**
4516  * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
4517  *
4518  * The valid values for the ignore assoc disallowed
4519  *
4520  * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
4521  * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
4522  *
4523  */
4524 enum qca_ignore_assoc_disallowed {
4525 	QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
4526 	QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
4527 };
4528 
4529 /* Attributes for data used by
4530  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
4531  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
4532  */
4533 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
4534 		QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
4535 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
4536 		QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
4537 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
4538 		QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
4539 enum qca_wlan_vendor_attr_config {
4540 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
4541 	/*
4542 	 * Unsigned 32-bit value to set the DTIM period.
4543 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
4544 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
4545 	 * DTIM beacons.
4546 	 */
4547 	QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
4548 	/*
4549 	 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
4550 	 * used to calculate statistics like average the TSF offset or average
4551 	 * number of frame leaked.
4552 	 * For instance, upon Beacon frame reception:
4553 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
4554 	 * For instance, when evaluating leaky APs:
4555 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
4556 	 */
4557 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
4558 	/*
4559 	 * Unsigned 32-bit value to configure guard time, i.e., when
4560 	 * implementing IEEE power management based on frame control PM bit, how
4561 	 * long the driver waits before shutting down the radio and after
4562 	 * receiving an ACK frame for a Data frame with PM bit set.
4563 	 */
4564 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
4565 	/* Unsigned 32-bit value to change the FTM capability dynamically */
4566 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
4567 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
4568 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
4569 	/*
4570 	 * Unsigned 32-bit value to configure the number of continuous
4571 	 * Beacon Miss which shall be used by the firmware to penalize
4572 	 * the RSSI.
4573 	 */
4574 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
4575 	/*
4576 	 * Unsigned 8-bit value to configure the channel avoidance indication
4577 	 * behavior. Firmware to send only one indication and ignore duplicate
4578 	 * indications when set to avoid multiple Apps wakeups.
4579 	 */
4580 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
4581 	/*
4582 	 * 8-bit unsigned value to configure the maximum TX MPDU for
4583 	 * aggregation.
4584 	 */
4585 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
4586 	/*
4587 	 * 8-bit unsigned value to configure the maximum RX MPDU for
4588 	 * aggregation.
4589 	 */
4590 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
4591 	/*
4592 	 * 8-bit unsigned value to configure the Non aggregrate/11g sw
4593 	 * retry threshold (0 disable, 31 max).
4594 	 */
4595 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
4596 	/*
4597 	 * 8-bit unsigned value to configure the aggregrate sw
4598 	 * retry threshold (0 disable, 31 max).
4599 	 */
4600 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
4601 	/*
4602 	 * 8-bit unsigned value to configure the MGMT frame
4603 	 * retry threshold (0 disable, 31 max).
4604 	 */
4605 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
4606 	/*
4607 	 * 8-bit unsigned value to configure the CTRL frame
4608 	 * retry threshold (0 disable, 31 max).
4609 	 */
4610 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
4611 	/*
4612 	 * 8-bit unsigned value to configure the propagation delay for
4613 	 * 2G/5G band (0~63, units in us)
4614 	 */
4615 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
4616 	/*
4617 	 * Unsigned 32-bit value to configure the number of unicast TX fail
4618 	 * packet count. The peer is disconnected once this threshold is
4619 	 * reached.
4620 	 */
4621 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
4622 	/*
4623 	 * Attribute used to set scan default IEs to the driver.
4624 	 *
4625 	 * These IEs can be used by scan operations that will be initiated by
4626 	 * the driver/firmware.
4627 	 *
4628 	 * For further scan requests coming to the driver, these IEs should be
4629 	 * merged with the IEs received along with scan request coming to the
4630 	 * driver. If a particular IE is present in the scan default IEs but not
4631 	 * present in the scan request, then that IE should be added to the IEs
4632 	 * sent in the Probe Request frames for that scan request.
4633 	 */
4634 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
4635 	/* Unsigned 32-bit attribute for generic commands */
4636 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
4637 	/* Unsigned 32-bit value attribute for generic commands */
4638 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
4639 	/* Unsigned 32-bit data attribute for generic command response */
4640 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
4641 	/*
4642 	 * Unsigned 32-bit length attribute for
4643 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4644 	 */
4645 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
4646 	/*
4647 	 * Unsigned 32-bit flags attribute for
4648 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4649 	 */
4650 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
4651 	/*
4652 	 * Unsigned 32-bit, defining the access policy.
4653 	 * See enum qca_access_policy. Used with
4654 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
4655 	 */
4656 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
4657 	/*
4658 	 * Sets the list of full set of IEs for which a specific access policy
4659 	 * has to be applied. Used along with
4660 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
4661 	 * Zero length payload can be used to clear this access constraint.
4662 	 */
4663 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
4664 	/*
4665 	 * Unsigned 32-bit, specifies the interface index (netdev) for which the
4666 	 * corresponding configurations are applied. If the interface index is
4667 	 * not specified, the configurations are attributed to the respective
4668 	 * wiphy.
4669 	 */
4670 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
4671 	/*
4672 	 * 8-bit unsigned value to trigger QPower:
4673 	 * 1-Enable, 0-Disable
4674 	 */
4675 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
4676 	/*
4677 	 * 8-bit unsigned value to configure the driver and below layers to
4678 	 * ignore the assoc disallowed set by APs while connecting
4679 	 * 1-Ignore, 0-Don't ignore
4680 	 */
4681 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
4682 	/*
4683 	 * 32-bit unsigned value to trigger antenna diversity features:
4684 	 * 1-Enable, 0-Disable
4685 	 */
4686 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
4687 	/* 32-bit unsigned value to configure specific chain antenna */
4688 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
4689 	/*
4690 	 * 32-bit unsigned value to trigger cycle selftest
4691 	 * 1-Enable, 0-Disable
4692 	 */
4693 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
4694 	/*
4695 	 * 32-bit unsigned to configure the cycle time of selftest
4696 	 * the unit is micro-second
4697 	 */
4698 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
4699 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
4700 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
4701 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
4702 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
4703 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
4704 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
4705 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
4706 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
4707 	/* 6-byte MAC address to point out the specific peer */
4708 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
4709 	/* 32-bit unsigned value to set window size for specific peer */
4710 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
4711 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
4712 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
4713 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
4714 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
4715 	/*
4716 	 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
4717 	 * station device while in disconnect state. The attribute use the
4718 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
4719 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
4720 	 * 10 MHz channel width, the station will not connect to a BSS using 20
4721 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
4722 	 * clear this constraint.
4723 	 */
4724 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
4725 	/*
4726 	 * 32-bit unsigned value to configure the propagation absolute delay
4727 	 * for 2G/5G band (units in us)
4728 	 */
4729 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
4730 	/* 32-bit unsigned value to set probe period */
4731 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
4732 	/* 32-bit unsigned value to set stay period */
4733 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
4734 	/* 32-bit unsigned value to set snr diff */
4735 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
4736 	/* 32-bit unsigned value to set probe dwell time */
4737 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
4738 	/* 32-bit unsigned value to set mgmt snr weight */
4739 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
4740 	/* 32-bit unsigned value to set data snr weight */
4741 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
4742 	/* 32-bit unsigned value to set ack snr weight */
4743 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
4744 	/*
4745 	 * 32-bit unsigned value to configure the listen interval.
4746 	 * This is in units of beacon intervals. This configuration alters
4747 	 * the negotiated listen interval with the AP during the connection.
4748 	 * It is highly recommended to configure a value less than or equal to
4749 	 * the one negotiated during the association. Configuring any greater
4750 	 * value can have adverse effects (frame loss, AP disassociating STA,
4751 	 * etc.).
4752 	 */
4753 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
4754 	/*
4755 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
4756 	 * disable operations that would cause the AP/GO to leave its operating
4757 	 * channel.
4758 	 *
4759 	 * This will restrict the scans to the AP/GO operating channel and the
4760 	 * channels of the other band, if DBS is supported.A STA/CLI interface
4761 	 * brought up after this setting is enabled, will be restricted to
4762 	 * connecting to devices only on the AP/GO interface's operating channel
4763 	 * or on the other band in DBS case. P2P supported channel list is
4764 	 * modified, to only include AP interface's operating-channel and the
4765 	 * channels of the other band if DBS is supported.
4766 	 *
4767 	 * These restrictions are only applicable as long as the AP/GO interface
4768 	 * is alive. If the AP/GO interface is brought down then this
4769 	 * setting/restriction is forgotten.
4770 	 *
4771 	 * If this variable is set on an AP/GO interface while a multi-channel
4772 	 * concurrent session is active, it has no effect on the operation of
4773 	 * the current interfaces, other than restricting the scan to the AP/GO
4774 	 * operating channel and the other band channels if DBS is supported.
4775 	 * However, if the STA is brought down and restarted then the new STA
4776 	 * connection will either be formed on the AP/GO channel or on the
4777 	 * other band in a DBS case. This is because of the scan being
4778 	 * restricted on these channels as mentioned above.
4779 	 *
4780 	 * 1-Disable offchannel operations, 0-Enable offchannel operations.
4781 	 */
4782 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
4783 
4784 	/*
4785 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
4786 	 * on an interface.
4787 	 * 1 - Enable , 0 - Disable.
4788 	 */
4789 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
4790 
4791 	/*
4792 	 * 8 bit unsigned value to globally enable/disable scan
4793 	 * 1 - Enable, 0 - Disable.
4794 	 */
4795 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
4796 
4797 	/* 8-bit unsigned value to set the total beacon miss count */
4798 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
4799 
4800 	/*
4801 	 * Unsigned 32-bit value to configure the number of continuous
4802 	 * Beacon Miss which shall be used by the firmware to penalize
4803 	 * the RSSI for BTC.
4804 	 */
4805 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
4806 
4807 	/*
4808 	 * 8-bit unsigned value to configure the driver and below layers to
4809 	 * enable/disable all fils features.
4810 	 * 0-enable, 1-disable
4811 	 */
4812 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
4813 
4814 	/* 16-bit unsigned value to configure the level of WLAN latency
4815 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
4816 	 */
4817 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
4818 
4819 	/*
4820 	 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
4821 	 * the connect interface. Exclusively used for the scenarios where the
4822 	 * device is used as a test bed device with special functionality and
4823 	 * not recommended for production. This helps driver to not validate the
4824 	 * RSNE passed from user space and thus allow arbitrary IE data to be
4825 	 * used for testing purposes.
4826 	 * 1-enable, 0-disable.
4827 	 * Applications set/reset this configuration. If not reset, this
4828 	 * parameter remains in use until the driver is unloaded.
4829 	 */
4830 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
4831 
4832 	/*
4833 	 * 8-bit unsigned value to trigger green Tx power saving.
4834 	 * 1-Enable, 0-Disable
4835 	 */
4836 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
4837 
4838 	/*
4839 	 * Attribute to configure disconnect IEs to the driver.
4840 	 * This carries an array of unsigned 8-bit characters.
4841 	 *
4842 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
4843 	 * frame.
4844 	 * These IEs are expected to be considered only for the next
4845 	 * immediate disconnection (disassoc/deauth frame) originated by
4846 	 * the DUT, irrespective of the entity (user space/driver/firmware)
4847 	 * triggering the disconnection.
4848 	 * The host drivers are not expected to use the IEs set through
4849 	 * this interface for further disconnections after the first immediate
4850 	 * disconnection initiated post the configuration.
4851 	 * If the IEs are also updated through cfg80211 interface (after the
4852 	 * enhancement to cfg80211_disconnect), host driver is expected to
4853 	 * take the union of IEs from both of these interfaces and send in
4854 	 * further disassoc/deauth frames.
4855 	 */
4856 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
4857 
4858 	/* 8-bit unsigned value for ELNA bypass.
4859 	 * 0 - Disable eLNA bypass.
4860 	 * 1 - Enable eLNA bypass.
4861 	 * 2 - Reset eLNA bypass configuration, the driver should
4862 	 *	revert to the default configuration of eLNA bypass.
4863 	 */
4864 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
4865 
4866 	/* 8-bit unsigned value. This attribute enables/disables the host driver
4867 	 * to send the Beacon Report response with failure reason for the
4868 	 * scenarios where STA cannot honor the Beacon report request from AP.
4869 	 * 1-Enable, 0-Disable.
4870 	 */
4871 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
4872 
4873 	/* 8-bit unsigned value. This attribute enables/disables the host driver
4874 	 * to send roam reason information in the reassociation request to the
4875 	 * AP. 1-Enable, 0-Disable.
4876 	 */
4877 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
4878 
4879 	/* 32-bit unsigned value to configure different PHY modes to the
4880 	 * driver/firmware. The possible values are defined in
4881 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
4882 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
4883 	 * the driver.
4884 	 */
4885 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
4886 
4887 	/* 8-bit unsigned value to configure the maximum supported channel width
4888 	 * for STA mode. If this value is configured when STA is in connected
4889 	 * state, it should not exceed the negotiated channel width. If it is
4890 	 * configured when STA is in disconnected state, the configured value
4891 	 * will take effect for the next immediate connection.
4892 	 * Possible values are:
4893 	 *   NL80211_CHAN_WIDTH_20
4894 	 *   NL80211_CHAN_WIDTH_40
4895 	 *   NL80211_CHAN_WIDTH_80
4896 	 *   NL80211_CHAN_WIDTH_80P80
4897 	 *   NL80211_CHAN_WIDTH_160
4898 	 */
4899 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
4900 
4901 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
4902 	 * This attribute is only applicable for STA mode. When dynamic
4903 	 * bandwidth adjustment is disabled, STA will use static channel width
4904 	 * the value of which is negotiated during connection.
4905 	 * 1-enable (default), 0-disable
4906 	 */
4907 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
4908 
4909 	/* 8-bit unsigned value to configure the maximum number of subframes of
4910 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
4911 	 * it is decided by hardware.
4912 	 */
4913 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
4914 
4915 	/* 8-bit unsigned value to configure the maximum number of subframes of
4916 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
4917 	 * it is decided by hardware.
4918 	 */
4919 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
4920 
4921 	/* 8-bit unsigned value. This attribute is used to dynamically
4922 	 * enable/disable the LDPC capability of the device. When configured in
4923 	 * the disconnected state, the updated configuration will be considered
4924 	 * for the immediately following connection attempt. If this
4925 	 * configuration is modified while the device is in the connected state,
4926 	 * the LDPC TX will be updated with this configuration immediately,
4927 	 * while the LDPC RX configuration update will take place starting from
4928 	 * the subsequent association attempt.
4929 	 * 1-Enable, 0-Disable.
4930 	 */
4931 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
4932 
4933 	/* 8-bit unsigned value. This attribute is used to dynamically
4934 	 * enable/disable the TX STBC capability of the device. When configured
4935 	 * in the disconnected state, the updated configuration will be
4936 	 * considered for the immediately following connection attempt. If the
4937 	 * connection is formed with TX STBC enabled and if this configuration
4938 	 * is disabled during that association, the TX will be impacted
4939 	 * immediately. Further connection attempts will disable TX STBC.
4940 	 * However, enabling the TX STBC for a connected session with disabled
4941 	 * capability is not allowed and will fail.
4942 	 * 1-Enable, 0-Disable.
4943 	 */
4944 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
4945 
4946 	/* 8-bit unsigned value. This attribute is used to dynamically
4947 	 * enable/disable the RX STBC capability of the device. When configured
4948 	 * in the disconnected state, the updated configuration will be
4949 	 * considered for the immediately following connection attempt. If the
4950 	 * configuration is modified in the connected state, there will be no
4951 	 * impact for the current association, but further connection attempts
4952 	 * will use the updated configuration.
4953 	 * 1-Enable, 0-Disable.
4954 	 */
4955 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
4956 
4957 	/* 8-bit unsigned value. This attribute is used to dynamically configure
4958 	 * the number of spatial streams. When configured in the disconnected
4959 	 * state, the updated configuration will be considered for the
4960 	 * immediately following connection attempt. If the NSS is updated after
4961 	 * the connection, the updated NSS value is notified to the peer using
4962 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
4963 	 * frame. The updated NSS value after the connection shall not be
4964 	 * greater than the one negotiated during the connection. Any such
4965 	 * higher value configuration shall be returned with a failure.
4966 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
4967 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
4968 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
4969 	 * configure the asymmetric NSS configuration (such as 1X2).
4970 	 */
4971 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
4972 
4973 	/*
4974 	 * 8-bit unsigned value to trigger Optimized Power Management:
4975 	 * 1-Enable, 0-Disable
4976 	 */
4977 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
4978 
4979 	/* 8-bit unsigned value. This attribute takes the QOS/access category
4980 	 * value represented by the enum qca_wlan_ac_type and expects the driver
4981 	 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
4982 	 * is invalid for this attribute. This will override the DSCP value
4983 	 * configured in the frame with the intention to only upgrade the QOS.
4984 	 * That said, it is not intended to downgrade the QOS for the frames.
4985 	 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
4986 	 * to disable.
4987 	 */
4988 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
4989 
4990 	/* 8-bit unsigned value. This attribute is used to dynamically configure
4991 	 * the number of chains to be used for transmitting data. This
4992 	 * configuration is allowed only when in connected state and will be
4993 	 * effective until disconnected. The driver rejects this configuration
4994 	 * if the number of spatial streams being used in the current connection
4995 	 * cannot be supported by this configuration.
4996 	 */
4997 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
4998 
4999 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5000 	 * the number of chains to be used for receiving data. This
5001 	 * configuration is allowed only when in connected state and will be
5002 	 * effective until disconnected. The driver rejects this configuration
5003 	 * if the number of spatial streams being used in the current connection
5004 	 * cannot be supported by this configuration.
5005 	 */
5006 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
5007 
5008 	/* 8-bit unsigned value to configure ANI setting type.
5009 	 * See &enum qca_wlan_ani_setting for possible values.
5010 	 */
5011 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
5012 	/* 32-bit signed value to configure ANI level. This is used when
5013 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
5014 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
5015 	 * is invalid, the driver will return a failure.
5016 	 */
5017 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
5018 
5019 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5020 	 * the number of spatial streams used for transmitting the data. When
5021 	 * configured in the disconnected state, the configured value will
5022 	 * be considered for the following connection attempt.
5023 	 * If the NSS is updated after the connection, the updated NSS value
5024 	 * is notified to the peer using the Operating Mode Notification/Spatial
5025 	 * Multiplexing Power Save frame.
5026 	 * The TX NSS value configured after the connection shall not be greater
5027 	 * than the value negotiated during the connection. Any such higher
5028 	 * value configuration shall be treated as invalid configuration by
5029 	 * the driver. This attribute shall be configured along with
5030 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
5031 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5032 	 * configuration (such as 1X2).
5033 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5034 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
5035 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
5036 	 */
5037 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
5038 
5039 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5040 	 * the number of spatial streams used for receiving the data. When
5041 	 * configured in the disconnected state, the configured value will
5042 	 * be considered for the following connection attempt.
5043 	 * If the NSS is updated after the connection, the updated NSS value
5044 	 * is notified to the peer using the Operating Mode Notification/Spatial
5045 	 * Multiplexing Power Save frame.
5046 	 * The RX NSS value configured after the connection shall not be greater
5047 	 * than the value negotiated during the connection. Any such higher
5048 	 * value configuration shall be treated as invalid configuration by
5049 	 * the driver. This attribute shall be configured along with
5050 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
5051 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5052 	 * configuration (such as 1X2).
5053 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5054 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
5055 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
5056 	 */
5057 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
5058 
5059 	/*
5060 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
5061 	 * specified interface is the primary STA interface when there are more
5062 	 * than one STA interfaces concurrently active.
5063 	 *
5064 	 * This configuration helps the firmware/hardware to support certain
5065 	 * features (e.g., roaming) on this primary interface, if the same
5066 	 * cannot be supported on the concurrent STA interfaces simultaneously.
5067 	 *
5068 	 * This configuration is only applicable for a single STA interface on
5069 	 * a device and gives the priority for it only over other concurrent STA
5070 	 * interfaces.
5071 	 *
5072 	 * If the device is a multi wiphy/soc, this configuration applies to a
5073 	 * single STA interface across the wiphys.
5074 	 *
5075 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
5076 	 */
5077 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
5078 
5079 	/*
5080 	 * 8-bit unsigned value. This attribute can be used to configure the
5081 	 * driver to enable/disable FT-over-DS feature. Possible values for
5082 	 * this attribute are 1-Enable and 0-Disable.
5083 	 */
5084 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
5085 
5086 	/*
5087 	 * 8-bit unsigned value. This attribute can be used to configure the
5088 	 * firmware to enable/disable ARP/NS offload feature. Possible values
5089 	 * for this attribute are 0-Disable and 1-Enable.
5090 	 *
5091 	 * This attribute is only applicable for STA/P2P-Client interface,
5092 	 * and is optional, default behavior is APR/NS offload Enable.
5093 	 *
5094 	 * This attribute can be set in disconncted and connected state, and
5095 	 * will restore to default behavior if interface is closed.
5096 	 */
5097 	QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
5098 
5099 	/*
5100 	 * 8-bit unsigned value. This attribute can be used to configure the
5101 	 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
5102 	 * for this attribute are defined in the enum qca_dbam_config.
5103 	 */
5104 	QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
5105 
5106 	/* keep last */
5107 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
5108 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
5109 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
5110 };
5111 
5112 /**
5113  * enum qca_dbam_config - Specifies DBAM config mode
5114  * @QCA_DBAM_DISABLE: Firmware disables DBAM
5115  * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
5116  * internal criteria are met.
5117  * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
5118  */
5119 enum qca_dbam_config {
5120 	QCA_DBAM_DISABLE = 0,
5121 	QCA_DBAM_ENABLE = 1,
5122 	QCA_DBAM_FORCE_ENABLE = 2,
5123 };
5124 
5125 /**
5126  * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
5127  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
5128  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
5129  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
5130  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
5131  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
5132  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
5133  */
5134 enum qca_wlan_vendor_attr_wifi_logger_start {
5135 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5136 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5137 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5138 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5139 	/* keep last */
5140 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5141 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
5142 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5143 };
5144 
5145 /*
5146  * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
5147  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
5148  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
5149  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
5150  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
5151  */
5152 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
5153 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
5154 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
5155 	/* keep last */
5156 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
5157 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
5158 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
5159 };
5160 
5161 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
5162 /**
5163  * enum wlan_offloaded_packets_control - control commands
5164  * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
5165  * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
5166  *
5167  */
5168 enum wlan_offloaded_packets_control {
5169 	WLAN_START_OFFLOADED_PACKETS = 1,
5170 	WLAN_STOP_OFFLOADED_PACKETS  = 2
5171 };
5172 
5173 /**
5174  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
5175  *
5176  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
5177  *      the offloaded data.
5178  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
5179  *      data.
5180  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
5181  *      indication.
5182  */
5183 enum qca_wlan_vendor_attr_data_offload_ind {
5184 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
5185 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
5186 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
5187 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
5188 
5189 	/* keep last */
5190 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
5191 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
5192 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
5193 };
5194 
5195 /**
5196  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
5197  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
5198  */
5199 enum qca_wlan_vendor_attr_offloaded_packets {
5200 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
5201 	/* Takes valid value from the enum
5202 	 * qca_wlan_offloaded_packets_sending_control
5203 	 * Unsigned 32-bit value
5204 	 */
5205 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
5206 	/* Unsigned 32-bit value */
5207 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
5208 	/* array of u8 len: Max packet size */
5209 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
5210 	/* 6-byte MAC address used to represent source MAC address */
5211 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
5212 	/* 6-byte MAC address used to represent destination MAC address */
5213 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
5214 	/* Unsigned 32-bit value, in milli seconds */
5215 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
5216 	/* This optional unsigned 16-bit attribute is used for specifying
5217 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
5218 	 */
5219 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
5220 
5221 	/* keep last */
5222 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
5223 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
5224 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
5225 };
5226 
5227 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS  */
5228 
5229 /**
5230  * enum qca_wlan_rssi_monitoring_control - rssi control commands
5231  * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
5232  * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
5233  * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
5234  */
5235 enum qca_wlan_rssi_monitoring_control {
5236 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
5237 	QCA_WLAN_RSSI_MONITORING_START,
5238 	QCA_WLAN_RSSI_MONITORING_STOP,
5239 };
5240 
5241 /**
5242  * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
5243  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
5244  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
5245  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
5246  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
5247  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
5248  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
5249  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
5250  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
5251  */
5252 enum qca_wlan_vendor_attr_rssi_monitoring {
5253 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
5254 
5255 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
5256 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
5257 
5258 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
5259 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
5260 
5261 	/* attributes to be used/received in callback */
5262 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
5263 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
5264 
5265 	/* keep last */
5266 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
5267 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
5268 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
5269 };
5270 
5271 /**
5272  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
5273  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5274  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
5275  * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
5276  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
5277  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
5278  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
5279  * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
5280  * address
5281  * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
5282  * created
5283  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
5284  * NCS_SK_TYPE/PMK/SCID instead
5285  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
5286  * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
5287  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
5288  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
5289  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
5290  * code: accept/reject
5291  * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
5292  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
5293  * driver
5294  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
5295  * driver
5296  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
5297  * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
5298  * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
5299  * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
5300  * PMKID
5301  * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
5302  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
5303  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
5304  * update:
5305  *     BIT_0: NSS Update
5306  *     BIT_1: Channel list update
5307  * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
5308  * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
5309  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
5310  *     0:20 MHz,
5311  *     1:40 MHz,
5312  *     2:80 MHz,
5313  *     3:160 MHz
5314  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
5315  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
5316  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
5317  * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
5318  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
5319  * transport port used by NDP.
5320  * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
5321  * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
5322  * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
5323  * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
5324  * NDP remote peer supports NAN NDPE. 1:support 0:not support
5325  * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
5326  * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
5327  * A lower-case representation of the Service Name shall be used to
5328  * calculate the Service ID.
5329  * Array of u8: length is 6 bytes
5330  * This attribute is used and optional for ndp indication.
5331 */
5332 enum qca_wlan_vendor_attr_ndp_params {
5333 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
5334 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
5335 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
5336 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
5337 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
5338 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
5339 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
5340 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
5341 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
5342 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
5343 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
5344 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
5345 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
5346 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
5347 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
5348 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
5349 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
5350 	QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
5351 	QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
5352 	QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
5353 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
5354 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
5355 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
5356 	QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
5357 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
5358 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
5359 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
5360 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
5361 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
5362 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
5363 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
5364 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
5365 
5366 	/* keep last */
5367 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
5368 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
5369 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
5370 };
5371 
5372 /**
5373  * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
5374  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5375  * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
5376  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
5377  * data path interface.
5378  * This command was initially designed to both create and start a NAN
5379  * data path interface. However, changes to Linux 5.12 no longer allow
5380  * interface creation via vendor commands. When the driver advertises
5381  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5382  * userspace must explicitly first create the interface using
5383  * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
5384  * to start the interface.
5385  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
5386  * data path interface.
5387  * This command was initially designed to both stop and delete a NAN
5388  * data path interface. However, changes to Linux 5.12 no longer allow
5389  * interface deletion via vendor commands. When the driver advertises
5390  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5391  * userspace must explicitly delete the interface using
5392  * NL80211_CMD_DEL_INTERFACE after calling this command.
5393  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
5394  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
5395  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
5396  * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
5397  * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
5398  * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
5399  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
5400  * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
5401  * being received
5402  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
5403  * update
5404  */
5405 enum qca_wlan_ndp_sub_cmd {
5406 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
5407 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
5408 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
5409 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
5410 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
5411 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
5412 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
5413 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
5414 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
5415 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
5416 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
5417 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
5418 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
5419 };
5420 
5421 /**
5422  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5423  * information. These attributes are sent as part of
5424  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5425  * attributes correspond to a single channel.
5426  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
5427  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5428  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
5429  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5430  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
5431  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
5432  * regulatory transmission power
5433  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
5434  * transmission power
5435  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
5436  * transmission power
5437  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
5438  * class id
5439  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
5440  * antenna gain in dbm
5441  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
5442  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
5443  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
5444  * segment 0 in center freq in MHz.
5445  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
5446  * segment 1 in center freq in MHz.
5447  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
5448  * flag indicating the AP power modes supported by the channel, as given by
5449  * enum qca_wlan_vendor_external_acs_chan_power_level.
5450  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
5451  * attributes for each power mode. It takes attr as defined in enum
5452  * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5453  *
5454  */
5455 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5456 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5457 
5458 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5459 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5460 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5461 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5462 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5463 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5464 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5465 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5466 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5467 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
5468 	/*
5469 	 * A bitmask (u32) with flags specified in
5470 	 * enum qca_wlan_vendor_channel_prop_flags_2.
5471 	 */
5472 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
5473 
5474 	/*
5475 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5476 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5477 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5478 	 * along with
5479 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5480 	 *
5481 	 * If both the driver and user-space application supports the 6 GHz
5482 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5483 	 * is deprecated and
5484 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5485 	 * should be used.
5486 	 *
5487 	 * To maintain backward compatibility,
5488 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5489 	 * is still used if either of the driver or user space application
5490 	 * doesn't support the 6 GHz band.
5491 	 */
5492 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
5493 
5494 	/*
5495 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
5496 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5497 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5498 	 * along with
5499 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
5500 	 *
5501 	 * If both the driver and user-space application supports the 6 GHz
5502 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
5503 	 * is deprecated and
5504 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5505 	 * should be considered.
5506 	 *
5507 	 * To maintain backward compatibility,
5508 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5509 	 * is still used if either of the driver or user space application
5510 	 * doesn't support the 6 GHz band.
5511 	 */
5512 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
5513 	/*
5514 	 * 16-bit attribute of bits indicating the AP power modes supported by
5515 	 * the channel (u16).
5516 	 * Note: Currently, only 3 bits are used in the attribute and each bit
5517 	 * corresponds to the power mode mentioned in enum
5518 	 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
5519 	 * set if the associated mode is supported.
5520 	 */
5521 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
5522 									= 14,
5523 	/* Array of nested attributes for each power mode. It takes attr as
5524 	 * defined in enum
5525 	 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5526 	 */
5527 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR	= 15,
5528 
5529 	/* keep last */
5530 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
5531 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
5532 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
5533 };
5534 
5535 /**
5536  * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
5537  * values that the vendor external ACS channel power attribute
5538  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
5539  * take.
5540  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
5541  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
5542  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
5543  */
5544 enum qca_wlan_vendor_external_acs_chan_power_level {
5545 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
5546 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
5547 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
5548 };
5549 
5550 /**
5551  * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
5552  * attributes for power mode type and power values corresponding to that.
5553  * These attributes are sent as part of
5554  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
5555  */
5556 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
5557 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
5558 	/*
5559 	 * Power mode (u8) takes the values defined in enum
5560 	 * qca_wlan_vendor_external_acs_chan_power_mode
5561 	 */
5562 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
5563 									= 1,
5564 	/*
5565 	 * Indicates if power value is a PSD/EIRP value (flag). If flag is
5566 	 * present, it indicates a PSD value.
5567 	 */
5568 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
5569 	/*
5570 	 * Power value (u32) PSD/EIRP as indicated by
5571 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
5572 	 * for power mode corresponding to the
5573 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
5574 	 * Units for PSD - dBm/MHz
5575 	 * Units for EIRP - dBm
5576 	 */
5577 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
5578 									= 3,
5579 	/* keep last */
5580 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
5581 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
5582 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
5583 };
5584 
5585 /**
5586  * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
5587  * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
5588  * driver.
5589  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
5590  * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
5591  * ACS need to be started
5592  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
5593  * driver supports spectral scanning or not
5594  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
5595  * offloaded to firmware.
5596  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
5597  * provides additional channel capability as part of scan operation.
5598  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
5599  * interface status is UP
5600  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
5601  * interface. It takes one of nl80211_iftype values.
5602  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
5603  * of chan width. ACS logic should try to get a channel with specified width
5604  * if not found then look for lower values.
5605  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
5606  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
5607  * a/b/g/n/ac.
5608  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
5609  * among which ACS should choose best frequency.
5610  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
5611  * driver which will have <channel(u8), weight(u8)> format as array of
5612  * nested values.
5613  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
5614  * for each channel. It takes attr as defined in
5615  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
5616  * PCL mandatory, PCL preferred, etc.It uses values defined in enum
5617  * qca_wlan_vendor_attr_external_acs_policy.
5618  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
5619  * Operating Parameter (RROP) availability information (u16). It uses values
5620  * defined in enum qca_wlan_vendor_attr_rropavail_info.
5621  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
5622  * indicate if driver supports 6 GHz AFC trigger for External ACS.
5623  */
5624 enum qca_wlan_vendor_attr_external_acs_event {
5625 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
5626 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
5627 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
5628 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
5629 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
5630 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
5631 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
5632 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
5633 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
5634 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
5635 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
5636 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
5637 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
5638 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
5639 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
5640 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
5641 
5642 	/* keep last */
5643 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
5644 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
5645 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
5646 };
5647 
5648 enum qca_iface_type {
5649 	QCA_IFACE_TYPE_STA,
5650 	QCA_IFACE_TYPE_AP,
5651 	QCA_IFACE_TYPE_P2P_CLIENT,
5652 	QCA_IFACE_TYPE_P2P_GO,
5653 	QCA_IFACE_TYPE_IBSS,
5654 	QCA_IFACE_TYPE_TDLS,
5655 };
5656 
5657 /**
5658  * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
5659  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
5660  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
5661  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
5662  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
5663  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
5664  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
5665  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
5666  */
5667 enum qca_wlan_vendor_attr_pcl_config {
5668 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
5669 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
5670 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
5671 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
5672 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
5673 };
5674 
5675 enum qca_set_band {
5676 	QCA_SETBAND_AUTO = 0,
5677 	QCA_SETBAND_5G = BIT(0),
5678 	QCA_SETBAND_2G = BIT(1),
5679 	QCA_SETBAND_6G = BIT(2),
5680 };
5681 
5682 /**
5683  * enum set_reset_packet_filter - set packet filter control commands
5684  * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
5685  * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
5686  * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
5687  * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
5688  * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
5689  * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
5690  */
5691 enum set_reset_packet_filter {
5692 	QCA_WLAN_SET_PACKET_FILTER = 1,
5693 	QCA_WLAN_GET_PACKET_FILTER = 2,
5694 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
5695 	QCA_WLAN_READ_PACKET_FILTER = 4,
5696 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
5697 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
5698 };
5699 
5700 /**
5701  * enum qca_wlan_vendor_attr_packet_filter - APF control commands
5702  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
5703  * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
5704  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
5705  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
5706  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
5707  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
5708  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
5709  *	section in packet filter buffer
5710  */
5711 enum qca_wlan_vendor_attr_packet_filter {
5712 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
5713 	QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
5714 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
5715 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
5716 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
5717 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
5718 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
5719 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
5720 
5721 	/* keep last */
5722 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
5723 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
5724 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
5725 };
5726 
5727 /**
5728  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
5729  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
5730  */
5731 enum qca_wlan_vendor_attr_wake_stats {
5732 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
5733 	/* Unsigned 32-bit value indicating the total count of wake event */
5734 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
5735 	/* Array of individual wake count, each index representing wake reason
5736 	 */
5737 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
5738 	/* Unsigned 32-bit value representing wake count array */
5739 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
5740 	/* Unsigned 32-bit total wake count value of driver/fw */
5741 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
5742 	/* Array of wake stats of driver/fw */
5743 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
5744 	/* Unsigned 32-bit total wake count value of driver/fw */
5745 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
5746 	/* Unsigned 32-bit total wake count value of packets received */
5747 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
5748 	/* Unsigned 32-bit wake count value unicast packets received */
5749 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
5750 	/* Unsigned 32-bit wake count value multicast packets received */
5751 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
5752 	/* Unsigned 32-bit wake count value broadcast packets received */
5753 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
5754 	/* Unsigned 32-bit wake count value of ICMP packets */
5755 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
5756 	/* Unsigned 32-bit wake count value of ICMP6 packets */
5757 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
5758 	/* Unsigned 32-bit value ICMP6 router advertisement */
5759 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
5760 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
5761 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
5762 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
5763 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
5764 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
5765 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
5766 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
5767 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
5768 	/* Unsigned 32-bit wake count value of receive side multicast */
5769 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
5770 	/* Unsigned 32-bit wake count value of a given RSSI breach */
5771 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
5772 	/* Unsigned 32-bit wake count value of low RSSI */
5773 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
5774 	/* Unsigned 32-bit value GSCAN count */
5775 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
5776 	/* Unsigned 32-bit value PNO complete count */
5777 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
5778 	/* Unsigned 32-bit value PNO match count */
5779 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
5780 	/* keep last */
5781 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
5782 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
5783 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
5784 };
5785 
5786 /**
5787  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
5788  * configured by userspace to the driver/firmware. The values will be
5789  * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
5790  * The driver/firmware takes necessary actions requested by userspace
5791  * such as throttling wifi tx etc. in order to mitigate high temperature.
5792  *
5793  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
5794  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
5795  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
5796  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
5797  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
5798  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
5799  */
5800 enum qca_wlan_vendor_thermal_level {
5801 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
5802 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
5803 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
5804 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
5805 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
5806 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
5807 };
5808 
5809 /**
5810  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
5811  * cmd value. Used for NL attributes for data used by
5812  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5813  */
5814 enum qca_wlan_vendor_attr_thermal_cmd {
5815 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
5816 	/* The value of command, driver will implement different operations
5817 	 * according to this value. It uses values defined in
5818 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
5819 	 * u32 attribute.
5820 	 */
5821 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
5822 	/* Userspace uses this attribute to configure thermal level to the
5823 	 * driver/firmware, or get thermal level from the driver/firmware.
5824 	 * Used in request or response, u32 attribute,
5825 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
5826 	 */
5827 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
5828 	/* Userspace uses this attribute to configure the time in which the
5829 	 * driver/firmware should complete applying settings it received from
5830 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
5831 	 * command type. Used in request, u32 attribute, value is in
5832 	 * milliseconds. A value of zero indicates to apply the settings
5833 	 * immediately. The driver/firmware can delay applying the configured
5834 	 * thermal settings within the time specified in this attribute if
5835 	 * there is any critical ongoing operation.
5836 	 */
5837 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
5838 	/* Nested attribute, driver/firmware uses this attribute to report
5839 	 * thermal stats of different thermal levels to userspace when requested
5840 	 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
5841 	 * type. This attribute contains nested array of records of thermal
5842 	 * statistics of multiple levels. The attributes used inside this nested
5843 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
5844 	 */
5845 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
5846 
5847 	/* keep last */
5848 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
5849 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
5850 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
5851 };
5852 
5853 /**
5854  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
5855  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
5856  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
5857  * thermal command types sent to driver.
5858  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
5859  * get thermal shutdown configuration parameters for display. Parameters
5860  * responded from driver are defined in
5861  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
5862  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
5863  * get temperature. Host should respond with a temperature data. It is defined
5864  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
5865  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
5866  * suspend action.
5867  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
5868  * resume action.
5869  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
5870  * the driver/firmware.
5871  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
5872  * thermal level from the driver/firmware. The driver should respond with a
5873  * thermal level defined in enum qca_wlan_vendor_thermal_level.
5874  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
5875  * current thermal stats from the driver/firmware. The driver should respond
5876  * with stats of all thermal levels encapsulated in attribute
5877  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
5878  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
5879  * the current thermal stats all thermal levels maintained in the
5880  * driver/firmware and start counting from zero again.
5881  */
5882 enum qca_wlan_vendor_attr_thermal_cmd_type {
5883 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
5884 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
5885 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
5886 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
5887 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
5888 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
5889 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
5890 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
5891 };
5892 
5893 /**
5894  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
5895  * to get chip temperature by user.
5896  * enum values are used for NL attributes for data used by
5897  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
5898  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5899  */
5900 enum qca_wlan_vendor_attr_thermal_get_temperature {
5901 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
5902 	/* Temperature value (degree Celsius) from driver.
5903 	 * u32 attribute.
5904 	 */
5905 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
5906 
5907 	/* keep last */
5908 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
5909 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
5910 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
5911 };
5912 
5913 /**
5914  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
5915  * report thermal events from driver to user space.
5916  * enum values are used for NL attributes for data used by
5917  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
5918  */
5919 enum qca_wlan_vendor_attr_thermal_event {
5920 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
5921 	/* Temperature value (degree Celsius) from driver.
5922 	 * u32 attribute.
5923 	 */
5924 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
5925 	/* Indication of resume completion from power save mode.
5926 	 * NLA_FLAG attribute.
5927 	 */
5928 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
5929 	/* Thermal level from the driver.
5930 	 * u32 attribute. Possible values are defined in
5931 	 * enum qca_wlan_vendor_thermal_level.
5932 	 */
5933 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
5934 
5935 	/* keep last */
5936 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
5937 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
5938 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
5939 };
5940 
5941 /**
5942  * enum qca_vendor_element_id - QCA Vendor Specific element types
5943  *
5944  * These values are used to identify QCA Vendor Specific elements. The
5945  * payload of the element starts with the three octet OUI (OUI_QCA) and
5946  * is followed by a single octet type which is defined by this enum.
5947  *
5948  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
5949  *      This element can be used to specify preference order for supported
5950  *      channels. The channels in this list are in preference order (the first
5951  *      one has the highest preference) and are described as a pair of
5952  *      (global) Operating Class and Channel Number (each one octet) fields.
5953  *
5954  *      This extends the standard P2P functionality by providing option to have
5955  *      more than one preferred operating channel. When this element is present,
5956  *      it replaces the preference indicated in the Operating Channel attribute.
5957  *      For supporting other implementations, the Operating Channel attribute is
5958  *      expected to be used with the highest preference channel. Similarly, all
5959  *      the channels included in this Preferred channel list element are
5960  *      expected to be included in the Channel List attribute.
5961  *
5962  *      This vendor element may be included in GO Negotiation Request, P2P
5963  *      Invitation Request, and Provision Discovery Request frames.
5964  *
5965  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
5966  *      This element can be used for pre-standard publication testing of HE
5967  *      before P802.11ax draft assigns the element ID. The payload of this
5968  *      vendor specific element is defined by the latest P802.11ax draft.
5969  *      Please note that the draft is still work in progress and this element
5970  *      payload is subject to change.
5971  *
5972  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
5973  *      This element can be used for pre-standard publication testing of HE
5974  *      before P802.11ax draft assigns the element ID. The payload of this
5975  *      vendor specific element is defined by the latest P802.11ax draft.
5976  *      Please note that the draft is still work in progress and this element
5977  *      payload is subject to change.
5978  *
5979  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
5980  *      element).
5981  *      This element can be used for pre-standard publication testing of HE
5982  *      before P802.11ax draft assigns the element ID extension. The payload of
5983  *      this vendor specific element is defined by the latest P802.11ax draft
5984  *      (not including the Element ID Extension field). Please note that the
5985  *      draft is still work in progress and this element payload is subject to
5986  *      change.
5987  *
5988  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
5989  *      This element can be used for pre-standard publication testing of HE
5990  *      before P802.11ax draft assigns the element ID extension. The payload of
5991  *      this vendor specific element is defined by the latest P802.11ax draft
5992  *      (not including the Element ID Extension field). Please note that the
5993  *      draft is still work in progress and this element payload is subject to
5994  *      change.
5995  *
5996  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
5997  *      This element can be used for pre-standard publication testing of HE
5998  *      before P802.11ax draft assigns the element ID extension. The payload of
5999  *      this vendor specific element is defined by the latest P802.11ax draft
6000  *      (not including the Element ID Extension field). Please note that the
6001  *      draft is still work in progress and this element payload is subject to
6002  *      change.
6003  */
6004 enum qca_vendor_element_id {
6005 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
6006 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
6007 	QCA_VENDOR_ELEM_HE_OPER = 2,
6008 	QCA_VENDOR_ELEM_RAPS = 3,
6009 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
6010 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
6011 };
6012 
6013 /**
6014  * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
6015  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
6016  * Specify the TSF command. Possible values are defined in
6017  * &enum qca_tsf_cmd.
6018  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
6019  * This attribute contains TSF timer value. This attribute is only available
6020  * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6021  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
6022  * This attribute contains SOC timer value at TSF capture. This attribute is
6023  * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6024  * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
6025  * This attribute is used to provide TSF sync interval and only applicable when
6026  * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
6027  * driver will use the default value. Time unit is in milliseconds.
6028  */
6029 enum qca_vendor_attr_tsf_cmd {
6030 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
6031 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
6032 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
6033 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
6034 	QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
6035 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
6036 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
6037 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
6038 };
6039 
6040 /**
6041  * enum qca_tsf_cmd: TSF driver commands
6042  * @QCA_TSF_CAPTURE: Initiate TSF Capture
6043  * @QCA_TSF_GET: Get TSF capture value
6044  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
6045  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
6046  * will automatically send TSF report to the host. To query
6047  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
6048  * initiated first.
6049  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
6050  * will not automatically send TSF report to the host. If
6051  * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
6052  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
6053  * operation needs to be initiated.
6054  * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
6055  * fetches TSF and host time mapping from the firmware with interval configured
6056  * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
6057  * interval value is not provided the driver will use the default value. The
6058  * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
6059  * command.
6060  * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
6061  */
6062 enum qca_tsf_cmd {
6063 	QCA_TSF_CAPTURE,
6064 	QCA_TSF_GET,
6065 	QCA_TSF_SYNC_GET,
6066 	QCA_TSF_AUTO_REPORT_ENABLE,
6067 	QCA_TSF_AUTO_REPORT_DISABLE,
6068 	QCA_TSF_SYNC_START,
6069 	QCA_TSF_SYNC_STOP,
6070 };
6071 
6072 /**
6073  * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
6074  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
6075  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
6076  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
6077  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
6078  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
6079  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
6080  */
6081 enum qca_vendor_attr_get_preferred_freq_list {
6082 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
6083 	/* A 32-unsigned value; the interface type/mode for which the preferred
6084 	 * frequency list is requested (see enum qca_iface_type for possible
6085 	 * values); used in both south- and north-bound.
6086 	 */
6087 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
6088 	/* An array of 32-unsigned values; values are frequency (MHz); used
6089 	 * in north-bound only.
6090 	 */
6091 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
6092 	/* An array of nested values as per enum
6093 	 *  qca_wlan_vendor_attr_pcl_config attribute.
6094 	 *  Each element contains frequency (MHz), weight, and flag
6095 	 *  bit mask indicating how the frequency should be used in P2P
6096 	 *  negotiation.
6097 	 */
6098 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
6099 	/* keep last */
6100 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
6101 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
6102 		QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
6103 };
6104 
6105 /**
6106  * enum qca_vendor_attr_probable_oper_channel - channel hint
6107  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
6108  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
6109  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
6110  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
6111  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
6112  */
6113 enum qca_vendor_attr_probable_oper_channel {
6114 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
6115 	/* 32-bit unsigned value; indicates the connection/iface type likely to
6116 	 * come on this channel (see enum qca_iface_type).
6117 	 */
6118 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
6119 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
6120 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
6121 	/* keep last */
6122 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
6123 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
6124 		QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
6125 };
6126 
6127 /**
6128  * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
6129  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
6130  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
6131  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
6132  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
6133  */
6134 enum qca_wlan_vendor_attr_gw_param_config {
6135 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
6136 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
6137 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
6138 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
6139 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
6140 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
6141 		QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
6142 };
6143 
6144 /**
6145  * enum drv_dbs_capability - DBS capability
6146  * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
6147  * @DRV_DBS_CAPABILITY_1X1: 1x1
6148  * @DRV_DBS_CAPABILITY_2X2: 2x2
6149  */
6150 enum drv_dbs_capability {
6151 	DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
6152 	DRV_DBS_CAPABILITY_1X1,
6153 	DRV_DBS_CAPABILITY_2X2,
6154 };
6155 
6156 /**
6157  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
6158  *
6159  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
6160  */
6161 enum qca_vendor_attr_txpower_decr_db {
6162 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
6163 	/*
6164 	 * 8-bit unsigned value to indicate the reduction of TX power in dB for
6165 	 * a virtual interface.
6166 	 */
6167 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
6168 	/* keep last */
6169 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
6170 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
6171 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
6172 };
6173 
6174 /**
6175  * enum qca_vendor_attr_ota_test - Enable OTA test
6176  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
6177  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
6178  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
6179  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
6180  */
6181 enum qca_vendor_attr_ota_test {
6182 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
6183 	/* 8-bit unsigned value to indicate if OTA test is enabled */
6184 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
6185 	/* keep last */
6186 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
6187 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
6188 		QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
6189 };
6190 
6191 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
6192  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
6193  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
6194  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
6195  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
6196  */
6197 enum qca_vendor_attr_txpower_scale {
6198 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
6199 	/* 8-bit unsigned value to indicate the scaling of tx power */
6200 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
6201 	/* keep last */
6202 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
6203 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
6204 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
6205 };
6206 
6207 /**
6208  * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
6209  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
6210  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
6211  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
6212  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
6213  */
6214 enum qca_vendor_attr_txpower_scale_decr_db {
6215 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
6216 	/* 8-bit unsigned value to indicate the scaling of tx power */
6217 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
6218 	/* keep last */
6219 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
6220 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
6221 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
6222 };
6223 
6224 /**
6225  * enum dfs_mode - state of DFS mode
6226  * @DFS_MODE_NONE: DFS mode attribute is none
6227  * @DFS_MODE_ENABLE:  DFS mode is enabled
6228  * @DFS_MODE_DISABLE: DFS mode is disabled
6229  * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
6230  */
6231 enum dfs_mode {
6232 	DFS_MODE_NONE,
6233 	DFS_MODE_ENABLE,
6234 	DFS_MODE_DISABLE,
6235 	DFS_MODE_DEPRIORITIZE
6236 };
6237 
6238 /**
6239  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
6240  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
6241  *
6242  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
6243  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
6244  *
6245  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
6246  * channel number hint for ACS operation, if valid channel is specified then
6247  * ACS operation gives priority to this channel.
6248  * Note: If both the driver and user space application supports the 6 GHz band,
6249  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
6250  * should be used.
6251  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
6252  * is still used if either of the driver or user space application doesn't
6253  * support the 6 GHz band.
6254  *
6255  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
6256  * Channel center frequency (MHz) hint for ACS operation, if a valid center
6257  * frequency is specified, ACS operation gives priority to this channel.
6258  */
6259 enum qca_wlan_vendor_attr_acs_config {
6260 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
6261 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
6262 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
6263 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
6264 
6265 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
6266 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
6267 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
6268 };
6269 
6270 /**
6271  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
6272  */
6273 enum qca_wlan_vendor_attr_get_hw_capability {
6274 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
6275 	/*
6276 	 * Antenna isolation
6277 	 * An attribute used in the response.
6278 	 * The content of this attribute is encoded in a byte array. Each byte
6279 	 * value is an antenna isolation value. The array length is the number
6280 	 * of antennas.
6281 	 */
6282 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
6283 	/*
6284 	 * Request HW capability
6285 	 * An attribute used in the request.
6286 	 * The content of this attribute is a u32 array for one or more of
6287 	 * hardware capabilities (attribute IDs) that are being requested. Each
6288 	 * u32 value has a value from this
6289 	 * enum qca_wlan_vendor_attr_get_hw_capability
6290 	 * identifying which capabilities are requested.
6291 	 */
6292 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
6293 
6294 	/* keep last */
6295 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
6296 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
6297 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
6298 };
6299 
6300 /**
6301  * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
6302  *                        config params for sta roam policy
6303  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
6304  * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
6305  * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
6306  * If sta should skip unsafe channels or not in scanning
6307  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
6308  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
6309  */
6310 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
6311 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
6312 	QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
6313 	QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
6314 
6315 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
6316 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
6317 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
6318 };
6319 
6320 /* Attributes for FTM commands and events */
6321 
6322 /**
6323  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
6324  *
6325  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
6326  *      enum qca_wlan_vendor_attr_loc_capa_flags.
6327  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
6328  *      of measurement sessions that can run concurrently.
6329  *      Default is one session (no session concurrency).
6330  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
6331  *      peers that are supported in running sessions. For example,
6332  *      if the value is 8 and maximum number of sessions is 2, you can
6333  *      have one session with 8 unique peers, or 2 sessions with 4 unique
6334  *      peers each, and so on.
6335  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
6336  *      of bursts per peer, as an exponent (2^value). Default is 0,
6337  *      meaning no multi-burst support.
6338  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
6339  *      of measurement exchanges allowed in a single burst.
6340  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
6341  *      types. A bit mask (unsigned 32 bit value), each bit corresponds
6342  *      to an AOA type as defined by enum qca_vendor_attr_aoa_type.
6343  */
6344 enum qca_wlan_vendor_attr_loc_capa {
6345 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
6346 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
6347 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
6348 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
6349 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
6350 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
6351 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
6352 	/* keep last */
6353 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
6354 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
6355 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
6356 };
6357 
6358 /**
6359  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
6360  *
6361  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
6362  *      can be configured as an FTM responder (for example, an AP that
6363  *      services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
6364  *      will be supported if set.
6365  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
6366  *      can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
6367  *      will be supported if set.
6368 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
6369  *      supports immediate (ASAP) response.
6370  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
6371  *      AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
6372  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
6373  *      requesting AOA measurements as part of an FTM session.
6374  */
6375 enum qca_wlan_vendor_attr_loc_capa_flags {
6376 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
6377 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
6378 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
6379 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
6380 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
6381 };
6382 
6383 /**
6384  * enum qca_wlan_ani_setting - ANI setting type
6385  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
6386  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
6387  */
6388 enum qca_wlan_ani_setting {
6389 	QCA_WLAN_ANI_SETTING_AUTO = 0,
6390 	QCA_WLAN_ANI_SETTING_FIXED = 1,
6391 };
6392 
6393 /**
6394  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
6395  *
6396  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
6397  * Channel number on which Access Point should restart.
6398  * Note: If both the driver and user space application supports the 6 GHz band,
6399  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
6400  * should be used.
6401  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
6402  * is still used if either of the driver or user space application doesn't
6403  * support the 6 GHz band.
6404  *
6405  * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
6406  * Nested attribute to hold list of center frequencies on which AP is
6407  * expected to operate. This is irrespective of ACS configuration.
6408  * This list is a priority based one and is looked for before the AP is
6409  * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
6410  * co-exist in the system.
6411  *
6412  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
6413  * Channel center frequency (MHz) on which the access point should restart.
6414  */
6415 enum qca_wlan_vendor_attr_sap_config {
6416 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
6417 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
6418 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
6419 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
6420 
6421 	/* Keep last */
6422 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
6423 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
6424 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
6425 };
6426 
6427 /**
6428  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
6429  * a single peer in a measurement session.
6430  *
6431  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
6432  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
6433  *      to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
6434  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
6435  *      FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
6436  *      9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
6437  *      list of supported attributes.
6438  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
6439  *      secure measurement.
6440  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
6441  *      measurement every <value> bursts. If 0 or not specified,
6442  *      AOA measurements will be disabled for this peer.
6443  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
6444  *      the measurement frames are exchanged. Optional; if not
6445  *      specified, try to locate the peer in the kernel scan
6446  *      results cache and use frequency from there.
6447  */
6448 enum qca_wlan_vendor_attr_ftm_peer_info {
6449 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
6450 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
6451 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
6452 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
6453 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
6454 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
6455 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
6456 	/* keep last */
6457 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
6458 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
6459 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
6460 };
6461 
6462 /**
6463  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
6464  *      per-peer
6465  *
6466  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
6467  *      immediate (ASAP) response from peer.
6468  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
6469  *      LCI report from peer. The LCI report includes the absolute
6470  *      location of the peer in "official" coordinates (similar to GPS).
6471  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
6472  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
6473  *      Location civic report from peer. The LCR includes the location
6474  *      of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
6475  *      11.24.6.7 for more information.
6476  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
6477  *      request a secure measurement.
6478  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
6479  */
6480 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
6481 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP    = 1 << 0,
6482 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI     = 1 << 1,
6483 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR     = 1 << 2,
6484 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE  = 1 << 3,
6485 };
6486 
6487 /**
6488  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
6489  *
6490  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
6491  *      to perform in a single burst.
6492  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
6493  *      perform, specified as an exponent (2^value).
6494  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
6495  *      instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
6496  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
6497  *      as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
6498  *      be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
6499  */
6500 enum qca_wlan_vendor_attr_ftm_meas_param {
6501 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
6502 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
6503 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
6504 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
6505 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
6506 	/* keep last */
6507 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
6508 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
6509 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
6510 };
6511 
6512 /**
6513  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
6514  *
6515  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
6516  *       peer.
6517  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
6518  *      request for this peer.
6519  *      See enum qca_wlan_vendor_attr_ftm_peer_result_status.
6520  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
6521  *      to measurement results for this peer.
6522  *      See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
6523  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
6524  *      request failed and peer requested not to send an additional request
6525  *      for this number of seconds.
6526  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
6527  *      from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6528  *      9.4.2.22.10.
6529  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
6530  *      received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6531  *      9.4.2.22.13.
6532  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
6533  *      overridden some measurement request parameters. See
6534  *      enum qca_wlan_vendor_attr_ftm_meas_param.
6535  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
6536  *      for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
6537  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
6538  *      results. Each entry is a nested attribute defined
6539  *      by enum qca_wlan_vendor_attr_ftm_meas.
6540  */
6541 enum qca_wlan_vendor_attr_ftm_peer_result {
6542 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
6543 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
6544 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
6545 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
6546 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
6547 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
6548 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
6549 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
6550 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
6551 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
6552 	/* keep last */
6553 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
6554 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
6555 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
6556 };
6557 
6558 /**
6559  * enum qca_wlan_vendor_attr_ftm_peer_result_status
6560  *
6561  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
6562  *      will be provided. Peer may have overridden some measurement parameters,
6563  *      in which case overridden parameters will be report by
6564  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
6565  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
6566  *      of performing the measurement request. No more results will be sent
6567  *      for this peer in this session.
6568  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
6569  *      failed, and requested not to send an additional request for number
6570  *      of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
6571  *      attribute.
6572  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
6573  *      failed. Request was not sent over the air.
6574  */
6575 enum qca_wlan_vendor_attr_ftm_peer_result_status {
6576 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
6577 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
6578 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
6579 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
6580 };
6581 
6582 /**
6583  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
6584  *  for measurement result, per-peer
6585  *
6586  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
6587  *      measurement completed for this peer. No more results will be reported
6588  *      for this peer in this session.
6589  */
6590 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
6591 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
6592 };
6593 
6594 /**
6595  * enum qca_vendor_attr_loc_session_status: Session completion status code
6596  *
6597  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
6598  *      successfully.
6599  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
6600  *      by request.
6601  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
6602  *      was invalid and was not started.
6603  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
6604  *      and did not complete normally (for example out of resources).
6605  */
6606 enum qca_vendor_attr_loc_session_status {
6607 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
6608 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
6609 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
6610 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
6611 };
6612 
6613 /**
6614  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
6615  *
6616  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
6617  *      recorded by responder, in picoseconds.
6618  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6619  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
6620  *      initiator, in picoseconds.
6621  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6622  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
6623  *      initiator, in picoseconds.
6624  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6625  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
6626  *      responder, in picoseconds.
6627  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6628  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
6629  *      during this measurement exchange. Optional and will be provided if
6630  *      the hardware can measure it.
6631  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
6632  *      responder. Not always provided.
6633  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6634  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
6635  *      responder. Not always provided.
6636  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6637  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
6638  *      initiator. Not always provided.
6639  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6640  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
6641  *      initiator. Not always provided.
6642  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6643  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
6644  */
6645 enum qca_wlan_vendor_attr_ftm_meas {
6646 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
6647 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
6648 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
6649 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
6650 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
6651 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
6652 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
6653 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
6654 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
6655 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
6656 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
6657 	/* keep last */
6658 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
6659 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
6660 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
6661 };
6662 
6663 /**
6664  * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
6665  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
6666  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
6667  *     A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
6668  *     of the social channels.
6669  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
6670  *     A 32-bit unsigned value; the P2P listen offload period (ms).
6671  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
6672  *     A 32-bit unsigned value; the P2P listen interval duration (ms).
6673  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
6674  *     A 32-bit unsigned value; number of interval times the Firmware needs
6675  *     to run the offloaded P2P listen operation before it stops.
6676  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
6677  *     An array of unsigned 8-bit characters; vendor information elements.
6678  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
6679  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
6680  *     A 32-bit unsigned value; a control flag to indicate whether listen
6681  *     results need to be flushed to wpa_supplicant.
6682  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
6683  *     A 8-bit unsigned value; reason code for P2P listen offload stop
6684  *     event.
6685  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
6686  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
6687  */
6688 enum qca_wlan_vendor_attr_p2p_listen_offload {
6689 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
6690 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
6691 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
6692 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
6693 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
6694 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
6695 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
6696 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
6697 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
6698 	/* keep last */
6699 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
6700 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
6701 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
6702 };
6703 
6704 /**
6705  * enum qca_wlan_vendor_drv_info - WLAN driver info
6706  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
6707  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
6708  * between Firmware & Host.
6709  */
6710 enum qca_wlan_vendor_drv_info {
6711 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
6712 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
6713 
6714 	/* keep last */
6715 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
6716 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
6717 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
6718 };
6719 
6720 /**
6721  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
6722  *
6723  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
6724  *      CIR (channel impulse response) path for each antenna.
6725  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
6726  *      of the strongest CIR path for each antenna.
6727  */
6728 enum qca_wlan_vendor_attr_aoa_type {
6729 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
6730 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
6731 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
6732 };
6733 
6734 /**
6735  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
6736  * validate encryption engine
6737  *
6738  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
6739  *    This will be included if the request is for decryption; if not included,
6740  *    the request is treated as a request for encryption by default.
6741  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
6742  *    indicating the key cipher suite. Takes same values as
6743  *    NL80211_ATTR_KEY_CIPHER.
6744  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
6745  *    Key Id to be used for encryption
6746  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
6747  *    Key (TK) to be used for encryption/decryption
6748  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
6749  *    Packet number to be specified for encryption/decryption
6750  *    6 bytes for TKIP/CCMP/GCMP.
6751  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
6752  *    representing the 802.11 packet (header + payload + FCS) that
6753  *    needs to be encrypted/decrypted.
6754  *    Encrypted/decrypted response from the driver will also be sent
6755  *    to userspace with the same attribute.
6756  */
6757 enum qca_wlan_vendor_attr_encryption_test {
6758 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
6759 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
6760 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
6761 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
6762 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
6763 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
6764 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
6765 
6766 	/* keep last */
6767 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
6768 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
6769 		QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
6770 };
6771 
6772 /**
6773  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
6774  * sector for DMG RF sector operations.
6775  *
6776  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
6777  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
6778  */
6779 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
6780 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
6781 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
6782 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
6783 };
6784 
6785 /**
6786  * enum qca_wlan_vendor_attr_fw_state - State of firmware
6787  *
6788  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
6789  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
6790  */
6791 enum qca_wlan_vendor_attr_fw_state {
6792 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
6793 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
6794 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
6795 };
6796 
6797 /**
6798  * BRP antenna limit mode
6799  *
6800  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
6801  *      antenna limit, BRP will be performed as usual.
6802  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
6803  *      antennas limit. the hardware may use less antennas than the
6804  *      maximum limit.
6805  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
6806  *      use exactly the specified number of antennas for BRP.
6807  */
6808 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
6809 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
6810 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
6811 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
6812 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
6813 };
6814 
6815 /**
6816  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
6817  * DMG RF sector configuration for a single RF module.
6818  * The values are defined in a compact way which closely matches
6819  * the way it is stored in HW registers.
6820  * The configuration provides values for 32 antennas and 8 distribution
6821  * amplifiers, and together describes the characteristics of the RF
6822  * sector - such as a beam in some direction with some gain.
6823  *
6824  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
6825  *      of RF module for this configuration.
6826  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
6827  *      amplifier gain index. Unsigned 32 bit number containing
6828  *      bits for all 32 antennas.
6829  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
6830  *      amplifier gain index. Unsigned 32 bit number containing
6831  *      bits for all 32 antennas.
6832  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
6833  *      amplifier gain index. Unsigned 32 bit number containing
6834  *      bits for all 32 antennas.
6835  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
6836  *      for first 16 antennas, 2 bits per antenna.
6837  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
6838  *      for last 16 antennas, 2 bits per antenna.
6839  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
6840  *      DTYPE values (3 bits) for each distribution amplifier, followed
6841  *      by X16 switch bits for each distribution amplifier. There are
6842  *      total of 8 distribution amplifiers.
6843  */
6844 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
6845 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
6846 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
6847 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
6848 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
6849 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
6850 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
6851 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
6852 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
6853 
6854 	/* keep last */
6855 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
6856 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
6857 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
6858 };
6859 
6860 /**
6861  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
6862  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
6863  *
6864  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
6865  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
6866  *	represents the different TDLS trigger modes.
6867  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
6868  *	which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
6869  *	of packets shall meet the criteria for implicit TDLS setup.
6870  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
6871  *	packets within a duration.
6872  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
6873  *	a TDLS setup.
6874  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
6875  *	a TDLS Discovery to the Peer.
6876  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
6877  *	discovery attempts to know the TDLS capability of the peer. A peer is
6878  *	marked as TDLS not capable if there is no response for all the attempts.
6879  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
6880  *	within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
6881  *	number of TX / RX frames meet the criteria for TDLS teardown.
6882  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
6883  *	(u32) of Tx/Rx packets within a duration
6884  *	CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
6885  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
6886  *	corresponding to the RSSI of the peer below which a TDLS
6887  *	setup is triggered.
6888  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
6889  *	corresponding to the RSSI of the peer above which
6890  *	a TDLS teardown is triggered.
6891  */
6892 enum qca_wlan_vendor_attr_tdls_configuration {
6893 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
6894 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
6895 
6896 	/* Attributes configuring the TDLS Implicit Trigger */
6897 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
6898 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
6899 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
6900 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
6901 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
6902 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
6903 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
6904 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
6905 
6906 	/* keep last */
6907 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
6908 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
6909 		QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
6910 };
6911 
6912 /**
6913  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
6914  *	the driver.
6915  *
6916  * The following are the different values for
6917  * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
6918  *
6919  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
6920  *	initiate/teardown the TDLS connection to a respective peer comes
6921  *	 from the user space. wpa_supplicant provides the commands
6922  *	TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
6923  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
6924  *	setup/teardown to the eligible peer once the configured criteria
6925  *	(such as TX/RX threshold, RSSI) is met. The attributes
6926  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
6927  *	the different configuration criteria for the TDLS trigger from the
6928  *	host driver.
6929  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
6930  *	the TDLS setup / teardown through the implicit mode, only to the
6931  *	configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
6932  *	configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
6933  *	External mode works on top of the implicit mode, thus the host Driver
6934  *	is expected to be configured in TDLS Implicit mode too to operate in
6935  *	External mode. Configuring External mode alone without Implicit
6936  *	mode is invalid.
6937  *
6938  * All the above implementations work as expected only when the host driver
6939  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
6940  * representing that the TDLS message exchange is not internal to the host
6941  * driver, but depends on wpa_supplicant to do the message exchange.
6942  */
6943 enum qca_wlan_vendor_tdls_trigger_mode {
6944 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
6945 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
6946 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
6947 };
6948 
6949 /**
6950  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
6951  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
6952  *	that is hard-coded in the Board Data File (BDF).
6953  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
6954  *	that is hard-coded in the Board Data File (BDF).
6955  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
6956  *	that is hard-coded in the Board Data File (BDF).
6957  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
6958  *	that is hard-coded in the Board Data File (BDF).
6959  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
6960  *	that is hard-coded in the Board Data File (BDF).
6961  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
6962  *	source of SAR power limits, thereby disabling the SAR power
6963  *	limit feature.
6964  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
6965  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
6966  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
6967  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
6968  *
6969  * This enumerates the valid set of values that may be supplied for
6970  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
6971  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
6972  * the response to an instance of the
6973  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
6974  */
6975 enum qca_vendor_attr_sar_limits_selections {
6976 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
6977 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
6978 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
6979 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
6980 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
6981 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
6982 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
6983 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
6984 };
6985 
6986 /**
6987  * enum qca_vendor_attr_sar_limits_spec_modulations -
6988  *	SAR limits specification modulation
6989  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
6990  *	CCK modulation
6991  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
6992  *	OFDM modulation
6993  *
6994  * This enumerates the valid set of values that may be supplied for
6995  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
6996  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
6997  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
6998  * command or in the response to an instance of the
6999  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7000  */
7001 enum qca_vendor_attr_sar_limits_spec_modulations {
7002 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
7003 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
7004 };
7005 
7006 /**
7007  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
7008  *
7009  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
7010  *	select which SAR power limit table should be used.  Valid
7011  *	values are enumerated in enum
7012  *	%qca_vendor_attr_sar_limits_selections.  The existing SAR
7013  *	power limit selection is unchanged if this attribute is not
7014  *	present.
7015  *
7016  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
7017  *	which specifies the number of SAR power limit specifications
7018  *	which will follow.
7019  *
7020  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
7021  *	limit specifications. The number of specifications is
7022  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
7023  *	specification contains a set of
7024  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
7025  *	specification is uniquely identified by the attributes
7026  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
7027  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
7028  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
7029  *	contains as a payload the attribute
7030  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
7031  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
7032  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
7033  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
7034  *	needed based upon the value of
7035  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
7036  *
7037  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
7038  *	indicate for which band this specification applies. Valid
7039  *	values are enumerated in enum %nl80211_band (although not all
7040  *	bands may be supported by a given device). If the attribute is
7041  *	not supplied then the specification will be applied to all
7042  *	supported bands.
7043  *
7044  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
7045  *	to indicate for which antenna chain this specification
7046  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
7047  *	attribute is not supplied then the specification will be
7048  *	applied to all chains.
7049  *
7050  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
7051  *	value to indicate for which modulation scheme this
7052  *	specification applies. Valid values are enumerated in enum
7053  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
7054  *	is not supplied then the specification will be applied to all
7055  *	modulation schemes.
7056  *
7057  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
7058  *	value to specify the actual power limit value in units of 0.5
7059  *	dBm (i.e., a value of 11 represents 5.5 dBm).
7060  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7061  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
7062  *
7063  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
7064  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
7065  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7066  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
7067  *
7068  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
7069  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
7070  */
7071 enum qca_vendor_attr_sar_limits {
7072 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
7073 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
7074 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
7075 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
7076 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
7077 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
7078 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
7079 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
7080 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
7081 
7082 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
7083 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
7084 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
7085 };
7086 
7087 /**
7088  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
7089  *    offload which is an extension for LL_STATS.
7090  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
7091  *    If MAC counters do not exceed the threshold, FW will report monitored
7092  *    link layer counters periodically as this setting. The first report is
7093  *    always triggered by this timer.
7094  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
7095  *    For each MAC layer counter, FW holds two copies. One is the current value.
7096  *    The other is the last report. Once a current counter's increment is larger
7097  *    than the threshold, FW will indicate that counter to host even if the
7098  *    monitoring timer does not expire.
7099  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
7100  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
7101  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
7102  *    failure code.
7103  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
7104  *    1: TX packet discarded
7105  *    2: No ACK
7106  *    3: Postpone
7107  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
7108  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
7109  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
7110  *    Threshold for all monitored parameters. If per counter dedicated threshold
7111  *    is not enabled, this threshold will take effect.
7112  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
7113  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
7114  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
7115  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
7116  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
7117  *    Bit0: TX counter unit in MSDU
7118  *    Bit1: TX counter unit in MPDU
7119  *    Bit2: TX counter unit in PPDU
7120  *    Bit3: TX counter unit in byte
7121  *    Bit4: Dropped MSDUs
7122  *    Bit5: Dropped Bytes
7123  *    Bit6: MPDU retry counter
7124  *    Bit7: MPDU failure counter
7125  *    Bit8: PPDU failure counter
7126  *    Bit9: MPDU aggregation counter
7127  *    Bit10: MCS counter for ACKed MPDUs
7128  *    Bit11: MCS counter for Failed MPDUs
7129  *    Bit12: TX Delay counter
7130  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
7131  *    Bit0: MAC RX counter unit in MPDU
7132  *    Bit1: MAC RX counter unit in byte
7133  *    Bit2: PHY RX counter unit in PPDU
7134  *    Bit3: PHY RX counter unit in byte
7135  *    Bit4: Disorder counter
7136  *    Bit5: Retry counter
7137  *    Bit6: Duplication counter
7138  *    Bit7: Discard counter
7139  *    Bit8: MPDU aggregation size counter
7140  *    Bit9: MCS counter
7141  *    Bit10: Peer STA power state change (wake to sleep) counter
7142  *    Bit11: Peer STA power save counter, total time in PS mode
7143  *    Bit12: Probe request counter
7144  *    Bit13: Other management frames counter
7145  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
7146  *    Bit0: Idle time
7147  *    Bit1: TX time
7148  *    Bit2: time RX in current bss
7149  *    Bit3: Out of current bss time
7150  *    Bit4: Wireless medium busy time
7151  *    Bit5: RX in bad condition time
7152  *    Bit6: TX in bad condition time
7153  *    Bit7: time wlan card not available
7154  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
7155  *    Bit0: Per channel SNR counter
7156  *    Bit1: Per channel noise floor counter
7157  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
7158  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
7159  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
7160  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
7161  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
7162  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
7163  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
7164  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
7165  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
7166  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
7167  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
7168  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
7169  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
7170  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
7171  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
7172  *    aggregation stats buffer length
7173  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
7174  *    buffer for ACKed MPDUs.
7175  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
7176  *    buffer for failed MPDUs.
7177  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
7178  *    length of delay stats array.
7179  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
7180  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
7181  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
7182  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
7183  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
7184  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
7185  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
7186  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
7187  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
7188  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
7189  *    flagged as retransmissions
7190  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
7191  *    flagged as duplicated
7192  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
7193  *    packets discarded
7194  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
7195  *    stats buffer.
7196  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
7197  *    stats buffer.
7198  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
7199  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
7200  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
7201  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
7202  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
7203  *    requests received
7204  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
7205  *    frames received
7206  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
7207  *    there is no TX, nor RX, nor interference.
7208  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
7209  *    transmitting packets.
7210  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
7211  *    for receiving.
7212  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
7213  *    interference detected.
7214  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
7215  *    receiving packets with errors.
7216  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
7217  *    TX no-ACK.
7218  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
7219  *    the chip is unable to work in normal conditions.
7220  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
7221  *    receiving packets in current BSS.
7222  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
7223  *    receiving packets not in current BSS.
7224  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
7225  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
7226  *    This is a container for per antenna signal stats.
7227  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
7228  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
7229  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
7230  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
7231  */
7232 enum qca_wlan_vendor_attr_ll_stats_ext {
7233 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
7234 
7235 	/* Attributes for configurations */
7236 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
7237 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
7238 
7239 	/* Peer STA power state change */
7240 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
7241 
7242 	/* TX failure event */
7243 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
7244 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
7245 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
7246 
7247 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
7248 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
7249 
7250 	/* MAC counters */
7251 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
7252 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
7253 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
7254 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
7255 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
7256 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
7257 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
7258 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
7259 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
7260 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
7261 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
7262 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
7263 
7264 	/* Sub-attributes for PEER_AC_TX */
7265 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
7266 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
7267 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
7268 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
7269 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
7270 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
7271 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
7272 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
7273 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
7274 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
7275 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
7276 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
7277 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
7278 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
7279 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
7280 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
7281 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
7282 
7283 	/* Sub-attributes for PEER_AC_RX */
7284 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
7285 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
7286 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
7287 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
7288 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
7289 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
7290 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
7291 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
7292 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
7293 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
7294 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
7295 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
7296 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
7297 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
7298 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
7299 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
7300 
7301 	/* Sub-attributes for CCA_BSS */
7302 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
7303 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
7304 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
7305 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
7306 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
7307 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
7308 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
7309 
7310 	/* sub-attribute for BSS_RX_TIME */
7311 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
7312 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
7313 
7314 	/* Sub-attributes for PEER_SIGNAL */
7315 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
7316 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
7317 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
7318 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
7319 
7320 	/* Sub-attributes for IFACE_BSS */
7321 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
7322 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
7323 
7324 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
7325 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
7326 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
7327 };
7328 
7329 /**
7330  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
7331  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
7332  * in priority order as decided after ACS operation in userspace.
7333  *
7334  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
7335  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
7336  *
7337  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
7338  * Array of nested values for each channel with following attributes:
7339  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7340  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7341  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7342  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7343  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7344  * Note: If both the driver and user-space application supports the 6 GHz band,
7345  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
7346  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
7347  * To maintain backward compatibility,
7348  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
7349  * is still used if either of the driver or user space application doesn't
7350  * support the 6 GHz band.
7351  *
7352  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
7353  * Primary channel number
7354  * Note: If both the driver and user-space application supports the 6 GHz band,
7355  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
7356  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
7357  * To maintain backward compatibility,
7358  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
7359  * is still used if either of the driver or user space application doesn't
7360  * support the 6 GHz band.
7361  *
7362  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
7363  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
7364  * Note: If both the driver and user-space application supports the 6 GHz band,
7365  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
7366  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
7367  * To maintain backward compatibility,
7368  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
7369  * is still used if either of the driver or user space application
7370  * doesn't support the 6 GHz band.
7371  *
7372  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
7373  * VHT seg0 channel number
7374  * Note: If both the driver and user-space application supports the 6 GHz band,
7375  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
7376  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
7377  * To maintain backward compatibility,
7378  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
7379  * is still used if either of the driver or user space application
7380  * doesn't support the 6 GHz band.
7381  *
7382  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7383  * VHT seg1 channel number
7384  * Note: If both the driver and user-space application supports the 6 GHz band,
7385  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7386  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7387  * To maintain backward compatibility,
7388  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7389  * is still used if either of the driver or user space application
7390  * doesn't support the 6 GHz band.
7391  *
7392  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7393  * Takes one of enum nl80211_chan_width values.
7394  *
7395  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7396  * Array of nested values for each channel with following attributes:
7397  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7398  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7399  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7400  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7401  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7402  * Note: If user-space application has no support of the 6 GHz band, this
7403  * attribute is optional.
7404  *
7405  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7406  * Primary channel frequency in MHz
7407  * Note: If user-space application has no support of the 6 GHz band, this
7408  * attribute is optional.
7409  *
7410  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7411  * Secondary channel frequency in MHz used for HT 40 MHz channels.
7412  * Note: If user-space application has no support of the 6 GHz band, this
7413  * attribute is optional.
7414  *
7415  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7416  * VHT seg0 channel frequency in MHz
7417  * Note: If user-space application has no support of the 6GHz band, this
7418  * attribute is optional.
7419  *
7420  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7421  * VHT seg1 channel frequency in MHz
7422  * Note: If user-space application has no support of the 6 GHz band, this
7423  * attribute is optional.
7424  */
7425 enum qca_wlan_vendor_attr_external_acs_channels {
7426 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7427 
7428 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7429 	 */
7430 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7431 
7432 	/* Array of nested values for each channel with following attributes:
7433 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7434 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7435 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7436 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7437 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7438 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7439 	 */
7440 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7441 	/* This (u8) will hold values of one of enum nl80211_bands */
7442 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7443 	/* Primary channel (u8) */
7444 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7445 	/* Secondary channel (u8) used for HT 40 MHz channels */
7446 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7447 	/* VHT seg0 channel (u8) */
7448 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7449 	/* VHT seg1 channel (u8) */
7450 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7451 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7452 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7453 
7454 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7455 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7456 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7457 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7458 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
7459 
7460 	/* keep last */
7461 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7462 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7463 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7464 };
7465 
7466 /**
7467  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
7468  * the ACS has to be triggered. These values are used by
7469  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
7470  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
7471  */
7472 enum qca_wlan_vendor_acs_select_reason {
7473 	/* Represents the reason that the ACS triggered during the AP start */
7474 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
7475 	/* Represents the reason that DFS found with the current channel */
7476 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
7477 	/* Represents the reason that LTE co-exist in the current band. */
7478 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
7479 	/* Represents the reason that generic, uncategorized interference has
7480 	 * been found in the current channel.
7481 	 */
7482 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
7483 	/* Represents the reason that excessive 802.11 interference has been
7484 	 * found in the current channel.
7485 	 */
7486 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
7487 	/* Represents the reason that generic Continuous Wave (CW) interference
7488 	 * has been found in the current channel.
7489 	 */
7490 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
7491 	/* Represents the reason that Microwave Oven (MWO) interference has been
7492 	 * found in the current channel.
7493 	 */
7494 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
7495 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
7496 	 * (FHSS) interference has been found in the current channel. This may
7497 	 * include 802.11 waveforms.
7498 	 */
7499 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
7500 	/* Represents the reason that non-802.11 generic Frequency-Hopping
7501 	 * Spread Spectrum (FHSS) interference has been found in the current
7502 	 * channel.
7503 	 */
7504 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
7505 	/* Represents the reason that generic Wideband (WB) interference has
7506 	 * been found in the current channel. This may include 802.11 waveforms.
7507 	 */
7508 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
7509 	/* Represents the reason that non-802.11 generic Wideband (WB)
7510 	 * interference has been found in the current channel.
7511 	 */
7512 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
7513 	/* Represents the reason that Jammer interference has been found in the
7514 	 * current channel.
7515 	 */
7516 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
7517 	/* Represents the reason that ACS triggered by AFC */
7518 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
7519 };
7520 
7521 /**
7522  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
7523  *
7524  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
7525  * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
7526  * to get the available value that this item can use.
7527  *
7528  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
7529  * value to specify the gpio number.
7530  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7531  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
7532  *
7533  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
7534  * value to specify the gpio output level, please refer to enum qca_gpio_value
7535  * to get the available value that this item can use.
7536  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7537  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
7538  *
7539  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
7540  * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
7541  * to get the available value that this item can use.
7542  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7543  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7544  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7545  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7546  * attribute is present.
7547  *
7548  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
7549  * value to specify the gpio interrupt mode, please refer to enum
7550  * qca_gpio_interrupt_mode to get the available value that this item can use.
7551  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7552  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7553  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7554  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7555  * attribute is present.
7556  *
7557  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
7558  * value to specify the gpio direction, please refer to enum qca_gpio_direction
7559  * to get the available value that this item can use.
7560  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7561  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7562  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7563  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7564  * attribute is present.
7565  *
7566  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
7567  * Value to specify the mux config. Meaning of a given value is dependent
7568  * on the target chipset and gpio pin. Must be of the range 0-15.
7569  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7570  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
7571  *
7572  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
7573  * Value to specify the drive, Refer to enum qca_gpio_drive.
7574  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7575  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
7576  *
7577  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
7578  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7579  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
7580  * other parameters for the given GPIO will be obtained from internal
7581  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
7582  * specified to indicate the GPIO pin being configured.
7583  */
7584 enum qca_wlan_gpio_attr {
7585 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
7586 	/* Unsigned 32-bit attribute for GPIO command */
7587 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
7588 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
7589 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
7590 	/* Unsigned 32-bit attribute for GPIO value to configure */
7591 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
7592 	/* Unsigned 32-bit attribute for GPIO pull type */
7593 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
7594 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
7595 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
7596 	/* Unsigned 32-bit attribute for GPIO direction to configure */
7597 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
7598 	/* Unsigned 32-bit attribute for GPIO mux config */
7599 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
7600 	/* Unsigned 32-bit attribute for GPIO drive */
7601 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
7602 	/* Flag attribute for using internal gpio configuration */
7603 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
7604 
7605 	/* keep last */
7606 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
7607 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
7608 		QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
7609 };
7610 
7611 /**
7612  * enum gpio_cmd_type - GPIO configuration command type
7613  * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
7614  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
7615  */
7616 enum qca_gpio_cmd_type {
7617 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
7618 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
7619 };
7620 
7621 /**
7622  * enum qca_gpio_pull_type - GPIO pull type
7623  * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
7624  * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
7625  * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
7626  */
7627 enum qca_gpio_pull_type {
7628 	QCA_WLAN_GPIO_PULL_NONE = 0,
7629 	QCA_WLAN_GPIO_PULL_UP = 1,
7630 	QCA_WLAN_GPIO_PULL_DOWN = 2,
7631 	QCA_WLAN_GPIO_PULL_MAX,
7632 };
7633 
7634 /**
7635  * enum qca_gpio_direction - GPIO direction
7636  * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
7637  * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
7638  * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
7639  */
7640 enum qca_gpio_direction {
7641 	QCA_WLAN_GPIO_INPUT = 0,
7642 	QCA_WLAN_GPIO_OUTPUT = 1,
7643 	QCA_WLAN_GPIO_DIR_MAX,
7644 };
7645 
7646 /**
7647  * enum qca_gpio_value - GPIO Value
7648  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
7649  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
7650  * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
7651  */
7652 enum qca_gpio_value {
7653 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
7654 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
7655 	QCA_WLAN_GPIO_LEVEL_MAX,
7656 };
7657 
7658 /**
7659  * enum gpio_interrupt_mode - GPIO interrupt mode
7660  * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
7661  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
7662  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
7663  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
7664  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
7665  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
7666  * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
7667  */
7668 enum qca_gpio_interrupt_mode {
7669 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
7670 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
7671 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
7672 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
7673 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
7674 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
7675 	QCA_WLAN_GPIO_INTMODE_MAX,
7676 };
7677 
7678 /**
7679  * enum gpio_drive - GPIO drive
7680  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
7681  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
7682  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
7683  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
7684  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
7685  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
7686  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
7687  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
7688  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
7689  */
7690 enum qca_gpio_drive {
7691 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
7692 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
7693 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
7694 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
7695 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
7696 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
7697 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
7698 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
7699 	QCA_WLAN_GPIO_DRIVE_MAX,
7700 };
7701 
7702 /**
7703  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
7704  * MSDUQ depth threshold per peer per tid in the target
7705  *
7706  * Associated Vendor Command:
7707  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
7708  */
7709 enum qca_wlan_set_qdepth_thresh_attr {
7710 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
7711 	/* 6-byte MAC address */
7712 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
7713 	/* Unsigned 32-bit attribute for holding the TID */
7714 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
7715 	/* Unsigned 32-bit attribute for holding the update mask
7716 	 * bit 0 - Update high priority msdu qdepth threshold
7717 	 * bit 1 - Update low priority msdu qdepth threshold
7718 	 * bit 2 - Update UDP msdu qdepth threshold
7719 	 * bit 3 - Update Non UDP msdu qdepth threshold
7720 	 * rest of bits are reserved
7721 	 */
7722 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
7723 	/* Unsigned 32-bit attribute for holding the threshold value */
7724 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
7725 
7726 	/* keep last */
7727 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
7728 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
7729 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
7730 };
7731 
7732 /**
7733  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
7734  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
7735  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
7736  * external ACS policies to select the channels w.r.t. the PCL weights.
7737  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
7738  * their PCL weights.)
7739  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
7740  * select a channel with non-zero PCL weight.
7741  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
7742  * channel with non-zero PCL weight.
7743  *
7744  */
7745 enum qca_wlan_vendor_attr_external_acs_policy {
7746 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
7747 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
7748 };
7749 
7750 /**
7751  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
7752  */
7753 enum qca_wlan_vendor_attr_spectral_scan {
7754 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
7755 	/*
7756 	 * Number of times the chip enters spectral scan mode before
7757 	 * deactivating spectral scans. When set to 0, chip will enter spectral
7758 	 * scan mode continuously. u32 attribute.
7759 	 */
7760 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
7761 	/*
7762 	 * Spectral scan period. Period increment resolution is 256*Tclk,
7763 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
7764 	 */
7765 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
7766 	/* Spectral scan priority. u32 attribute. */
7767 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
7768 	/* Number of FFT data points to compute. u32 attribute. */
7769 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
7770 	/*
7771 	 * Enable targeted gain change before starting the spectral scan FFT.
7772 	 * u32 attribute.
7773 	 */
7774 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
7775 	/* Restart a queued spectral scan. u32 attribute. */
7776 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
7777 	/*
7778 	 * Noise floor reference number for the calculation of bin power.
7779 	 * u32 attribute.
7780 	 */
7781 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
7782 	/*
7783 	 * Disallow spectral scan triggers after TX/RX packets by setting
7784 	 * this delay value to roughly SIFS time period or greater.
7785 	 * u32 attribute.
7786 	 */
7787 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
7788 	/*
7789 	 * Number of strong bins (inclusive) per sub-channel, below
7790 	 * which a signal is declared a narrow band tone. u32 attribute.
7791 	 */
7792 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
7793 	/*
7794 	 * Specify the threshold over which a bin is declared strong (for
7795 	 * scan bandwidth analysis). u32 attribute.
7796 	 */
7797 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
7798 	/* Spectral scan report mode. u32 attribute. */
7799 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
7800 	/*
7801 	 * RSSI report mode, if the ADC RSSI is below
7802 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
7803 	 * then FFTs will not trigger, but timestamps and summaries get
7804 	 * reported. u32 attribute.
7805 	 */
7806 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
7807 	/*
7808 	 * ADC RSSI must be greater than or equal to this threshold (signed dB)
7809 	 * to ensure spectral scan reporting with normal error code.
7810 	 * u32 attribute.
7811 	 */
7812 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
7813 	/*
7814 	 * Format of frequency bin magnitude for spectral scan triggered FFTs:
7815 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
7816 	 * u32 attribute.
7817 	 */
7818 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
7819 	/*
7820 	 * Format of FFT report to software for spectral scan triggered FFTs.
7821 	 * 0: No FFT report (only spectral scan summary report)
7822 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
7823 	 * report
7824 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
7825 	 * bins (in-band) per FFT + spectral scan summary report
7826 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
7827 	 * bins (all) per FFT + spectral scan summary report
7828 	 * u32 attribute.
7829 	 */
7830 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
7831 	/*
7832 	 * Number of LSBs to shift out in order to scale the FFT bins.
7833 	 * u32 attribute.
7834 	 */
7835 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
7836 	/*
7837 	 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
7838 	 * in dBm power. u32 attribute.
7839 	 */
7840 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
7841 	/*
7842 	 * Per chain enable mask to select input ADC for search FFT.
7843 	 * u32 attribute.
7844 	 */
7845 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
7846 	/*
7847 	 * An unsigned 64-bit integer provided by host driver to identify the
7848 	 * spectral scan request. This attribute is included in the scan
7849 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
7850 	 * and used as an attribute in
7851 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
7852 	 * specific scan to be stopped.
7853 	 */
7854 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
7855 	/* Skip interval for FFT reports. u32 attribute */
7856 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
7857 	/* Set to report only one set of FFT results.
7858 	 * u32 attribute.
7859 	 */
7860 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
7861 	/* Debug level for spectral module in driver.
7862 	 * 0 : Verbosity level 0
7863 	 * 1 : Verbosity level 1
7864 	 * 2 : Verbosity level 2
7865 	 * 3 : Matched filterID display
7866 	 * 4 : One time dump of FFT report
7867 	 * u32 attribute.
7868 	 */
7869 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
7870 	/* Type of spectral scan request. u32 attribute.
7871 	 * It uses values defined in enum
7872 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
7873 	 */
7874 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
7875 	/* This specifies the frequency span over which spectral
7876 	 * scan would be carried out. Its value depends on the
7877 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
7878 	 * the relation is as follows.
7879 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7880 	 *    Not applicable. Spectral scan would happen in the
7881 	 *    operating span.
7882 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7883 	 *    Center frequency (in MHz) of the span of interest or
7884 	 *    for convenience, center frequency (in MHz) of any channel
7885 	 *    in the span of interest. For 80+80 MHz agile spectral scan
7886 	 *    request it represents center frequency (in MHz) of the primary
7887 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
7888 	 *    channel in the primary 80 MHz span. If agile spectral scan is
7889 	 *    initiated without setting a valid frequency it returns the
7890 	 *    error code
7891 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
7892 	 * u32 attribute.
7893 	 */
7894 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
7895 	/* Spectral scan mode. u32 attribute.
7896 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7897 	 * If this attribute is not present, it is assumed to be
7898 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
7899 	 */
7900 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
7901 	/* Spectral scan error code. u32 attribute.
7902 	 * It uses values defined in enum
7903 	 * qca_wlan_vendor_spectral_scan_error_code.
7904 	 * This attribute is included only in failure scenarios.
7905 	 */
7906 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
7907 	/* 8-bit unsigned value to enable/disable debug of the
7908 	 * Spectral DMA ring.
7909 	 * 1-enable, 0-disable
7910 	 */
7911 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
7912 	/* 8-bit unsigned value to enable/disable debug of the
7913 	 * Spectral DMA buffers.
7914 	 * 1-enable, 0-disable
7915 	 */
7916 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
7917 	/* This specifies the frequency span over which spectral scan would be
7918 	 * carried out. Its value depends on the value of
7919 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
7920 	 * follows.
7921 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7922 	 *    Not applicable. Spectral scan would happen in the operating span.
7923 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7924 	 *    This attribute is applicable only for agile spectral scan
7925 	 *    requests in 80+80 MHz mode. It represents center frequency (in
7926 	 *    MHz) of the secondary 80 MHz span or for convenience, center
7927 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
7928 	 * u32 attribute.
7929 	 */
7930 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
7931 	/* This attribute specifies the bandwidth to be used for Spectral scan
7932 	 * operation. This is an u8 attribute and uses the values in enum
7933 	 * nl80211_chan_width.  This is an optional attribute.
7934 	 * If this attribute is not populated, the driver should configure the
7935 	 * Spectral scan bandwidth to the maximum value supported by the target
7936 	 * for the current operating bandwidth.
7937 	 */
7938 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
7939 	/* Spectral FFT recapture flag attribute, to enable/disable FFT
7940 	 * recapture. Recapture can only be enabled for Scan period greater
7941 	 * than 52us.
7942 	 * If this attribute is enabled, re-triggers will be enabled in uCode
7943 	 * when AGC gain changes.
7944 	 */
7945 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
7946 
7947 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
7948 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
7949 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
7950 };
7951 
7952 /**
7953  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
7954  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
7955  */
7956 enum qca_wlan_vendor_attr_spectral_diag_stats {
7957 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
7958 	/* Number of spectral TLV signature mismatches.
7959 	 * u64 attribute.
7960 	 */
7961 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
7962 	/* Number of spectral phyerror events with insufficient length when
7963 	 * parsing for secondary 80 search FFT report. u64 attribute.
7964 	 */
7965 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
7966 	/* Number of spectral phyerror events without secondary 80
7967 	 * search FFT report. u64 attribute.
7968 	 */
7969 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
7970 	/* Number of spectral phyerror events with vht operation segment 1 id
7971 	 * mismatches in search fft report. u64 attribute.
7972 	 */
7973 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
7974 	/* Number of spectral phyerror events with vht operation segment 2 id
7975 	 * mismatches in search fft report. u64 attribute.
7976 	 */
7977 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
7978 
7979 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
7980 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
7981 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
7982 };
7983 
7984 /**
7985  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
7986  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
7987  */
7988 enum qca_wlan_vendor_attr_spectral_cap {
7989 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
7990 	/* Flag attribute to indicate phydiag capability */
7991 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
7992 	/* Flag attribute to indicate radar detection capability */
7993 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
7994 	/* Flag attribute to indicate spectral capability */
7995 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
7996 	/* Flag attribute to indicate advanced spectral capability */
7997 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
7998 	/* Spectral hardware generation. u32 attribute.
7999 	 * It uses values defined in enum
8000 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
8001 	 */
8002 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
8003 	/* Spectral bin scaling formula ID. u16 attribute.
8004 	 * It uses values defined in enum
8005 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
8006 	 */
8007 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
8008 	/* Spectral bin scaling param - low level offset.
8009 	 * s16 attribute.
8010 	 */
8011 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
8012 	/* Spectral bin scaling param - high level offset.
8013 	 * s16 attribute.
8014 	 */
8015 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
8016 	/* Spectral bin scaling param - RSSI threshold.
8017 	 * s16 attribute.
8018 	 */
8019 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
8020 	/* Spectral bin scaling param - default AGC max gain.
8021 	 * u8 attribute.
8022 	 */
8023 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
8024 	/* Flag attribute to indicate agile spectral scan capability
8025 	 * for 20/40/80 MHz modes.
8026 	 */
8027 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
8028 	/* Flag attribute to indicate agile spectral scan capability
8029 	 * for 160 MHz mode.
8030 	 */
8031 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
8032 	/* Flag attribute to indicate agile spectral scan capability
8033 	 * for 80+80 MHz mode.
8034 	 */
8035 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
8036 	/* Number of spectral detectors used for scan in 20 MHz.
8037 	 * u32 attribute.
8038 	 */
8039 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
8040 	/* Number of spectral detectors used for scan in 40 MHz.
8041 	 * u32 attribute.
8042 	 */
8043 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
8044 	/* Number of spectral detectors used for scan in 80 MHz.
8045 	 * u32 attribute.
8046 	 */
8047 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
8048 	/* Number of spectral detectors used for scan in 160 MHz.
8049 	 * u32 attribute.
8050 	 */
8051 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
8052 	/* Number of spectral detectors used for scan in 80+80 MHz.
8053 	 * u32 attribute.
8054 	 */
8055 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
8056 	/* Flag attribute to indicate agile spectral scan capability
8057 	 * for 320 MHz mode.
8058 	 */
8059 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
8060 	/* Number of spectral detectors used for scan in 320 MHz.
8061 	 * u32 attribute.
8062 	 */
8063 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
8064 
8065 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
8066 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
8067 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
8068 };
8069 
8070 /**
8071  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
8072  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
8073  */
8074 enum qca_wlan_vendor_attr_spectral_scan_status {
8075 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
8076 	/* Flag attribute to indicate whether spectral scan is enabled */
8077 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
8078 	/* Flag attribute to indicate whether spectral scan is in progress*/
8079 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
8080 	/* Spectral scan mode. u32 attribute.
8081 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8082 	 * If this attribute is not present, normal mode
8083 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
8084 	 * requested.
8085 	 */
8086 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
8087 
8088 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
8089 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
8090 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
8091 };
8092 
8093 /**
8094  * enum qca_wlan_vendor_attr_config_latency_level - Level for
8095  * wlan latency module.
8096  *
8097  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8098  * power saving which would causing data exchange out of service, this
8099  * would be a big impact on latency. For latency sensitive applications over
8100  * Wi-Fi are intolerant to such operations and thus would configure them
8101  * to meet their respective needs. It is well understood by such applications
8102  * that altering the default behavior would degrade the Wi-Fi functionality
8103  * w.r.t the above pointed WLAN operations.
8104  *
8105  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8106  *      Default WLAN operation level which throughput orientated.
8107  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8108  *      Use XR level to benefit XR (extended reality) application to achieve
8109  *      latency and power by via constraint scan/roaming/adaptive PS.
8110  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
8111  *      Use low latency level to benifit application like concurrent
8112  *      downloading or video streaming via constraint scan/adaptive PS.
8113  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8114  *      Use ultra low latency level to benefit for gaming/voice
8115  *      application via constraint scan/roaming/adaptive PS.
8116  */
8117 enum qca_wlan_vendor_attr_config_latency_level {
8118 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8119 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
8120 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8121 	/* legacy name */
8122 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8123 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
8124 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8125 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8126 
8127 	/* keep last */
8128 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8129 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8130 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8131 };
8132 
8133 /**
8134  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
8135  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
8136  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
8137  * spectral scan request types.
8138  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
8139  * set the spectral parameters and start scan.
8140  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
8141  * only set the spectral parameters.
8142  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
8143  * only start the spectral scan.
8144  */
8145 enum qca_wlan_vendor_attr_spectral_scan_request_type {
8146 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
8147 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
8148 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
8149 };
8150 
8151 /**
8152  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
8153  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
8154  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
8155  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
8156  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
8157  * spectral scan modes.
8158  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
8159  * spectral scan in the current operating span.
8160  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
8161  * spectral scan in the configured agile span.
8162  */
8163 enum qca_wlan_vendor_spectral_scan_mode {
8164 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
8165 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
8166 };
8167 
8168 /**
8169  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
8170  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
8171  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
8172  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
8173  * of a parameter is not supported.
8174  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
8175  * mode is not supported.
8176  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
8177  * has invalid value.
8178  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
8179  * is not initialized.
8180  */
8181 enum qca_wlan_vendor_spectral_scan_error_code {
8182 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
8183 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
8184 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
8185 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
8186 };
8187 
8188 /**
8189  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
8190  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
8191  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8192  * spectral hardware generation.
8193  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
8194  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
8195  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
8196  */
8197 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
8198 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
8199 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
8200 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
8201 };
8202 
8203 /**
8204  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
8205  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
8206  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8207  * Spectral bin scaling formula ID.
8208  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
8209  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
8210  * and RSSI threshold based formula.
8211  */
8212 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
8213 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
8214 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
8215 };
8216 
8217 /**
8218  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
8219  * RF Operating Parameter (RROP) information is available, and if so, at which
8220  * point in the application-driver interaction sequence it can be retrieved by
8221  * the application from the driver. This point may vary by architecture and
8222  * other factors. This is a u16 value.
8223  */
8224 enum qca_wlan_vendor_attr_rropavail_info {
8225 	/* RROP information is unavailable. */
8226 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
8227 	/* RROP information is available and the application can retrieve the
8228 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
8229 	 * event from the driver.
8230 	 */
8231 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
8232 	/* RROP information is available only after a vendor specific scan
8233 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
8234 	 * successfully completed. The application can retrieve the information
8235 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
8236 	 * the driver.
8237 	 */
8238 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
8239 };
8240 
8241 /**
8242  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
8243  * Representative RF Operating Parameter (RROP) information. It is sent for the
8244  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
8245  * intended for use by external Auto Channel Selection applications. It provides
8246  * guidance values for some RF parameters that are used by the system during
8247  * operation. These values could vary by channel, band, radio, and so on.
8248  */
8249 enum qca_wlan_vendor_attr_rrop_info {
8250 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
8251 
8252 	/* Representative Tx Power List (RTPL) which has an array of nested
8253 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
8254 	 */
8255 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
8256 
8257 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
8258 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
8259 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
8260 };
8261 
8262 /**
8263  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
8264  * entry instances in the Representative Tx Power List (RTPL). It provides
8265  * simplified power values intended for helping external Auto channel Selection
8266  * applications compare potential Tx power performance between channels, other
8267  * operating conditions remaining identical. These values are not necessarily
8268  * the actual Tx power values that will be used by the system. They are also not
8269  * necessarily the max or average values that will be used. Instead, they are
8270  * relative, summarized keys for algorithmic use computed by the driver or
8271  * underlying firmware considering a number of vendor specific factors.
8272  */
8273 enum qca_wlan_vendor_attr_rtplinst {
8274 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
8275 
8276 	/* Primary channel number (u8).
8277 	 * Note: If both the driver and user space application support the
8278 	 * 6 GHz band, this attribute is deprecated and
8279 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
8280 	 * maintain backward compatibility,
8281 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
8282 	 * driver or user space application or both do not support the 6 GHz
8283 	 * band.
8284 	 */
8285 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
8286 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
8287 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
8288 	/* Representative Tx power in dBm (s32) with emphasis on range. */
8289 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
8290 	/* Primary channel center frequency (u32) in MHz */
8291 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
8292 
8293 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
8294 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
8295 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
8296 };
8297 
8298 /**
8299  * enum qca_wlan_vendor_attr_mac - Used by the vendor command
8300  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8301  *
8302  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
8303  *  array of nested values as per attributes in
8304  *  enum qca_wlan_vendor_attr_mac_mode_info.
8305  */
8306 enum qca_wlan_vendor_attr_mac {
8307 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
8308 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
8309 
8310 	/* keep last */
8311 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
8312 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
8313 		QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
8314 };
8315 
8316 /**
8317  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
8318  * WiFi netdev interface on a respective MAC. Used by the attribute
8319  * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
8320  *
8321  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
8322  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
8323  *  the connected Wi-Fi interface(u32).
8324  */
8325 enum qca_wlan_vendor_attr_mac_iface_info {
8326 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
8327 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
8328 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
8329 
8330 	/* keep last */
8331 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
8332 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
8333 		QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
8334 };
8335 
8336 /**
8337  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
8338  *  Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
8339  *  vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8340  *
8341  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
8342  *  MAC (u32)
8343  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
8344  *  at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
8345  *  in enum nl80211_band.
8346  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
8347  * interfaces associated with this MAC. Represented by enum
8348  * qca_wlan_vendor_attr_mac_iface_info.
8349  */
8350 enum qca_wlan_vendor_attr_mac_info {
8351 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
8352 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
8353 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
8354 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
8355 
8356 	/* keep last */
8357 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
8358 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
8359 		QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
8360 
8361 };
8362 
8363 /**
8364  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
8365  * to get thermal status from driver/firmware.
8366  * enum values are used for NL attributes encapsulated inside
8367  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
8368  *
8369  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
8370  * of a thermal level in Celsius. u32 size.
8371  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
8372  * of a thermal level in Celsius. u32 size.
8373  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
8374  * thermal level in milliseconds. u32 size.
8375  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
8376  * of times the temperature crossed into the temperature range defined by the
8377  * thermal level from both higher and lower directions. u32 size.
8378  */
8379 enum qca_wlan_vendor_attr_thermal_stats {
8380 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
8381 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
8382 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
8383 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
8384 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
8385 
8386 	/* keep last */
8387 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
8388 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
8389 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
8390 };
8391 
8392 /**
8393  * enum he_fragmentation_val - HE fragmentation support values
8394  * Indicates level of dynamic fragmentation that is supported by
8395  * a STA as a recipient.
8396  * HE fragmentation values are defined as per 11ax spec and are used in
8397  * HE capability IE to advertise the support. These values are validated
8398  * in the driver to check the device capability and advertised in the HE
8399  * capability element.
8400  *
8401  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8402  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8403  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
8404  *	within an A-MPDU that is not an S-MPDU.
8405  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8406  *	contained within an MPDU or S-MPDU and support for up to one dynamic
8407  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
8408  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8409  *	MPDU or S-MPDU.
8410  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8411  *	contained within an MPDU or S-MPDU and support for multiple dynamic
8412  *	fragments for each MSDU and for each A-MSDU if supported by the
8413  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8414  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8415  */
8416 enum he_fragmentation_val {
8417 	HE_FRAG_DISABLE,
8418 	HE_FRAG_LEVEL1,
8419 	HE_FRAG_LEVEL2,
8420 	HE_FRAG_LEVEL3,
8421 };
8422 
8423 /**
8424  * enum he_mcs_config - HE MCS support configuration
8425  *
8426  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8427  * These values are used in driver to configure the HE MCS map to advertise
8428  * Tx/Rx MCS map in HE capability and these values are applied for all the
8429  * streams supported by the device. To configure MCS for different bandwidths,
8430  * vendor command needs to be sent using this attribute with appropriate value.
8431  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8432  * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
8433  * for HE_160_MCS0_11 send this command using HE MCS config attribute with
8434  * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
8435  *
8436  * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
8437  * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
8438  * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
8439  * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
8440  * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
8441  * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
8442  * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
8443  * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
8444  * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
8445  */
8446 enum he_mcs_config {
8447 	HE_80_MCS0_7 = 0,
8448 	HE_80_MCS0_9 = 1,
8449 	HE_80_MCS0_11 = 2,
8450 	HE_160_MCS0_7 = 4,
8451 	HE_160_MCS0_9 = 5,
8452 	HE_160_MCS0_11 = 6,
8453 	HE_80p80_MCS0_7 = 8,
8454 	HE_80p80_MCS0_9 = 9,
8455 	HE_80p80_MCS0_11 = 10,
8456 };
8457 
8458 /**
8459  * enum qca_wlan_ba_session_config - BA session configuration
8460  *
8461  * Indicates the configuration values for BA session configuration attribute.
8462  *
8463  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8464  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8465  */
8466 enum qca_wlan_ba_session_config {
8467 	QCA_WLAN_ADD_BA = 1,
8468 	QCA_WLAN_DELETE_BA = 2,
8469 };
8470 
8471 /**
8472  * enum qca_wlan_ac_type - access category type
8473  *
8474  * Indicates the access category type value.
8475  *
8476  * @QCA_WLAN_AC_BE: BE access category
8477  * @QCA_WLAN_AC_BK: BK access category
8478  * @QCA_WLAN_AC_VI: VI access category
8479  * @QCA_WLAN_AC_VO: VO access category
8480  * @QCA_WLAN_AC_ALL: All ACs
8481  */
8482 enum qca_wlan_ac_type {
8483 	QCA_WLAN_AC_BE = 0,
8484 	QCA_WLAN_AC_BK = 1,
8485 	QCA_WLAN_AC_VI = 2,
8486 	QCA_WLAN_AC_VO = 3,
8487 	QCA_WLAN_AC_ALL = 4,
8488 };
8489 
8490 /**
8491  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8492  *
8493  * Indicates the HE LTF configuration value.
8494  *
8495  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
8496  * the mandatory HE-LTF based on the GI setting
8497  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8498  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8499  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8500  */
8501 enum qca_wlan_he_ltf_cfg {
8502 	QCA_WLAN_HE_LTF_AUTO = 0,
8503 	QCA_WLAN_HE_LTF_1X = 1,
8504 	QCA_WLAN_HE_LTF_2X = 2,
8505 	QCA_WLAN_HE_LTF_4X = 3,
8506 };
8507 
8508 /**
8509  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8510  *
8511  * Indicates the HE trigger frame MAC padding duration value.
8512  *
8513  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8514  * process the trigger frame.
8515  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8516  * trigger frame.
8517  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8518  * trigger frame.
8519  */
8520 enum qca_wlan_he_mac_padding_dur {
8521 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8522 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8523 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8524 };
8525 
8526 /**
8527  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8528  *
8529  * Indicates the HE Operating mode control channel width setting value.
8530  *
8531  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8532  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8533  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8534  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8535  */
8536 enum qca_wlan_he_om_ctrl_ch_bw {
8537 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8538 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8539 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8540 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8541 };
8542 
8543 /**
8544  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8545  *
8546  * Indicates the frame types to use for keep alive data.
8547  *
8548  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8549  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8550  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8551  */
8552 enum qca_wlan_keep_alive_data_type {
8553 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8554 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
8555 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8556 };
8557 
8558 /**
8559  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8560  * HE operating mode control transmit request. These attributes are
8561  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8562  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8563  *
8564  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8565  * indicates the maximum number of spatial streams, NSS, that the STA
8566  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8567  * and is set to NSS - 1.
8568  *
8569  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8570  * indicates the operating channel width supported by the STA for both
8571  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8572  *
8573  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8574  * indicates the all trigger based UL MU operations by the STA.
8575  * 0 - UL MU operations are enabled by the STA.
8576  * 1 - All triggered UL MU transmissions are suspended by the STA.
8577  *
8578  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8579  * indicates the maximum number of space-time streams, NSTS, that
8580  * the STA supports in transmission and is set to NSTS - 1.
8581  *
8582  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8583  * combined with the UL MU Disable subfield and the recipient's setting
8584  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8585  * capabilities to determine which HE TB PPDUs are possible by the
8586  * STA to transmit.
8587  * 0 - UL MU data operations are enabled by the STA.
8588  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8589  * bit is not set, else UL MU Tx is suspended.
8590  *
8591  */
8592 enum qca_wlan_vendor_attr_he_omi_tx {
8593 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8594 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8595 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8596 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8597 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
8598 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
8599 
8600 	/* keep last */
8601 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8602 	QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8603 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8604 };
8605 
8606 /**
8607  * enum qca_wlan_vendor_phy_mode - Different PHY modes
8608  * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8609  *
8610  * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8611  * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8612  * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8613  * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8614  * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8615  * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8616  * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8617  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8618  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8619  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8620  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8621  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8622  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8623  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8624  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8625  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8626  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8627  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8628  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8629  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8630  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8631  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8632  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8633  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8634  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8635  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8636  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8637  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8638  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8639  */
8640 enum qca_wlan_vendor_phy_mode {
8641 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8642 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8643 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8644 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8645 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8646 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8647 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8648 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8649 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8650 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8651 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8652 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8653 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8654 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8655 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8656 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8657 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8658 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8659 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8660 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8661 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8662 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8663 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8664 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8665 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8666 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8667 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8668 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8669 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8670 };
8671 
8672 /* Attributes for data used by
8673  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8674  */
8675 enum qca_wlan_vendor_attr_wifi_test_config {
8676 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8677 	/* 8-bit unsigned value to configure the driver to enable/disable
8678 	 * WMM feature. This attribute is used to configure testbed device.
8679 	 * 1-enable, 0-disable
8680 	 */
8681 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8682 
8683 	/* 8-bit unsigned value to configure the driver to accept/reject
8684 	 * the addba request from peer. This attribute is used to configure
8685 	 * the testbed device.
8686 	 * 1-accept addba, 0-reject addba
8687 	 */
8688 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8689 
8690 	/* 8-bit unsigned value to configure the driver to send or not to
8691 	 * send the addba request to peer.
8692 	 * This attribute is used to configure the testbed device.
8693 	 * 1-send addba, 0-do not send addba
8694 	 */
8695 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8696 
8697 	/* 8-bit unsigned value to indicate the HE fragmentation support.
8698 	 * Uses enum he_fragmentation_val values.
8699 	 * This attribute is used to configure the testbed device to
8700 	 * allow the advertised hardware capabilities to be downgraded
8701 	 * for testing purposes.
8702 	 */
8703 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8704 
8705 	/* 8-bit unsigned value to indicate the HE MCS support.
8706 	 * Uses enum he_mcs_config values.
8707 	 * This attribute is used to configure the testbed device to
8708 	 * allow the advertised hardware capabilities to be downgraded
8709 	 * for testing purposes.
8710 	 */
8711 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8712 
8713 	/* 8-bit unsigned value to configure the driver to allow or not to
8714 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8715 	 * This attribute is used to configure the testbed device.
8716 	 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
8717 	 */
8718 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8719 
8720 	/* 8-bit unsigned value to configure the driver to add a
8721 	 * new BA session or delete the existing BA session for
8722 	 * given TID. ADDBA command uses the buffer size and tid
8723 	 * configuration if user specifies the values else default
8724 	 * value for buffer size is used for all tids if the tid
8725 	 * also not specified. For DEL_BA command TID value is
8726 	 * required to process the command.
8727 	 * Uses enum qca_wlan_ba_session_config values.
8728 	 * This attribute is used to configure the testbed device.
8729 	 */
8730 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
8731 
8732 	/* 16-bit unsigned value to configure the buffer size in addba
8733 	 * request and response frames.
8734 	 * This attribute is used to configure the testbed device.
8735 	 * The range of the value is 0 to 256.
8736 	 */
8737 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
8738 
8739 	/* 8-bit unsigned value to configure the buffer size in addba
8740 	 * request and response frames.
8741 	 * This attribute is used to configure the testbed device.
8742 	 */
8743 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
8744 
8745 	/* 8-bit unsigned value to configure the no ack policy.
8746 	 * To configure no ack policy, access category value
8747 	 * is required to process the command.
8748 	 * This attribute is used to configure the testbed device.
8749 	 * 1 - enable no ack, 0 - disable no ack
8750 	 */
8751 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
8752 
8753 	/* 8-bit unsigned value to configure the AC for no ack policy
8754 	 * This attribute is used to configure the testbed device.
8755 	 * uses the enum qca_wlan_ac_type values
8756 	 */
8757 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
8758 
8759 	/* 8-bit unsigned value to configure the HE LTF
8760 	 * This attribute is used to configure the testbed device.
8761 	 * Uses the enum qca_wlan_he_ltf_cfg values.
8762 	 */
8763 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
8764 
8765 	/* 8-bit unsigned value to configure the tx beamformee.
8766 	 * This attribute is used to configure the testbed device.
8767 	 * 1 - enable, 0 - disable.
8768 	 */
8769 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
8770 
8771 	/* 8-bit unsigned value to configure the tx beamformee number of
8772 	 * space-time streams.
8773 	 * This attribute is used to configure the testbed device.
8774 	 * The range of the value is 0 to 8
8775 	 */
8776 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
8777 
8778 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
8779 	 * This attribute is used to configure the testbed device.
8780 	 * Uses the enum qca_wlan_ac_type values.
8781 	 */
8782 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
8783 
8784 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
8785 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
8786 	 * is required to process the command.
8787 	 * This attribute is used to configure the testbed device.
8788 	 */
8789 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
8790 
8791 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
8792 	 * given AC.
8793 	 * To configure MU EDCA ECW min value, MU EDCA access category value
8794 	 * is required to process the command.
8795 	 * This attribute is used to configure the testbed device.
8796 	 */
8797 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
8798 
8799 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
8800 	 * given AC.
8801 	 * To configure MU EDCA ECW max value, MU EDCA access category value
8802 	 * is required to process the command.
8803 	 * This attribute is used to configure the testbed device.
8804 	 */
8805 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
8806 
8807 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
8808 	 * To configure MU EDCA timer value, MU EDCA access category value
8809 	 * is required to process the command.
8810 	 * This attribute is used to configure the testbed device.
8811 	 */
8812 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
8813 
8814 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
8815 	 * duration.
8816 	 * This attribute is used to configure the testbed device.
8817 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
8818 	 */
8819 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
8820 
8821 	/* 8-bit unsigned value to override the MU EDCA params to defaults
8822 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
8823 	 * the default values else use the MU EDCA params from AP beacon.
8824 	 * This attribute is used to configure the testbed device.
8825 	 * 1 - enable override, 0 - disable.
8826 	 */
8827 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
8828 
8829 	/* 8-bit unsigned value to configure the support for receiving
8830 	 * an MPDU that contains an operating mode control subfield.
8831 	 * This attribute is used to configure the testbed device.
8832 	 * 1-enable, 0-disable.
8833 	 */
8834 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
8835 
8836 	/* Nested attribute values required to setup the TWT session.
8837 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
8838 	 * information to set up the session. It contains broadcast flags,
8839 	 * set_up flags, trigger value, flow type, flow ID, wake interval
8840 	 * exponent, protection, target wake time, wake duration, wake interval
8841 	 * mantissa. These nested attributes are used to setup a host triggered
8842 	 * TWT session.
8843 	 */
8844 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
8845 
8846 	/* This nested attribute is used to terminate the current TWT session.
8847 	 * It does not currently carry any attributes.
8848 	 */
8849 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
8850 
8851 	/* This nested attribute is used to suspend the current TWT session.
8852 	 * It does not currently carry any attributes.
8853 	 */
8854 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
8855 
8856 	/* Nested attribute values to indicate the request for resume.
8857 	 * This attribute is used to resume the TWT session.
8858 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
8859 	 * parameters required to resume the TWT session.
8860 	 */
8861 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
8862 
8863 	/* 8-bit unsigned value to set the HE operating mode control
8864 	 * (OM CTRL) Channel Width subfield.
8865 	 * The Channel Width subfield indicates the operating channel width
8866 	 * supported by the STA for both reception and transmission.
8867 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
8868 	 * This setting is cleared with the
8869 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8870 	 * flag attribute to reset defaults.
8871 	 * This attribute is used to configure the testbed device.
8872 	 */
8873 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
8874 
8875 	/* 8-bit unsigned value to configure the number of spatial
8876 	 * streams in HE operating mode control field.
8877 	 * This setting is cleared with the
8878 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8879 	 * flag attribute to reset defaults.
8880 	 * This attribute is used to configure the testbed device.
8881 	 */
8882 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
8883 
8884 	/* Flag attribute to configure the UL MU disable bit in
8885 	 * HE operating mode control field.
8886 	 * This setting is cleared with the
8887 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8888 	 * flag attribute to reset defaults.
8889 	 * This attribute is used to configure the testbed device.
8890 	 */
8891 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
8892 
8893 	/* Flag attribute to clear the previously set HE operating mode
8894 	 * control field configuration.
8895 	 * This attribute is used to configure the testbed device to reset
8896 	 * defaults to clear any previously set HE operating mode control
8897 	 * field configuration.
8898 	 */
8899 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
8900 
8901 	/* 8-bit unsigned value to configure HE single user PPDU
8902 	 * transmission. By default this setting is disabled and it
8903 	 * is disabled in the reset defaults of the device configuration.
8904 	 * This attribute is used to configure the testbed device.
8905 	 * 1-enable, 0-disable
8906 	 */
8907 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
8908 
8909 	/* 8-bit unsigned value to configure action frame transmission
8910 	 * in HE trigger based PPDU transmission.
8911 	 * By default this setting is disabled and it is disabled in
8912 	 * the reset defaults of the device configuration.
8913 	 * This attribute is used to configure the testbed device.
8914 	 * 1-enable, 0-disable
8915 	 */
8916 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
8917 
8918 	/* Nested attribute to indicate HE operating mode control field
8919 	 * transmission. It contains operating mode control field Nss,
8920 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
8921 	 * These nested attributes are used to send HE operating mode control
8922 	 * with configured values.
8923 	 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
8924 	 * This attribute is used to configure the testbed device.
8925 	 */
8926 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
8927 
8928 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
8929 	 * support for the reception of a frame that carries an HE variant
8930 	 * HT Control field.
8931 	 * This attribute is used to configure the testbed device.
8932 	 * 1-enable, 0-disable
8933 	 */
8934 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
8935 
8936 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
8937 	 * This attribute is used to configure the testbed device.
8938 	 * 1-enable, 0-disable
8939 	 */
8940 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
8941 
8942 	/* 8-bit unsigned value to configure HE testbed defaults.
8943 	 * This attribute is used to configure the testbed device.
8944 	 * 1-set the device HE capabilities to testbed defaults.
8945 	 * 0-reset the device HE capabilities to supported config.
8946 	 */
8947 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
8948 
8949 	/* 8-bit unsigned value to configure twt request support.
8950 	 * This attribute is used to configure the testbed device.
8951 	 * 1-enable, 0-disable.
8952 	 */
8953 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
8954 
8955 	/* 8-bit unsigned value to configure protection for Management
8956 	 * frames when PMF is enabled for the association.
8957 	 * This attribute is used to configure the testbed device.
8958 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
8959 	 */
8960 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
8961 
8962 	/* Flag attribute to inject Disassociation frame to the connected AP.
8963 	 * This attribute is used to configure the testbed device.
8964 	 */
8965 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
8966 
8967 	/* 8-bit unsigned value to configure an override for the RSNXE Used
8968 	 * subfield in the MIC control field of the FTE in FT Reassociation
8969 	 * Request frame.
8970 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
8971 	 * This attribute is used to configure the testbed device.
8972 	 * This attribute can be configured when STA is in disconnected or
8973 	 * associated state and the configuration is valid until the next
8974 	 * disconnection.
8975 	 */
8976 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
8977 
8978 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
8979 	 * Switch Announcement) when STA is in connected state.
8980 	 * 0 - Default behavior, 1 - Ignore CSA.
8981 	 * This attribute is used to configure the testbed device.
8982 	 * This attribute can be configured when STA is in disconnected or
8983 	 * associated state and the configuration is valid until the next
8984 	 * disconnection.
8985 	 */
8986 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
8987 
8988 	/* Nested attribute values required to configure OCI (Operating Channel
8989 	 * Information). Attributes defined in enum
8990 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
8991 	 * This attribute is used to configure the testbed device.
8992 	 * This attribute can be configured when STA is in disconnected or
8993 	 * associated state and the configuration is valid until the next
8994 	 * disconnection.
8995 	 */
8996 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
8997 
8998 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
8999 	 * Query timeout. If this configuration is enabled STA shall not send
9000 	 * Deauthentication frmae when SA Query times out (mainly, after a
9001 	 * channel switch when OCV is enabled).
9002 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9003 	 * This attribute is used to configure the testbed device.
9004 	 * This attribute can be configured only when STA is in associated state
9005 	 * and the configuration is valid until the disconnection.
9006 	 */
9007 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9008 
9009 	/* 8-bit unsigned value to configure the driver/firmware to start or
9010 	 * stop transmitting FILS discovery frames.
9011 	 * 0 - Stop transmitting FILS discovery frames
9012 	 * 1 - Start transmitting FILS discovery frames
9013 	 * This attribute is used to configure the testbed device.
9014 	 * This attribute can be configured only in AP mode and the
9015 	 * configuration is valid until AP restart.
9016 	 */
9017 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9018 
9019 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9020 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9021 	 * information field.
9022 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
9023 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
9024 	 * This attribute is used to configure the testbed device.
9025 	 */
9026 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9027 
9028 	/* 16-bit unsigned value to configure the driver with a specific BSS
9029 	 * max idle period to advertise in the BSS Max Idle Period element
9030 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9031 	 * This attribute is used to configure the testbed device.
9032 	 */
9033 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9034 
9035 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
9036 	 * for data transmission.
9037 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9038 	 * This attribute is used to configure the testbed device.
9039 	 */
9040 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9041 
9042 	/* 8-bit unsigned value to configure the driver to disable data and
9043 	 * management response frame transmission to test the BSS max idle
9044 	 * feature.
9045 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
9046 	 * This attribute is used to configure the testbed device.
9047 	 */
9048 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9049 
9050 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9051 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9052 	 * information field.
9053 	 * 0 - Disable Punctured Preamble Rx subfield
9054 	 * 1 - Enable Punctured Preamble Rx subfield
9055 	 * This attribute is used to configure the testbed device.
9056 	 */
9057 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9058 
9059 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9060 	 * requirement mismatch for 6 GHz connection.
9061 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9062 	 * This attribute is used to configure the testbed device.
9063 	 */
9064 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9065 
9066 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
9067 	 * connection with all security modes.
9068 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9069 	 * modes.
9070 	 * This attribute is used for testing purposes.
9071 	 */
9072 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9073 
9074 	/* 8-bit unsigned value to configure the driver to transmit data with
9075 	 * ER SU PPDU type.
9076 	 *
9077 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9078 	 * This attribute is used for testing purposes.
9079 	 */
9080 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9081 
9082 	/* 8-bit unsigned value to configure the driver to use Data or
9083 	 * Management frame type for keep alive data.
9084 	 * Uses enum qca_wlan_keep_alive_data_type values.
9085 	 *
9086 	 * This attribute is used for testing purposes.
9087 	 */
9088 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9089 
9090 	/* 8-bit unsigned value to configure the driver to use scan request
9091 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
9092 	 * driver saves this configuration and applies this setting to all user
9093 	 * space scan requests until the setting is cleared. If this
9094 	 * configuration is set, the driver uses the BSSID value from the scan
9095 	 * request to set the RA(A1) in the Probe Request frames during the
9096 	 * scan.
9097 	 *
9098 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9099 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9100 	 * This attribute is used for testing purposes.
9101 	 */
9102 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9103 
9104 	/* 8-bit unsigned value to configure the driver to enable/disable the
9105 	 * BSS max idle period support.
9106 	 *
9107 	 * 0 - Disable the BSS max idle support.
9108 	 * 1 - Enable the BSS max idle support.
9109 	 * This attribute is used for testing purposes.
9110 	 */
9111 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9112 
9113 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9114 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
9115 	 * capabilities information field.
9116 	 * 0 - Disable Rx control frame to MultiBSS subfield
9117 	 * 1 - Enable Rx control frame to MultiBSS subfield
9118 	 * This attribute is used to configure the testbed device.
9119 	 */
9120 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9121 
9122 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9123 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
9124 	 * information field.
9125 	 * 0 - Disable Broadcast TWT support subfield
9126 	 * 1 - Enable Broadcast TWT support subfield
9127 	 * This attribute is used to configure the testbed device.
9128 	 */
9129 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9130 
9131 	/* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9132 	 * mode for 802.11be MLO capable devices. If the attribute is set to 1,
9133 	 * and if the FW supports this capability too, then the STA host
9134 	 * advertises this capability to AP over assoc request frame. This
9135 	 * attribute will not have any effect on legacy devices with no 802.11be
9136 	 * support.
9137 	 * 0 - Default behavior
9138 	 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9139 	 * This attribute is used to configure the testbed device.
9140 	 */
9141 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9142 
9143 	/* keep last */
9144 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
9145 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
9146 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
9147 };
9148 
9149 /**
9150  * enum qca_wlan_twt_operation - Operation of the config TWT request
9151  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
9152  * The response for the respective operations can be either synchronous or
9153  * asynchronous (wherever specified). If synchronous, the response to this
9154  * operation is obtained in the corresponding vendor command reply to the user
9155  * space. For the asynchronous case the response is obtained as an event with
9156  * the same operation type.
9157  *
9158  * Drivers shall support either of these modes but not both simultaneously.
9159  * This support for asynchronous mode is advertised through the flag
9160  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
9161  * the driver shall support synchronous mode.
9162  *
9163  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
9164  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9165  * qca_wlan_vendor_attr_twt_setup. Depending upon the
9166  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
9167  * synchronous or asynchronous operation.
9168  *
9169  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
9170  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9171  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
9172  *
9173  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
9174  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9175  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9176  * This terminate can either get triggered by the user space or can as well be
9177  * a notification from the firmware if it initiates a terminate.
9178  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9179  * the request from user space can either be a synchronous or asynchronous
9180  * operation.
9181  *
9182  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
9183  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9184  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9185  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9186  * this is either a synchronous or asynchronous operation.
9187  *
9188  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
9189  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9190  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
9191  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
9192  * request.
9193  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9194  * capability, this is either a synchronous or asynchronous operation.
9195  *
9196  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
9197  * combination of suspend and resume in a single request. Required parameters
9198  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
9199  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
9200  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9201  * capability, this is either a synchronous or asynchronous operation.
9202  *
9203  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
9204  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
9205  * session is setup. It's a synchronous operation.
9206  *
9207  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
9208  * Valid only after the TWT session is setup. It's a synchronous operation.
9209  *
9210  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
9211  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
9212  * operation.
9213  *
9214  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is
9215  * ready for a new TWT session setup after it issued a twt teardown.
9216  *
9217  * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
9218  * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
9219  * the enum qca_wlan_vendor_attr_twt_set_param.
9220  *
9221  * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
9222  * related information for example TWT required bit in AP capabilities etc.
9223  * The reason for the notification is sent using
9224  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
9225  */
9226 enum qca_wlan_twt_operation {
9227 	QCA_WLAN_TWT_SET = 0,
9228 	QCA_WLAN_TWT_GET = 1,
9229 	QCA_WLAN_TWT_TERMINATE = 2,
9230 	QCA_WLAN_TWT_SUSPEND = 3,
9231 	QCA_WLAN_TWT_RESUME = 4,
9232 	QCA_WLAN_TWT_NUDGE = 5,
9233 	QCA_WLAN_TWT_GET_STATS = 6,
9234 	QCA_WLAN_TWT_CLEAR_STATS = 7,
9235 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
9236 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
9237 	QCA_WLAN_TWT_SET_PARAM = 10,
9238 	QCA_WLAN_TWT_NOTIFY = 11,
9239 };
9240 
9241 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
9242  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
9243  *
9244  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
9245  * u8 attribute. Specify the TWT operation of this request. Possible values
9246  * are defined in enum qca_wlan_twt_operation. The parameters for the
9247  * respective operation is specified through
9248  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
9249  *
9250  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
9251  * parameters configured for TWT. These parameters are represented by
9252  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
9253  * enum qca_wlan_vendor_attr_twt_set_param or
9254  * enum qca_wlan_vendor_attr_twt_stats based on the operation.
9255  *
9256  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
9257  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
9258  * The values used by this attribute are defined in
9259  * enum qca_wlan_vendor_twt_status.
9260  */
9261 enum qca_wlan_vendor_attr_config_twt {
9262 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
9263 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
9264 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
9265 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
9266 
9267 	/* keep last */
9268 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
9269 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
9270 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
9271 };
9272 
9273 /**
9274  * qca_wlan_twt_setup_state: Represents the TWT session states.
9275  *
9276  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
9277  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
9278  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
9279  */
9280 enum qca_wlan_twt_setup_state {
9281 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
9282 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
9283 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9284 };
9285 
9286 /**
9287  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9288  * TWT (Target Wake Time) setup request. These attributes are sent as part of
9289  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
9290  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9291  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9292  *
9293  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9294  * Disable (flag attribute not present) - Individual TWT
9295  * Enable (flag attribute present) - Broadcast TWT.
9296  * Individual means the session is between the STA and the AP.
9297  * This session is established using a separate negotiation between
9298  * STA and AP.
9299  * Broadcast means the session is across multiple STAs and an AP. The
9300  * configuration parameters are announced in Beacon frames by the AP.
9301  * This is used in
9302  * 1. TWT SET Request and Response
9303  * 2. TWT GET Response
9304  *
9305  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9306  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
9307  * specify the TWT request type. This is used in TWT SET operation.
9308  *
9309  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9310  * Enable (flag attribute present) - TWT with trigger support.
9311  * Disable (flag attribute not present) - TWT without trigger support.
9312  * Trigger means the AP will send the trigger frame to allow STA to send data.
9313  * Without trigger, the STA will wait for the MU EDCA timer before
9314  * transmitting the data.
9315  * This is used in
9316  * 1. TWT SET Request and Response
9317  * 2. TWT GET Response
9318  *
9319  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9320  * 0 - Announced TWT - In this mode, STA may skip few service periods to
9321  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9322  * NULL frame to AP.
9323  * 1 - Unannounced TWT - The STA will wakeup during every SP.
9324  * This is a required parameter for
9325  * 1. TWT SET Request and Response
9326  * 2. TWT GET Response
9327  *
9328  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9329  * Flow ID is the unique identifier for each TWT session.
9330  * If not provided then dialog ID will be set to zero.
9331  * This is an optional parameter for
9332  * 1. TWT SET Request and Response
9333  * 2. TWT GET Request and Response
9334  * 3. TWT TERMINATE Request and Response
9335  * 4. TWT SUSPEND Request and Response
9336  * Flow Id values from 0 to 254 represent a single TWT session
9337  * Flow ID value of 255 represents all twt sessions for the following
9338  * 1. TWT TERMINATE Request and Response
9339  * 2. TWT SUSPEND Request and Response
9340  * 4. TWT CLEAR STATISTICS request
9341  * 5. TWT GET STATISTICS request and response
9342  * If an invalid dialog id is provided, status
9343  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9344  *
9345  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9346  * This attribute (exp) is used along with the mantissa to derive the
9347  * wake interval using the following formula:
9348  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9349  * Wake interval is the interval between 2 successive SP.
9350  * This is a required parameter for
9351  * 1. TWT SET Request and Response
9352  * 2. TWT GET Response
9353  *
9354  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9355  * Enable (flag attribute present) - Protection required.
9356  * Disable (flag attribute not present) - Protection not required.
9357  * If protection is enabled, then the AP will use protection
9358  * mechanism using RTS/CTS to self to reserve the airtime.
9359  * This is used in
9360  * 1. TWT SET Request and Response
9361  * 2. TWT GET Response
9362  *
9363  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9364  * This attribute is used as the SP offset which is the offset from
9365  * TSF after which the wake happens. The units are in microseconds. If
9366  * this attribute is not provided, then the value will be set to zero.
9367  * This is an optional parameter for
9368  * 1. TWT SET Request and Response
9369  * 2. TWT GET Response
9370  *
9371  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
9372  * This is the duration of the service period. This is specified as
9373  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9374  * This is a required parameter for
9375  * 1. TWT SET Request and Response
9376  * 2. TWT GET Response
9377  *
9378  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9379  * This attribute is used to configure wake interval mantissa.
9380  * The units are in TU.
9381  * This is a required parameter for
9382  * 1. TWT SET Request and Response
9383  * 2. TWT GET Response
9384  *
9385  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
9386  * This field is applicable for TWT response only.
9387  * This contains status values in enum qca_wlan_vendor_twt_status
9388  * and is passed to the userspace. This is used in TWT SET operation.
9389  * This is a required parameter for
9390  * 1. TWT SET Response
9391  * 2. TWT TERMINATE Response
9392  * 3. TWT SUSPEND Response
9393  * 4. TWT RESUME Response
9394  * 5. TWT NUDGE Response
9395  *
9396  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9397  * This field is applicable for TWT response only.
9398  * This field contains response type from the TWT responder and is
9399  * passed to the userspace. The values for this field are defined in
9400  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
9401  * response.
9402  *
9403  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
9404  * In TWT setup command this field contains absolute TSF that will
9405  * be used by TWT requester during setup.
9406  * In TWT response this field contains absolute TSF value of the
9407  * wake time received from the TWT responder and is passed to
9408  * the userspace.
9409  * This is an optional parameter for
9410  * 1. TWT SET Request
9411  * This is a required parameter for
9412  * 1. TWT SET Response
9413  * 2. TWT GET Response
9414  *
9415  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
9416  * Enable (flag attribute present) - Indicates that the TWT responder
9417  * supports reception of TWT information frame from the TWT requestor.
9418  * Disable (flag attribute not present) - Indicates that the responder
9419  * doesn't support reception of TWT information frame from requestor.
9420  * This is used in
9421  * 1. TWT SET Response
9422  * 2. TWT GET Response
9423  *
9424  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
9425  * Represents the MAC address of the peer for which the TWT session
9426  * is being configured. This is used in AP mode to represent the respective
9427  * client
9428  * In AP mode, this is a required parameter in response for
9429  * 1. TWT SET
9430  * 2. TWT GET
9431  * 3. TWT TERMINATE
9432  * 4. TWT SUSPEND
9433  * In STA mode, this is an optional parameter in request and response for
9434  * the above four TWT operations.
9435  * In AP mode, this is a required parameter in request for
9436  * 1. TWT GET
9437  * 2. TWT TERMINATE
9438  *
9439  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9440  * Minimum tolerance limit of wake interval parameter in microseconds.
9441  *
9442  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9443  * Maximum tolerance limit of wake interval parameter in microseconds.
9444  *
9445  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9446  * Minimum tolerance limit of wake duration parameter in microseconds.
9447  *
9448  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9449  * Maximum tolerance limit of wake duration parameter in microseconds.
9450  *
9451  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9452  * TWT state for the given dialog id. The values for this are represented
9453  * by enum qca_wlan_twt_setup_state.
9454  * This is obtained through TWT GET operation.
9455  *
9456  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9457  * This attribute is used to configure wake interval mantissa.
9458  * The unit is microseconds. This attribute, when specified, takes
9459  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9460  * This parameter is used for
9461  * 1. TWT SET Request and Response
9462  * 2. TWT GET Response
9463  *
9464  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9465  * This attribute is used to configure Broadcast TWT ID.
9466  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9467  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9468  * This parameter is used for
9469  * 1. TWT SET Request
9470  * 2. TWT TERMINATE Request
9471  *
9472  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9473  * This attribute is used to configure Broadcast TWT recommendation.
9474  * The Broadcast TWT Recommendation subfield contains a value that indicates
9475  * recommendations on the types of frames that are transmitted by TWT
9476  * scheduled STAs and scheduling AP during the broadcast TWT SP.
9477  * The allowed values are 0 - 3.
9478  * This parameter is used for
9479  * 1. TWT SET Request
9480  *
9481  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9482  * This attribute is used to configure Broadcast TWT Persistence.
9483  * The Broadcast TWT Persistence subfield indicates the number of
9484  * TBTTs during which the Broadcast TWT SPs corresponding to this
9485  * broadcast TWT Parameter set are present. The number of beacon intervals
9486  * during which the Broadcast TWT SPs are present is equal to the value in the
9487  * Broadcast TWT Persistence subfield plus 1 except that the value 255
9488  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9489  * This parameter is used for
9490  * 1. TWT SET Request
9491  *
9492  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9493  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9494  * from TWT response frame.
9495  * This parameter is used for
9496  * 1. TWT SET Response
9497  * 2. TWT GET Response
9498  *
9499  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9500  * This attribute is used to configure the announce timeout value (in us) in
9501  * firmware. This timeout value is only applicable for announced TWT. If
9502  * timeout value is non-zero then firmware waits upto timeout value to use
9503  * data frame as announcement frame. If timeout value is 0 then firmware sends
9504  * explicit QoS NULL frame as announcement frame on SP start. Default value in
9505  * firmware is 0.
9506  * This parameter is used for
9507  * 1. TWT SET Request
9508  */
9509 enum qca_wlan_vendor_attr_twt_setup {
9510 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9511 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9512 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9513 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9514 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9515 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9516 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9517 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9518 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9519 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9520 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9521 
9522 	/* TWT Response only attributes */
9523 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9524 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9525 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9526 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9527 
9528 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
9529 
9530 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9531 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9532 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9533 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9534 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
9535 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9536 
9537 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9538 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9539 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9540 
9541 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9542 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9543 
9544 	/* keep last */
9545 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9546 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9547 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9548 };
9549 
9550 /**
9551  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9552  * TWT operation
9553  *
9554  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9555  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9556  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9557  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9558  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9559  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9560  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9561  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9562  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9563  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9564  * request/response frame
9565  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9566  * frame
9567  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9568  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9569  * unknown reason
9570  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9571  * suspend state
9572  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9573  * invalid IE in the received TWT frame
9574  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9575  * the responder are not in the specified range
9576  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9577  * session due to request from the responder. Used on the TWT_TERMINATE
9578  * notification from the firmware.
9579  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9580  * session due to roaming. Used on the TWT_TERMINATE notification from the
9581  * firmware.
9582  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9583  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
9584  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9585  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9586  * request due to roaming in progress.
9587  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9588  * setup request due to channel switch in progress.
9589  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9590  * request due to scan in progress.
9591  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9592  * terminate an existing TWT session on power save exit request from userspace.
9593  * Used on the TWT_TERMINATE notification from the driver/firmware.
9594  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
9595  * required bit in its capabilities.
9596  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
9597  * the TWT required bit(1->0) in its capabilities.
9598  */
9599 enum qca_wlan_vendor_twt_status {
9600 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9601 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9602 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9603 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9604 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9605 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9606 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9607 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9608 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9609 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9610 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9611 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9612 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9613 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
9614 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9615 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9616 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9617 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
9618 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9619 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9620 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9621 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9622 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
9623 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
9624 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
9625 };
9626 
9627 /**
9628  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
9629  * TWT (Target Wake Time) resume request. These attributes are sent as part of
9630  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
9631  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9632  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9633  *
9634  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
9635  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9636  * These attributes are used as the SP offset which is the offset from TSF after
9637  * which the wake happens. The units are in microseconds. Please note that
9638  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9639  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9640  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9641  * will be set to zero.
9642  *
9643  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9644  * This attribute represents the next TWT subfield size.
9645  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9646  * and 4 for 64 bits.
9647  *
9648  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9649  * Flow ID is the unique identifier for each TWT session. This attribute
9650  * represents the respective TWT session to resume.
9651  * Flow Id values from 0 to 254 represent a single TWT session
9652  * Flow ID value of 255 represents all TWT sessions.
9653  * If an invalid dialog id is provided, status
9654  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9655  *
9656  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9657  * Represents the MAC address of the peer to which TWT Resume is
9658  * being sent. This is used in AP mode to represent the respective
9659  * client and is a required parameter. In STA mode, this is an optional
9660  * parameter
9661  *
9662  */
9663 enum qca_wlan_vendor_attr_twt_resume {
9664 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9665 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9666 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
9667 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9668 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9669 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
9670 
9671 	/* keep last */
9672 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9673 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9674 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9675 };
9676 
9677 /**
9678  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9679  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9680  * and resume in a single request. These attributes are sent as part of
9681  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9682  *
9683  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9684  * Flow ID is the unique identifier for each TWT session. This attribute
9685  * represents the respective TWT session to suspend and resume.
9686  *
9687  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9688  * Flow ID is the unique identifier for each TWT session. This attribute
9689  * represents the respective TWT session to suspend and resume.
9690  * Flow Id values from 0 to 254 represent a single TWT session
9691  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9692  * and response.
9693  * If an invalid dialog id is provided, status
9694  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9695  *
9696  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9697  * This attribute is used as the SP offset which is the offset from
9698  * TSF after which the wake happens. The units are in microseconds.
9699  *
9700  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9701  * This attribute represents the next TWT subfield size.
9702  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9703  * and 4 for 64 bits.
9704  *
9705  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9706  * Represents the MAC address of the peer to which TWT Suspend and Resume is
9707  * being sent. This is used in AP mode to represent the respective
9708  * client and is a required parameter. In STA mode, this is an optional
9709  * parameter.
9710  *
9711  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
9712  * This field contains absolute TSF value of the time at which twt
9713  * sesion will be resumed.
9714  */
9715 enum qca_wlan_vendor_attr_twt_nudge {
9716 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
9717 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
9718 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
9719 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
9720 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
9721 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
9722 
9723 	/* keep last */
9724 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
9725 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
9726 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
9727 };
9728 
9729 /**
9730  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
9731  * TWT (Target Wake Time) get statistics and clear statistics request.
9732  * These attributes are sent as part of
9733  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9734  *
9735  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
9736  * Flow ID is the unique identifier for each TWT session. This attribute
9737  * represents the respective TWT session for get and clear TWT statistics.
9738  * Flow Id values from 0 to 254 represent a single TWT session
9739  * Flow ID value of 255 represents all TWT sessions in
9740  * 1) TWT GET STATISTICS request and response
9741  * 2) TWT CLEAR STATISTICS request
9742  *
9743  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
9744  * Represents the MAC address of the peer for which TWT Statistics
9745  * is required.
9746  * In AP mode this is used to represent the respective
9747  * client and is a required parameter for
9748  * 1) TWT GET STATISTICS request and response
9749  * 2) TWT CLEAR STATISTICS request and response
9750  * In STA mode, this is an optional parameter.
9751  *
9752  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
9753  * This is the duration of the service period in microseconds.
9754  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9755  *
9756  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
9757  * Average of actual wake duration observed so far. Unit is microseconds.
9758  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9759  *
9760  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
9761  * Number of TWT service period elapsed so far.
9762  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9763  *
9764  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9765  * This is the minimum value of wake duration observed across
9766  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9767  * microseconds.
9768  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9769  *
9770  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9771  * This is the maximum value of wake duration observed across
9772  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9773  * microseconds.
9774  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9775  *
9776  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
9777  * Average number of MPDU's transmitted successfully across
9778  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9779  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9780  *
9781  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
9782  * Average number of MPDU's received successfully across
9783  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9784  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9785  *
9786  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
9787  * Average number of bytes transmitted successfully across
9788  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9789  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9790  *
9791  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
9792  * Average number of bytes received successfully across
9793  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9794  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9795  *
9796  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
9797  * Status of the TWT GET STATISTICS request.
9798  * This contains status values in enum qca_wlan_vendor_twt_status
9799  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9800  */
9801 enum qca_wlan_vendor_attr_twt_stats {
9802 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
9803 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
9804 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
9805 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
9806 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
9807 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
9808 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
9809 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
9810 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
9811 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
9812 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
9813 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
9814 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
9815 
9816 	/* keep last */
9817 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
9818 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
9819 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
9820 };
9821 
9822 /**
9823  * qca_wlan_twt_get_capa  - Represents the Bitmap of TWT capabilities
9824  * supported by the device and peer.
9825  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
9826  *
9827  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
9828  * TWT non-scheduling STA. This capability is advertised in the HE
9829  * capability/Extended capabilities information element in the
9830  * Association request frame by the device.
9831  *
9832  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
9833  * by the TWT scheduling AP. This capability is advertised in the extended
9834  * capabilities/HE capabilities information element.
9835  *
9836  * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
9837  * for the broadcast TWT functionality. On responder side, this	indicates
9838  * support for the role of broadcast TWT scheduling functionality. This
9839  * capability is advertised in the HE capabilities information element.
9840  *
9841  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
9842  * This capability is advertised in the HE capabilities information element.
9843  *
9844  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
9845  * that it mandates the associated HE STAs to support TWT. This capability is
9846  * advertised by AP in the HE Operation Parameters field of the HE operation
9847  * information element.
9848  */
9849 enum qca_wlan_twt_capa {
9850 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
9851 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
9852 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
9853 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
9854 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
9855 
9856 };
9857 
9858 /**
9859  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
9860  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
9861  * operation.
9862  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
9863  * Represents the MAC address of the peer for which the TWT capabilities
9864  * are being queried. This is used in AP mode to represent the respective
9865  * client. In STA mode, this is an optional parameter.
9866  *
9867  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
9868  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
9869  * enum qca_wlan_twt_capa.
9870  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
9871  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
9872  * enum qca_wlan_twt_capa.
9873  */
9874 enum qca_wlan_vendor_attr_twt_capability {
9875 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
9876 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
9877 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
9878 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
9879 
9880 	/* keep last */
9881 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
9882 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
9883 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
9884 };
9885 
9886 /**
9887  * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
9888  * TWT (Target Wake Time) related parameters. It is used when
9889  * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
9890  * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9891  *
9892  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
9893  * This attribute configures AC parameters to be used for all TWT
9894  * sessions in AP mode.
9895  * Uses the enum qca_wlan_ac_type values.
9896  */
9897 enum qca_wlan_vendor_attr_twt_set_param {
9898 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
9899 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
9900 
9901 	/* keep last */
9902 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
9903 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
9904 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
9905 };
9906 
9907 /**
9908  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
9909  * the TWT responder
9910  *
9911  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
9912  * parameters that are different from TWT requesting STA suggested
9913  * or demanded TWT parameters
9914  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
9915  * parameters that are different from TWT requesting STA TWT suggested
9916  * or demanded parameters
9917  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
9918  * setup
9919  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
9920  * setup.
9921  */
9922 enum qca_wlan_vendor_twt_setup_resp_type {
9923 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
9924 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
9925 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
9926 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
9927 };
9928 
9929 /**
9930  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
9931  * Represents the setup type being requested for TWT.
9932  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
9933  * parameters but relying on AP to fill the parameters during the negotiation.
9934  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
9935  * values which the AP may accept or AP may provide alternative parameters
9936  * which the STA may accept.
9937  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
9938  * alternate parameters than the requested ones.
9939  */
9940 enum qca_wlan_vendor_twt_setup_req_type {
9941 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
9942 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
9943 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
9944 };
9945 
9946 /**
9947  * enum qca_wlan_throughput_level - Current throughput level
9948  *
9949  * Indicates the current level of throughput calculated by driver. The driver
9950  * may choose different thresholds to decide whether the throughput level is
9951  * low or medium or high based on variety of parameters like physical link
9952  * capacity of current connection, number of pakcets being dispatched per
9953  * second etc. The throughput level events might not be consistent with the
9954  * actual current throughput value being observed.
9955  *
9956  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
9957  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
9958  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
9959  */
9960 enum qca_wlan_throughput_level {
9961 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
9962 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
9963 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
9964 };
9965 
9966 /**
9967  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
9968  * report throughput changes from driver to user space. enum values are used
9969  * for NL attributes sent with
9970  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
9971  */
9972 enum qca_wlan_vendor_attr_throughput_change {
9973 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
9974 	/*
9975 	 * Indicates the direction of throughput in which the change is being
9976 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
9977 	 */
9978 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
9979 
9980 	/*
9981 	 * Indicates the newly observed throughput level.
9982 	 * qca_wlan_throughput_level describes the possible range of values.
9983 	 * u8 attribute.
9984 	 */
9985 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
9986 
9987 	/*
9988 	 * Indicates the driver's guidance on the new value to be set to
9989 	 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
9990 	 * may optionally include this attribute.
9991 	 */
9992 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
9993 
9994 	/*
9995 	 * Indicates the driver's guidance on the new value to be set to
9996 	 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
9997 	 * values are from -31 to 31. Driver may optionally include this
9998 	 * attribute.
9999 	 */
10000 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10001 
10002 	/*
10003 	 * Indicates the driver's guidance on the new value to be set to
10004 	 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
10005 	 * optionally include this attribute.
10006 	 */
10007 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10008 
10009 	/* keep last */
10010 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10011 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10012 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10013 };
10014 
10015 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
10016  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
10017  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10018  */
10019 enum qca_wlan_nan_ext_subcmd_type {
10020 	/* Subcmd of type NAN Enable Request */
10021 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
10022 	/* Subcmd of type NAN Disable Request */
10023 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
10024 };
10025 
10026 /**
10027  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
10028  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10029  */
10030 enum qca_wlan_vendor_attr_nan_params {
10031 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
10032 	/* Carries NAN command for firmware component. Every vendor command
10033 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
10034 	 * payload containing the NAN command. NLA_BINARY attribute.
10035 	 */
10036 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
10037 	/* Indicates the type of NAN command sent with
10038 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
10039 	 * describes the possible range of values. This attribute is mandatory
10040 	 * if the command being issued is either
10041 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
10042 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
10043 	 */
10044 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
10045 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
10046 	 * band. This attribute is mandatory when command type is
10047 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
10048 	 */
10049 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
10050 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
10051 	 * band. This attribute is optional and should be included when command
10052 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
10053 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
10054 	 */
10055 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
10056 
10057 	/* keep last */
10058 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
10059 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
10060 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
10061 };
10062 
10063 /**
10064  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
10065  * transport modes and is used by attribute
10066  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
10067  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10068  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
10069  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
10070  * data. The data shall be encapsulated within
10071  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along withe vendor sub command
10072  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
10073  */
10074 enum qca_wlan_vendor_cfr_data_transport_modes {
10075 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
10076 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
10077 };
10078 
10079 /**
10080  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
10081  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
10082  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10083  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
10084  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
10085  * with phase
10086  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
10087  */
10088 enum qca_wlan_vendor_cfr_method {
10089 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
10090 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
10091 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
10092 };
10093 
10094 /**
10095  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
10096  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
10097  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
10098  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
10099  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
10100  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
10101  * is provided by one or more of below attributes:
10102  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
10103  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
10104  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
10105  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
10106  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
10107  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
10108  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10109  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
10110  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
10111  */
10112 enum qca_wlan_vendor_cfr_capture_type {
10113 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
10114 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
10115 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
10116 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
10117 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
10118 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
10119 };
10120 
10121 /**
10122  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
10123  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
10124  * Channel Frequency Response capture parameters and enable periodic CFR
10125  * capture.
10126  *
10127  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
10128  * MAC address of peer. This is for CFR version 1 only.
10129  *
10130  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
10131  * Enable peer CFR Capture. This attribute is mandatory to
10132  * enable peer CFR capture. If this attribute is not present,
10133  * peer CFR capture is disabled.
10134  *
10135  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
10136  * BW of measurement, attribute uses the values in enum nl80211_chan_width
10137  * Supported values: 20, 40, 80, 80+80, 160.
10138  * Note that all targets may not support all bandwidths.
10139  * This attribute is mandatory for version 1 if attribute
10140  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10141  *
10142  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
10143  * Periodicity of CFR measurement in msec.
10144  * Periodicity should be a multiple of Base timer.
10145  * Current Base timer value supported is 10 msecs (default).
10146  * 0 for one shot capture.
10147  * This attribute is mandatory for version 1 if attribute
10148  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10149  *
10150  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
10151  * Method used to capture Channel Frequency Response.
10152  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
10153  * This attribute is mandatory for version 1 if attribute
10154  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10155  *
10156  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
10157  * Enable periodic CFR capture.
10158  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
10159  * If this attribute is not present, periodic CFR capture is disabled.
10160  *
10161  * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
10162  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
10163  * can't be enabled at same time. This attribute is mandatory if target
10164  * support both versions and use one of them.
10165  *
10166  * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
10167  * This attribute is mandatory for version 2 if
10168  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
10169  * Bits 15:0 Bit fields indicating which group to be enabled.
10170  * Bits 31:16 Reserved for future use.
10171  *
10172  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
10173  * CFR capture duration in microsecond. This attribute is mandatory for
10174  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
10175  *
10176  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
10177  * CFR capture interval in microsecond. This attribute is mandatory for
10178  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
10179  *
10180  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
10181  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
10182  * This attribute is mandatory for version 2.
10183  *
10184  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
10185  * Bit fields indicating which user in the current UL MU
10186  * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
10187  * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
10188  * then the CFR capture will happen for user index 0 in the current
10189  * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
10190  * TX corresponds to user indices 0 and 2.  Bits 63:37 Reserved for future use.
10191  * This is for CFR version 2 only.
10192  *
10193  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
10194  * Indicates the number of consecutive Rx packets to be skipped
10195  * before CFR capture is enabled again.
10196  * This is for CFR version 2 only.
10197  *
10198  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
10199  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
10200  *
10201  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
10202  * the following GROUP attributes:
10203  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
10204  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
10205  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
10206  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
10207  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
10208  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
10209  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
10210  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
10211  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
10212  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10213  *
10214  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
10215  * Target support multiple groups for some configurations. Group number could be
10216  * any value between 0 and 15. This is for CFR version 2 only.
10217  *
10218  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
10219  * Transmitter address which is used to filter packets, this MAC address takes
10220  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
10221  * This is for CFR version 2 only.
10222  *
10223  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
10224  * Receiver address which is used to filter packets, this MAC address takes
10225  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
10226  * This is for CFR version 2 only.
10227  *
10228  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
10229  * Mask of transmitter address which is used to filter packets.
10230  * This is for CFR version 2 only.
10231  *
10232  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
10233  * Mask of receiver address which is used to filter packets.
10234  * This is for CFR version 2 only.
10235  *
10236  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
10237  * Indicates packets with a specific NSS will be filtered for CFR capture.
10238  * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
10239  * be done for packets matching the NSS specified within this bitmask.
10240  * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
10241  *     bit 0 : NSS 1
10242  *     bit 1 : NSS 2
10243  *     ...
10244  *     bit 7 : NSS 8
10245  *
10246  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
10247  * Indicates packets with a specific BW will be filtered for CFR capture.
10248  * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
10249  * will be done for packets matching the bandwidths specified within this
10250  * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
10251  * numerated in enum nl80211_band (although not all bands may be supported
10252  * by a given device).
10253  *
10254  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
10255  * Management packets matching the subtype filter categories will be
10256  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10257  * represents the corresponding mgmt subtype value as per
10258  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10259  * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
10260  * This is for CFR version 2 only
10261  *
10262  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
10263  * Control packets matching the subtype filter categories will be
10264  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10265  * represents the corresponding control subtype value as per
10266  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10267  * This is for CFR version 2 only.
10268  *
10269  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
10270  * Data packets matching the subtype filter categories will be
10271  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10272  * represents the corresponding data subtype value as per
10273  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10274  * This is for CFR version 2 only.
10275  *
10276  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
10277  * Userspace can use this attribute to specify the driver about which transport
10278  * mode shall be used by the driver to send CFR data to userspace. Uses values
10279  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
10280  * not present, driver shall choose the default transport mechanism which is
10281  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
10282  *
10283  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
10284  * Userspace can use this attribute to specify the nl port id of the application
10285  * which receives the CFR data and processes it further so that the drivers can
10286  * unicast the NL events to a specific application. Optionally included when
10287  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
10288  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
10289  * shall multicast the netlink events when this attribute is not included.
10290  *
10291  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
10292  * This attribute will be used by the driver to encapsulate and send CFR data
10293  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
10294  * asynchronous event when the driver is configured to send CFR data using NL
10295  * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
10296  *
10297  */
10298 enum qca_wlan_vendor_peer_cfr_capture_attr {
10299 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
10300 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
10301 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
10302 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
10303 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
10304 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
10305 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
10306 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
10307 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
10308 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
10309 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
10310 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
10311 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
10312 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
10313 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
10314 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
10315 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
10316 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
10317 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
10318 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
10319 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
10320 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
10321 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
10322 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
10323 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
10324 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
10325 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
10326 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
10327 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
10328 
10329 	/* Keep last */
10330 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
10331 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
10332 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
10333 };
10334 
10335 /**
10336  * enum qca_coex_config_profiles - This enum defines different types of
10337  * traffic streams that can be prioritized one over the other during coex
10338  * scenarios.
10339  * The types defined in this enum are categorized in the below manner.
10340  * 0 - 31 values corresponds to WLAN
10341  * 32 - 63 values corresponds to BT
10342  * 64 - 95 values corresponds to Zigbee
10343  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10344  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10345  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10346  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10347  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10348  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10349  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10350  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10351  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10352  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10353  * @QCA_BT_A2DP: Prioritize BT A2DP
10354  * @QCA_BT_BLE: Prioritize BT BLE
10355  * @QCA_BT_SCO: Prioritize BT SCO
10356  * @QCA_ZB_LOW: Prioritize Zigbee Low
10357  * @QCA_ZB_HIGH: Prioritize Zigbee High
10358  */
10359 enum qca_coex_config_profiles {
10360 	/* 0 - 31 corresponds to WLAN */
10361 	QCA_WIFI_STA_DISCOVERY = 0,
10362 	QCA_WIFI_STA_CONNECTION = 1,
10363 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
10364 	QCA_WIFI_STA_DATA = 3,
10365 	QCA_WIFI_STA_ALL = 4,
10366 	QCA_WIFI_SAP_DISCOVERY = 5,
10367 	QCA_WIFI_SAP_CONNECTION = 6,
10368 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10369 	QCA_WIFI_SAP_DATA = 8,
10370 	QCA_WIFI_SAP_ALL = 9,
10371 	QCA_WIFI_CASE_MAX = 31,
10372 	/* 32 - 63 corresponds to BT */
10373 	QCA_BT_A2DP = 32,
10374 	QCA_BT_BLE = 33,
10375 	QCA_BT_SCO = 34,
10376 	QCA_BT_CASE_MAX = 63,
10377 	/* 64 - 95 corresponds to Zigbee */
10378 	QCA_ZB_LOW = 64,
10379 	QCA_ZB_HIGH = 65,
10380 	QCA_ZB_CASE_MAX = 95,
10381 	/* 0xff is default value if the u8 profile value is not set. */
10382 	QCA_PROFILE_DEFAULT_VALUE = 255
10383 };
10384 
10385 /**
10386  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10387  * This enum defines the valid set of values of coex configuration types. These
10388  * values may used by attribute
10389  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10390  *
10391  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10392  *	weights to default values.
10393  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10394  *	weights with configurability value.
10395  */
10396 enum qca_vendor_attr_coex_config_types {
10397 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10398 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
10399 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
10400 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
10401 };
10402 
10403 /**
10404  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
10405  * attributes
10406  * Attributes for data used by
10407  * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
10408  *
10409  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
10410  * Indicate config type.
10411  * the config types are 32-bit values from qca_vendor_attr_coex_config_types
10412  *
10413  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
10414  *	Indicate the Priority 1 profiles.
10415  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10416  *	In same priority level, maximum to 4 profiles can be set here.
10417  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
10418  *	Indicate the Priority 2 profiles.
10419  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10420  *	In same priority level, maximum to 4 profiles can be set here.
10421  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
10422  *	Indicate the Priority 3 profiles.
10423  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10424  *	In same priority level, maximum to 4 profiles can be set here.
10425  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
10426  *	Indicate the Priority 4 profiles.
10427  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10428  *	In same priority level, maximum to 4 profiles can be set here.
10429  * NOTE:
10430  * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
10431  * arrangement:
10432  *	1: In the same u32 attribute(priority x), the profiles enum values own
10433  *	same priority level.
10434  *	2: 0xff is default value if the u8 profile value is not set.
10435  *	3: max to 4 rules/profiles in same priority level.
10436  *	4: max to 4 priority level (priority 1 - priority 4)
10437  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
10438  *	hybrid rules not support.
10439  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
10440  *	remain blank to reset all parameters.
10441  * For example:
10442  *
10443  *	If the attributes as follow:
10444  *	priority 1:
10445  *	------------------------------------
10446  *	|  0xff  |    0   |   1   |    2   |
10447  *	------------------------------------
10448  *	priority 2:
10449  *	-------------------------------------
10450  *	|  0xff  |  0xff  |  0xff  |   32   |
10451  *	-------------------------------------
10452  *	priority 3:
10453  *	-------------------------------------
10454  *	|  0xff  |  0xff  |  0xff  |   65   |
10455  *	-------------------------------------
10456  *	then it means:
10457  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10458  *		owns same priority level.
10459  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10460  *		has priority over BT_A2DP and ZB_HIGH.
10461  *	3: BT_A2DP has priority over ZB_HIGH.
10462  */
10463 
10464 enum qca_vendor_attr_coex_config_three_way {
10465 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
10466 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
10467 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
10468 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10469 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10470 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10471 
10472 	/* Keep last */
10473 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10474 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10475 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10476 };
10477 
10478 /**
10479  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10480  * This enum defines the valid set of values of peer stats cache types. These
10481  * values are used by attribute
10482  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
10483  *
10484  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
10485  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
10486  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
10487  * statistics
10488  */
10489 enum qca_vendor_attr_peer_stats_cache_type {
10490 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10491 
10492 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10493 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10494 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10495 };
10496 
10497 /**
10498  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10499  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10500  * Attributes are required to flush peer rate statistics from driver to
10501  * user application.
10502  *
10503  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10504  * Indicate peer stats cache type.
10505  * The statistics types are 32-bit values from
10506  * qca_vendor_attr_peer_stats_cache_type
10507  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10508  * of size 6, representing peer mac address.
10509  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10510  * containing buffer of statistics to send event to application layer entity.
10511  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10512  * representing cookie for peer unique session.
10513  */
10514 enum qca_wlan_vendor_attr_peer_stats_cache_params {
10515 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10516 
10517 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10518 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10519 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10520 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10521 
10522 	/* Keep last */
10523 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10524 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10525 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10526 };
10527 
10528 /**
10529  * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
10530  * this enum defines all the possible state of zigbee, which can be
10531  * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
10532  *
10533  * @ZIGBEE_IDLE: zigbee in idle state
10534  * @ZIGBEE_FORM_NETWORK: zibee forming network
10535  * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
10536  * @ZIGBEE_JOIN: zigbee joining network
10537  * @ZIGBEE_NETWORK_UP: zigbee network is up
10538  * @ZIGBEE_HMI: zigbee in HMI mode
10539  */
10540 enum qca_mpta_helper_attr_zigbee_state {
10541 	ZIGBEE_IDLE = 0,
10542 	ZIGBEE_FORM_NETWORK = 1,
10543 	ZIGBEE_WAIT_JOIN = 2,
10544 	ZIGBEE_JOIN = 3,
10545 	ZIGBEE_NETWORK_UP = 4,
10546 	ZIGBEE_HMI = 5,
10547 };
10548 
10549 /**
10550  * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
10551  * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10552  */
10553 enum qca_mpta_helper_vendor_attr {
10554 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10555 	/* Optional attribute used to update zigbee state.
10556 	 * enum qca_mpta_helper_attr_zigbee_state.
10557 	 * NLA_U32 attribute.
10558 	 */
10559 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10560 	/* Optional attribute used to configure wlan duration for Shape-OCS
10561 	 * during interrupt.
10562 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10563 	 * Value range 0 ~ 300 (ms).
10564 	 * NLA_U32 attribute.
10565 	 */
10566 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10567 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10568 	 * during interrupt.
10569 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10570 	 * Value range 0 ~ 300 (ms).
10571 	 * NLA_U32 attribute.
10572 	 */
10573 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10574 	/* Optional attribute used to configure wlan duration for Shape-OCS
10575 	 * monitor period.
10576 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10577 	 * Value range 0 ~ 300 (ms)
10578 	 * NLA_U32 attribute
10579 	 */
10580 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10581 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10582 	 * monitor period.
10583 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10584 	 * Value range 0 ~ 300 (ms)
10585 	 * NLA_U32 attribute
10586 	 */
10587 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
10588 	/* Optional attribute used to configure ocs interrupt duration.
10589 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10590 	 * Value range 1000 ~ 20000 (ms)
10591 	 * NLA_U32 attribute
10592 	 */
10593 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
10594 	/* Optional attribute used to configure ocs monitor duration.
10595 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10596 	 * Value range 1000 ~ 20000 (ms)
10597 	 * NLA_U32 attribute
10598 	 */
10599 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
10600 	/* Optional attribute used to notify wlan FW current zigbee channel.
10601 	 * Value range 11 ~ 26
10602 	 * NLA_U32 attribute
10603 	 */
10604 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10605 	/* Optional attribute used to configure wlan mute duration.
10606 	 * Value range 0 ~ 400 (ms)
10607 	 * NLA_U32 attribute
10608 	 */
10609 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
10610 
10611 	/* keep last */
10612 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10613 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10614 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10615 };
10616 
10617 /**
10618  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10619  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
10620  * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10621  *
10622  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10623  * to request the driver to start reporting Beacon frames.
10624  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
10625  * to request the driver to stop reporting Beacon frames.
10626  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10627  * userspace to report received Beacon frames.
10628  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10629  * to indicate that the driver is going to pause reporting Beacon frames.
10630  */
10631 enum qca_wlan_vendor_beacon_reporting_op_types {
10632 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10633 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10634 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10635 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10636 };
10637 
10638 /**
10639  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
10640  * types of reasons for which the driver is pausing reporting Beacon frames.
10641  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10642  *
10643  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10644  * reasons.
10645  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10646  * driver/firmware is starting a scan.
10647  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10648  * driver/firmware disconnects from the ESS and indicates the disconnection to
10649  * userspace (non-seamless roaming case). This reason code will be used by the
10650  * driver/firmware to indicate stopping of beacon report events. Userspace
10651  * will need to start beacon reporting again (if desired) by sending vendor
10652  * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10653  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10654  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10655  * completed.
10656  */
10657 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10658 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10659 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10660 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10661 };
10662 
10663 /*
10664  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10665  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10666  */
10667 enum qca_wlan_vendor_attr_beacon_reporting_params {
10668 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10669 	/* Specifies the type of operation that the vendor command/event is
10670 	 * intended for. Possible values for this attribute are defined in
10671 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10672 	 */
10673 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10674 	/* Optionally set by userspace to request the driver to report Beacon
10675 	 * frames using asynchronous vendor events when the
10676 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10677 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10678 	 * If this flag is not set, the driver will only update Beacon frames
10679 	 * in cfg80211 scan cache but not send any vendor events.
10680 	 */
10681 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10682 	/* Optionally used by userspace to request the driver/firmware to
10683 	 * report Beacon frames periodically when the
10684 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10685 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10686 	 * u32 attribute, indicates the period of Beacon frames to be reported
10687 	 * and in the units of beacon interval.
10688 	 * If this attribute is missing in the command, then the default value
10689 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10690 	 * Zero is an invalid value.
10691 	 * If a valid value is received for this attribute, the driver will
10692 	 * update the cfg80211 scan cache periodically as per the value
10693 	 * received in this attribute in addition to updating the cfg80211 scan
10694 	 * cache when there is significant change in Beacon frame IEs.
10695 	 */
10696 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10697 	/* Used by the driver to encapsulate the SSID when the
10698 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10699 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10700 	 * u8 array with a maximum size of 32.
10701 	 *
10702 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
10703 	 * will be taken from the SSID element of the received Beacon frame.
10704 	 *
10705 	 * When generating beacon report from Multiple BSSID Beacon frame and
10706 	 * if the BSSID of the current connected BSS matches the BSSID of the
10707 	 * transmitting BSS, the SSID will be taken from the SSID element of
10708 	 * the received Beacon frame.
10709 	 *
10710 	 * When generating beacon report from Multiple BSSID Beacon frame and
10711 	 * if the BSSID of the current connected BSS matches the BSSID of one
10712 	 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
10713 	 * field included in the nontransmitted BSS profile whose derived BSSI
10714 	 * is same as the BSSID of the current connected BSS. When there is no
10715 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
10716 	 * of current connected* BSS, this attribute will not be present.
10717 	 */
10718 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
10719 	/* Used by the driver to encapsulate the BSSID of the AP to which STA
10720 	 * is currently connected to when the
10721 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10722 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
10723 	 * fixed size of 6 bytes.
10724 	 *
10725 	 * When generating beacon report from a Multiple BSSID beacon and the
10726 	 * current connected BSSID matches one of the nontransmitted BSSIDs in
10727 	 * a Multiple BSSID set, this BSSID will be that particular
10728 	 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
10729 	 * transmitting address of the Beacon frame).
10730 	 */
10731 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
10732 	/* Used by the driver to encapsulate the frequency in MHz on which
10733 	 * the Beacon frame was received when the
10734 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
10735 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10736 	 * u32 attribute.
10737 	 */
10738 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
10739 	/* Used by the driver to encapsulate the Beacon interval
10740 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10741 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10742 	 * u16 attribute. The value will be copied from the Beacon frame and
10743 	 * the units are TUs.
10744 	 */
10745 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
10746 	/* Used by the driver to encapsulate the Timestamp field from the
10747 	 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
10748 	 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10749 	 * u64 attribute.
10750 	 */
10751 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
10752 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
10753 	 * Beacon frame is received in the driver when the
10754 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10755 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
10756 	 * the units of nanoseconds. This value is expected to have accuracy of
10757 	 * about 10 ms.
10758 	 */
10759 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
10760 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
10761 	 * which this event is generated when the
10762 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10763 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
10764 	 */
10765 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
10766 	/* Used by the driver to specify the reason for the driver/firmware to
10767 	 * pause sending beacons to userspace when the
10768 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10769 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
10770 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
10771 	 * attribute.
10772 	 */
10773 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
10774 	/* Used by the driver to specify whether the driver will automatically
10775 	 * resume reporting beacon events to userspace later (for example after
10776 	 * the ongoing off-channel activity is completed etc.) when the
10777 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10778 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
10779 	 */
10780 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
10781 	/* Optionally set by userspace to request the driver not to resume
10782 	 * beacon reporting after a pause is completed, when the
10783 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10784 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10785 	 * If this flag is set, the driver will not resume beacon reporting
10786 	 * after any pause in beacon reporting is completed. Userspace has to
10787 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
10788 	 * to initiate beacon reporting again. If this flag is set in the recent
10789 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
10790 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
10791 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
10792 	 * set by the driver. Setting this flag until and unless there is a
10793 	 * specific need is not recommended as there is a chance of some beacons
10794 	 * received after pause command and next start command being not
10795 	 * reported.
10796 	 */
10797 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
10798 
10799 	/* Keep last */
10800 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
10801 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
10802 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
10803 };
10804 
10805 /**
10806  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
10807  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
10808  *
10809  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
10810  * a virtual device.
10811  *
10812  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
10813  * a physical device.
10814  */
10815 enum qca_vendor_oem_device_type {
10816 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
10817 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
10818 };
10819 
10820 /*
10821  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
10822  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
10823  *
10824  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
10825  * used to set/query the data to/from the firmware. On query, the same
10826  * attribute is used to carry the respective data in the reply sent by the
10827  * driver to userspace. The request to set/query the data and the format of the
10828  * respective data from the firmware are embedded in the attribute. The
10829  * maximum size of the attribute payload is 1024 bytes.
10830  *
10831  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
10832  * based on this field. This optional attribute is included to specify whether
10833  * the device type is a virtual device or a physical device for the command.
10834  * This attribute can be omitted for a virtual device (default) command.
10835  * This u8 attribute is used to carry information for the device type using
10836  * values defined by enum qca_vendor_oem_device_type.
10837  *
10838  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
10839  * attribute when the data is queried from the firmware.
10840  *
10841  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
10842  * is set when the userspace queries data from the firmware. This attribute
10843  * should not be set when userspace sets the OEM data to the firmware.
10844  */
10845 enum qca_wlan_vendor_attr_oem_data_params {
10846 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
10847 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
10848 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
10849 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
10850 
10851 	/* keep last */
10852 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
10853 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
10854 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
10855 };
10856 
10857 /**
10858  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
10859  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
10860  *
10861  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
10862  * Nested attribute containing multiple ranges with following attributes:
10863  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
10864  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
10865  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
10866  *
10867  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
10868  * Starting center frequency in MHz.
10869  *
10870  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
10871  * Ending center frequency in MHz.
10872  *
10873  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
10874  * s32 attribute, optional. It is a per frequency range attribute.
10875  * The maximum TX power limit from user space is to be applied on an
10876  * unrestricted interface for corresponding frequency range. It is also
10877  * possible that the actual TX power may be even lower than this cap due to
10878  * other considerations such as regulatory compliance, SAR, etc. In absence of
10879  * this attribute the driver shall follow current behavior which means
10880  * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
10881  * power derived by the driver based on regulatory/SAR during interface up.
10882  *
10883  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
10884  * u32 attribute, optional. Indicates all the interface types which are
10885  * restricted for all frequency ranges provided in
10886  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
10887  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
10888  * This attribute encapsulates bitmasks of interface types defined in
10889  * enum nl80211_iftype. If an interface is marked as restricted the driver must
10890  * move to a safe channel and if no safe channel is available the driver shall
10891  * terminate that interface functionality. In absence of this attribute,
10892  * interface (SAP/P2P) can still continue operating on an unsafe channel with
10893  * TX power limit derived from either
10894  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
10895  * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
10896  * is not provided.
10897  */
10898 enum qca_wlan_vendor_attr_avoid_frequency_ext {
10899 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
10900 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
10901 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
10902 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
10903 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
10904 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
10905 
10906 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
10907 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
10908 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
10909 };
10910 
10911 /*
10912  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
10913  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
10914  */
10915 enum qca_wlan_vendor_attr_add_sta_node_params {
10916 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
10917 	/* 6 byte MAC address of STA */
10918 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
10919 	/* Authentication algorithm used by the station of size u16;
10920 	 * defined in enum nl80211_auth_type.
10921 	 */
10922 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
10923 
10924 	/* keep last */
10925 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
10926 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
10927 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
10928 };
10929 
10930 /**
10931  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
10932  * This enum defines the valid set of values of BT coex chain mode.
10933  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
10934  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10935  *
10936  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
10937  * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
10938  */
10939 enum qca_btc_chain_mode {
10940 	QCA_BTC_CHAIN_SHARED = 0,
10941 	QCA_BTC_CHAIN_SEPARATED = 1,
10942 };
10943 
10944 /**
10945  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
10946  * chain mode.
10947  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10948  *
10949  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
10950  * Indicates the BT coex chain mode, are 32-bit values from
10951  * enum qca_btc_chain_mode. This attribute is mandatory.
10952  *
10953  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
10954  * If set, vdev should be restarted when BT coex chain mode is updated.
10955  * This attribute is optional.
10956  */
10957 enum qca_vendor_attr_btc_chain_mode {
10958 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
10959 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
10960 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
10961 
10962 	/* Keep last */
10963 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
10964 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
10965 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
10966 };
10967 
10968 /**
10969  * enum qca_vendor_wlan_sta_flags - Station feature flags
10970  * Bits will be set to 1 if the corresponding features are enabled.
10971  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
10972  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
10973     for the station
10974  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
10975     for the station
10976  */
10977 enum qca_vendor_wlan_sta_flags {
10978 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
10979 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
10980 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
10981 };
10982 
10983 /**
10984  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
10985  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
10986  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
10987  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
10988  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
10989  */
10990 enum qca_vendor_wlan_sta_guard_interval {
10991 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
10992 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
10993 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
10994 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
10995 };
10996 
10997 /**
10998  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
10999  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
11000  *
11001  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
11002  * Required attribute in request for AP mode only, 6-byte MAC address,
11003  * corresponding to the station's MAC address for which information is
11004  * requested. For STA mode this is not required as the info always correspond
11005  * to the self STA and the current/last association.
11006  *
11007  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
11008  * Optionally used in response, u32 attribute, contains a bitmap of different
11009  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
11010  *
11011  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
11012  * Optionally used in response, u32 attribute, possible values are defined in
11013  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
11014  * Guard interval used by the station.
11015  *
11016  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
11017  * Optionally used in response, u32 attribute, used in AP mode only.
11018  * Value indicates the number of data frames received from station with retry
11019  * bit set to 1 in FC.
11020  *
11021  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
11022  * Optionally used in response, u32 attribute, used in AP mode only.
11023  * Counter for number of data frames with broadcast or multicast address in
11024  * the destination address received from the station.
11025  *
11026  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
11027  * Optionally used in response, u32 attribute, used in both STA and AP modes.
11028  * Value indicates the number of data frames successfully transmitted only
11029  * after retrying the packets and for which the TX status has been updated
11030  * back to host from target.
11031  *
11032  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
11033  * Optionally used in response, u32 attribute, used in both STA and AP mode.
11034  * Value indicates the number of data frames not transmitted successfully even
11035  * after retrying the packets for the number of times equal to the total number
11036  * of retries allowed for that packet and for which the TX status has been
11037  * updated back to host from target.
11038  *
11039  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
11040  * Optionally used in response, u32 attribute, used in AP mode only.
11041  * Counter in the target for the number of data frames successfully transmitted
11042  * to the station.
11043  *
11044  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
11045  * Optionally used in response, u32 attribute, used in AP mode only.
11046  * Value indicates the number of data frames successfully transmitted only
11047  * after retrying the packets.
11048  *
11049  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
11050  * Optionally used in response, u32 attribute, used in both STA & AP mode.
11051  * Value indicates the number of data frames not transmitted successfully even
11052  * after retrying the packets for the number of times equal to the total number
11053  * of retries allowed for that packet.
11054  *
11055  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
11056  * the STA mode only. Represent the number of probe requests sent by the STA
11057  * while attempting to roam on missing certain number of beacons from the
11058  * connected AP. If queried in the disconnected state, this represents the
11059  * count for the last connected state.
11060  *
11061  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
11062  * the STA mode. Represent the number of probe responses received by the station
11063  * while attempting to roam on missing certain number of beacons from the
11064  * connected AP. When queried in the disconnected state, this represents the
11065  * count when in last connected state.
11066  *
11067  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
11068  * STA mode only. Represents the total number of frames sent out by STA
11069  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
11070  * only for the connect session. Represents the count of last connected session,
11071  * when queried in the disconnected state.
11072  *
11073  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
11074  * Total number of RTS sent out by the STA. This data is maintained per connect
11075  * session. Represents the count of last connected session, when queried in the
11076  * disconnected state.
11077  *
11078  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
11079  * STA mode.Represent the number of RTS transmission failure that reach retry
11080  * limit. This data is maintained per connect session. Represents the count of
11081  * last connected session, when queried in the disconnected state.
11082  *
11083  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
11084  * the STA mode. Represent the total number of non aggregated frames transmitted
11085  * by the STA. This data is maintained per connect session. Represents the count
11086  * of last connected session, when queried in the disconnected state.
11087  *
11088  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
11089  * STA mode. Represent the total number of aggregated frames transmitted by the
11090  * STA. This data is maintained per connect session. Represents the count of
11091  * last connected session, when queried in the disconnected state.
11092  *
11093  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
11094  * the STA mode. Represents the number of received frames with a good PLCP. This
11095  * data is maintained per connect session. Represents the count of last
11096  * connected session, when queried in the disconnected state.
11097  *
11098  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
11099  * used in the STA mode. Represents the number of occasions that no valid
11100  * delimiter is detected by A-MPDU parser. This data is maintained per connect
11101  * session. Represents the count of last connected session, when queried in the
11102  * disconnected state.
11103  *
11104  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
11105  * STA mode. Represents the number of frames for which CRC check failed in the
11106  * MAC. This data is maintained per connect session. Represents the count of
11107  * last connected session, when queried in the disconnected state.
11108  *
11109  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
11110  * STA mode. Represents the number of unicast ACKs received with good FCS. This
11111  * data is maintained per connect session. Represents the count of last
11112  * connected session, when queried in the disconnected state.
11113  *
11114  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
11115  * mode. Represents the number of received Block Acks. This data is maintained
11116  * per connect session. Represents the count of last connected session, when
11117  * queried in the disconnected state.
11118  *
11119  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
11120  * mode. Represents the number of beacons received from the connected BSS. This
11121  * data is maintained per connect session. Represents the count of last
11122  * connected session, when queried in the disconnected state.
11123  *
11124  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
11125  * STA mode. Represents the number of beacons received by the other BSS when in
11126  * connected state (through the probes done by the STA). This data is maintained
11127  * per connect session. Represents the count of last connected session, when
11128  * queried in the disconnected state.
11129  *
11130  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
11131  * the STA mode. Represents the number of received DATA frames with good FCS and
11132  * matching Receiver Address when in connected state. This data is maintained
11133  * per connect session. Represents the count of last connected session, when
11134  * queried in the disconnected state.
11135  *
11136  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
11137  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
11138  * when in the connected state. This data is maintained per connect session.
11139  * Represents the count of last connected session, when queried in the
11140  * disconnected state.
11141  *
11142  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
11143  * STA mode. This represents the target power in dBm for the transmissions done
11144  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
11145  * connect session. Represents the count of last connected session, when
11146  * queried in the disconnected state.
11147  *
11148  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
11149  * STA mode. This represents the Target power in dBm for transmissions done to
11150  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11151  * session. Represents the count of last connected session, when queried in the
11152  * disconnected state.
11153  *
11154  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
11155  * STA mode. This represents the Target power in dBm for transmissions done to
11156  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
11157  * Represents the count of last connected session, when queried in the
11158  * disconnected state.
11159  *
11160  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
11161  * STA mode. This represents the Target power in dBm for transmissions done to
11162  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11163  * session. Represents the count of last connected session, when queried in
11164  * the disconnected state.
11165  *
11166  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
11167  * STA mode. This represents the Target power in dBm for for transmissions done
11168  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
11169  * Represents the count of last connected session, when queried in the
11170  * disconnected state.
11171  *
11172  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
11173  * in the STA mode. This represents the Nested attribute representing the
11174  * overflow counts of each receive buffer allocated to the hardware during the
11175  * STA's connection. The number of hw buffers might vary for each WLAN
11176  * solution and hence this attribute represents the nested array of all such
11177  * HW buffer count. This data is maintained per connect session. Represents
11178  * the count of last connected session, when queried in the disconnected state.
11179  *
11180  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
11181  * allowed as per the regulatory requirements for the current or last connected
11182  * session. Used in the STA mode.
11183  *
11184  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
11185  * (dBm) used by the station in its latest unicast frame while communicating
11186  * to the AP in the connected state. When queried in the disconnected state,
11187  * this represents the TX power used by the STA with last AP communication
11188  * when in connected state.
11189  *
11190  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
11191  * level used to adjust the RX sensitivity. Represents the current ANI level
11192  * when queried in the connected state. When queried in the disconnected
11193  * state, this corresponds to the latest ANI level at the instance of
11194  * disconnection.
11195  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11196  * only. This represents the number of group addressed robust management frames
11197  * received from this station with an invalid MIC or a missing MME when PMF is
11198  * enabled.
11199  *
11200  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11201  * only. This represents the number of group addressed robust management frames
11202  * received from this station with the packet number less than or equal to the
11203  * last received packet number when PMF is enabled.
11204  *
11205  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11206  * mode only. This represents the number of Beacon frames received from this
11207  * station with an invalid MIC or a missing MME when beacon protection is
11208  * enabled.
11209  *
11210  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11211  * only. This represents number of Beacon frames received from this station with
11212  * the packet number less than or equal to the last received packet number when
11213  * beacon protection is enabled.
11214  *
11215  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11216  * STA mode only. Driver uses this attribute to populate the connection failure
11217  * reason codes and the values are defined in
11218  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11219  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11220  * connection failure from driver. The driver shall not include this attribute
11221  * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
11222  * connection failure observed in the last attempted connection.
11223  *
11224  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11225  * used by the station in its last TX frame while communicating to the AP in the
11226  * connected state. When queried in the disconnected state, this represents the
11227  * rate used by the STA in the last TX frame to the AP when it was connected.
11228  * This attribute is used for STA mode only.
11229  *
11230  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11231  * This represents the rate index used by the STA for the last TX frame to the
11232  * AP. When queried in the disconnected state, this gives the last RIX used by
11233  * the STA in the last TX frame to the AP when it was connected.
11234  *
11235  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11236  * mode only. This represents the number of times the STA TSF goes out of sync
11237  * from the AP after the connection. If queried in the disconnected state, this
11238  * gives the count of TSF out of sync for the last connection.
11239  *
11240  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11241  * mode only. This represents the roam trigger reason for the last roaming
11242  * attempted by the firmware. This can be queried either in connected state or
11243  * disconnected state. Each bit of this attribute represents the different
11244  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11245  *
11246  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11247  * only. This represents the roam fail reason for the last failed roaming
11248  * attempt by the firmware. Different roam failure reason codes are specified
11249  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11250  * connected state or disconnected state.
11251  *
11252  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11253  * STA mode only. This represents the roam invoke fail reason for the last
11254  * failed roam invoke. Different roam invoke failure reason codes
11255  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11256  * queried either in connected state or disconnected state.
11257  *
11258  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11259  * This represents the average congestion duration of uplink frames in MAC
11260  * queue in unit of ms. This can be queried either in connected state or
11261  * disconnected state.
11262  */
11263 enum qca_wlan_vendor_attr_get_sta_info {
11264 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
11265 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
11266 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
11267 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
11268 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
11269 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
11270 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
11271 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
11272 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
11273 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
11274 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
11275 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
11276 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
11277 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
11278 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
11279 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
11280 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
11281 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
11282 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
11283 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
11284 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
11285 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
11286 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
11287 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
11288 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
11289 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
11290 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
11291 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
11292 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
11293 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
11294 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
11295 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
11296 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
11297 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
11298 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
11299 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
11300 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
11301 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
11302 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
11303 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
11304 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
11305 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
11306 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
11307 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
11308 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
11309 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
11310 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
11311 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
11312 
11313 	/* keep last */
11314 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
11315 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
11316 		QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
11317 };
11318 
11319 /**
11320  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
11321  * Used when the driver triggers the STA to disconnect from the AP.
11322  *
11323  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
11324  * disconnection with the AP due to unspecified reasons.
11325  *
11326  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
11327  * disconnection with the AP due to a roaming failure. This roaming is triggered
11328  * internally (host driver/firmware).
11329  *
11330  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
11331  * the AP when the user/external triggered roaming fails.
11332  *
11333  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
11334  * by the host driver whenever gateway reachability failure is detected and the
11335  * driver disconnects with AP.
11336  *
11337  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
11338  * the AP on a channel switch announcement from it with an unsupported channel.
11339  *
11340  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
11341  * with indoor channels disabled and if the STA is connected on one of these
11342  * disabled channels, the host driver disconnected the STA with this reason
11343  * code.
11344  *
11345  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
11346  * explicit request from the user to disable the current operating channel.
11347  *
11348  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
11349  * the internal host driver/firmware recovery.
11350  *
11351  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
11352  * a timeout for the key installations from the user space.
11353  *
11354  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
11355  * STA on a band change request from the user space to a different band from the
11356  * current operation channel/band.
11357  *
11358  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
11359  * interface down trigger from the user space.
11360  *
11361  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
11362  * STA on getting continuous transmission failures for multiple Data frames.
11363  *
11364  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
11365  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
11366  * represents inactivity from AP on such transmissions.
11367 
11368  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
11369  * disconnection when SA Query times out (AP does not respond to SA Query).
11370  *
11371  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
11372  * STA on missing the beacons continuously from the AP.
11373  *
11374  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
11375  * able to move to the channel mentioned by the AP in CSA.
11376  *
11377  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
11378  */
11379 enum qca_disconnect_reason_codes {
11380 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
11381 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11382 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11383 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11384 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11385 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11386 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11387 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11388 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11389 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11390 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11391 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11392 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11393 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11394 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11395 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11396 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11397 };
11398 
11399 /**
11400  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11401  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11402  *
11403  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11404  * This attribute represents the driver specific reason codes (local
11405  * driver/firmware initiated reasons for disconnection) defined
11406  * in enum qca_disconnect_reason_codes.
11407  */
11408 enum qca_wlan_vendor_attr_driver_disconnect_reason {
11409 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11410 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11411 
11412 	/* keep last */
11413 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11414 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11415 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11416 };
11417 
11418 /**
11419  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11420  *
11421  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11422  */
11423 enum qca_wlan_tspec_operation {
11424 	QCA_WLAN_TSPEC_ADD = 0,
11425 	QCA_WLAN_TSPEC_DEL = 1,
11426 	QCA_WLAN_TSPEC_GET = 2,
11427 };
11428 
11429 /**
11430  * enum qca_wlan_tspec_direction - Direction in TSPEC
11431  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11432  *
11433  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11434  */
11435 enum qca_wlan_tspec_direction {
11436 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11437 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11438 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11439 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11440 };
11441 
11442 /**
11443  * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
11444  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11445  *
11446  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11447  */
11448 enum qca_wlan_tspec_ack_policy {
11449 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11450 	QCA_WLAN_TSPEC_NO_ACK = 1,
11451 	/* Reserved */
11452 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11453 };
11454 
11455 /**
11456  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11457  * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11458  *
11459  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11460  * u8 attribute. Specify the TSPEC operation of this request. Possible values
11461  * are defined in enum qca_wlan_tspec_operation.
11462  * Mandatory attribute for all kinds of config TSPEC requests.
11463  *
11464  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11465  * u8 attribute. TS ID. Possible values are 0-7.
11466  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11467  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11468  *
11469  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11470  * u8 attribute. Direction of data carried by the TS. Possible values are
11471  * defined in enum qca_wlan_tspec_direction.
11472  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11473  *
11474  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11475  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11476  * with the TS. set - enabled, not set - disabled.
11477  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11478  *
11479  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11480  * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
11481  * belonging to this TS. Possible values are 0-7.
11482  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11483  *
11484  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11485  * u8 attribute. Indicate whether MAC acknowledgements are required for
11486  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11487  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11488  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11489  *
11490  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11491  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11492  * belonging to this TS.
11493  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11494  *
11495  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11496  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11497  * belonging to this TS.
11498  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11499  *
11500  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11501  * u32 attribute. Specify the minimum interval in microseconds between the
11502  * start of two successive SPs.
11503  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11504  *
11505  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11506  * u32 attribute. Specify the maximum interval in microseconds between the
11507  * start of two successive SPs.
11508  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11509  *
11510  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11511  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11512  * without arrival or transfer of an MPDU belonging to the TS before this TS
11513  * is deleted by the MAC entity at the HC.
11514  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11515  *
11516  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11517  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11518  * without arrival or transfer of an MSDU belonging to the TS before the
11519  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11520  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11521  * interval is always less than or equal to the inactivity interval.
11522  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11523  *
11524  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11525  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11526  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11527  * bounds of this TSPEC.
11528  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11529  *
11530  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11531  * u32 attribute. Indicate the average data rate in bps specified at the MAC
11532  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11533  * bounds of this TSPEC.
11534  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11535  *
11536  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11537  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11538  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11539  * the bounds of this TSPEC.
11540  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11541  *
11542  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11543  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11544  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11545  * value of 0 indicates that there are no bursts.
11546  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11547  *
11548  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11549  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11550  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11551  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11552  *
11553  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11554  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11555  * and above the stated application rates required to transport an MSDU/A-MSDU
11556  * belonging to the TS in this TSPEC.
11557  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11558  */
11559 enum qca_wlan_vendor_attr_config_tspec {
11560 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11561 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11562 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11563 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11564 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11565 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11566 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11567 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11568 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11569 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11570 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11571 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11572 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11573 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11574 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11575 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11576 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11577 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11578 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11579 
11580 	/* keep last */
11581 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11582 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11583 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11584 };
11585 
11586 /**
11587  * enum qca_wlan_medium_assess_type - Type of medium assess request
11588  *
11589  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
11590  */
11591 enum qca_wlan_medium_assess_type {
11592 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
11593 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
11594 };
11595 
11596 /**
11597  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
11598  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
11599  *
11600  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
11601  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
11602  * Specify the type of medium assess request and indicate its type in response.
11603  * Possible values are defined in enum qca_wlan_medium_assess_type.
11604  *
11605  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
11606  * u32 attribute. Mandatory in CCA request.
11607  * Specify the assessment period in terms of seconds. Assessment result will be
11608  * sent as the response to the CCA request after the assessment period.
11609  *
11610  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
11611  * u32 attribute. Mandatory in response to CCA request.
11612  * Total timer tick count of the assessment cycle.
11613  *
11614  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
11615  * u32 attribute. Mandatory in response to CCA request.
11616  * Timer tick count of idle time in the assessment cycle.
11617  *
11618  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
11619  * u32 attribute. Mandatory in response to CCA request.
11620  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
11621  *
11622  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
11623  * u32 attribute. Mandatory in response to CCA request.
11624  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
11625  *
11626  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
11627  * s32 attribute. Mandatory in response to CCA request.
11628  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
11629  *
11630  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
11631  * s32 attribute. Mandatory in response to CCA request.
11632  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
11633  *
11634  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
11635  * u8 attribute. Mandatory in congestion report request.
11636  * 1-enable 0-disable.
11637  *
11638  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
11639  * u8 attribute. Mandatory in congestion report enable request and will be
11640  * ignored if present in congestion report disable request. Possible values are
11641  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
11642  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
11643  * congestion percentage reaches the configured threshold.
11644  *
11645  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
11646  * u8 attribute. Optional in congestion report enable request and will be
11647  * ignored if present in congestion report disable request.
11648  * Specify the interval of congestion report event in terms of seconds. Possible
11649  * values are 1-255. Default value 1 will be used if this attribute is omitted
11650  * or using invalid values.
11651  *
11652  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
11653  * u8 attribute. Mandatory in congestion report event.
11654  * Indicate the actual congestion percentage. Possible values are 0-100.
11655  */
11656 enum qca_wlan_vendor_attr_medium_assess {
11657 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
11658 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
11659 
11660 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
11661 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
11662 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
11663 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
11664 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
11665 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
11666 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
11667 
11668 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
11669 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
11670 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
11671 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
11672 
11673 	/* keep last */
11674 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
11675 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
11676 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
11677 };
11678 
11679 /**
11680  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
11681  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
11682  *
11683  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
11684  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
11685  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
11686  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
11687  *
11688  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
11689  * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
11690  *
11691  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
11692  * u8 attribute, required. indicates group id of Tx VDEV
11693  *
11694  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
11695  * Nested attribute. This attribute shall be used by the driver to send
11696  * group information. The attributes defined in enum
11697  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
11698  * are nested in this attribute.
11699  */
11700 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
11701 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
11702 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
11703 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
11704 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
11705 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
11706 
11707 	/* keep last */
11708 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
11709 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
11710 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
11711 };
11712 
11713 /**
11714  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
11715  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
11716  *
11717  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
11718  * u32 attribute, required. contains interface index.
11719  *
11720  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
11721  * u8 attribute, required. 0 - means vdev is in down state.
11722  * 1- means vdev is in up state.
11723  */
11724 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
11725 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
11726 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
11727 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
11728 
11729 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
11730 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
11731 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
11732 };
11733 
11734 /**
11735  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
11736  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
11737  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
11738  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
11739  * frame
11740  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
11741  * Request frame.
11742  */
11743 enum qca_wlan_vendor_oci_override_frame_type {
11744 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
11745 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
11746 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
11747 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
11748 };
11749 
11750 /**
11751  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
11752  *
11753  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
11754  * STA interface has to be given while selecting the connection policies
11755  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
11756  * An interface is set as primary through the attribute
11757  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
11758  * applicable if the primary interface has not been set earlier.
11759  *
11760  * The intention is not to downgrade the primary STA performance, such as:
11761  * - Do not reduce the number of TX/RX chains of primary connection.
11762  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
11763  *   chains.
11764  * - If using MCC, should set the MCC duty cycle of the primary connection to
11765  *   be higher than the secondary connection.
11766  *
11767  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
11768  * subsequent STA connection shall be chosen to balance with the existing
11769  * concurrent STA's performance.
11770  * Such as
11771  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
11772  *   capability.
11773  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
11774  *   to the secondary.
11775  * - Prefer BSSID candidates which will help provide the best "overall"
11776  *   performance for all the STA connections.
11777  */
11778 enum qca_wlan_concurrent_sta_policy_config {
11779 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
11780 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
11781 };
11782 
11783 /**
11784  * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes
11785  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command.
11786  *
11787  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG:
11788  * u8 attribute. Configures the concurrent STA policy configuration.
11789  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
11790  */
11791 enum qca_wlan_vendor_attr_concurrent_sta_policy {
11792 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0,
11793 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1,
11794 
11795 	/* keep last */
11796 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST,
11797 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX =
11798 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1,
11799 
11800 };
11801 
11802 /**
11803  * enum qca_sta_connect_fail_reason_codes - Defines values carried
11804  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
11805  * attribute.
11806  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
11807  * for unicast probe request.
11808  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
11809  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
11810  * ath request.
11811  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
11812  * received from AP.
11813  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
11814  * request.
11815  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
11816  * assoc request.
11817  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
11818  * received from AP.
11819  */
11820 enum qca_sta_connect_fail_reason_codes {
11821 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
11822 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
11823 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
11824 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
11825 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
11826 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
11827 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
11828 };
11829 
11830 /**
11831  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
11832  * OCI override request. These attributes are used inside nested attribute
11833  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
11834  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
11835  *
11836  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
11837  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
11838  * attribute to specify the frame type in which the OCI is to be overridden.
11839  *
11840  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
11841  * OCI frequency (in MHz) to override in the specified frame type.
11842  */
11843 enum qca_wlan_vendor_attr_oci_override {
11844 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
11845 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
11846 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
11847 
11848 	/* keep last */
11849 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
11850 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
11851 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
11852 };
11853 
11854 /**
11855  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
11856  * filters defined in this enum are used in attribute
11857  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
11858  *
11859  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
11860  * shall filter the channels which are not usable because of coexistence with
11861  * cellular radio.
11862  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
11863  * shall filter the channels which are not usable because of existing active
11864  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
11865  *
11866  */
11867 enum qca_wlan_vendor_usable_channels_filter {
11868 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
11869 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
11870 };
11871 
11872 /**
11873  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
11874  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
11875  *
11876  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
11877  * u32 attribute, required. Indicates the center frequency of the primary
11878  * channel in MHz.
11879  *
11880  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
11881  * u32 attribute. Indicates the center frequency of the primary segment of the
11882  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
11883  * 160 MHz, and 320 MHz channels.
11884  *
11885  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
11886  * u32 attribute. Indicates the center frequency of the secondary segment of
11887  * 80+80 channel in MHz. This attribute is required only when
11888  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
11889  *
11890  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
11891  * u32 attribute, required. Indicates the bandwidth of the channel, possible
11892  * values are defined in enum nl80211_chan_width.
11893  *
11894  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
11895  * u32 attribute, required. Indicates all the interface types for which this
11896  * channel is usable. This attribute encapsulates bitmasks of interface types
11897  * defined in enum nl80211_iftype.
11898  *
11899  */
11900 enum qca_wlan_vendor_attr_chan_info {
11901 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
11902 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
11903 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
11904 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
11905 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
11906 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
11907 
11908 	/* keep last */
11909 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
11910 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
11911 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
11912 };
11913 
11914 /**
11915  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
11916  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
11917  *
11918  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
11919  * u32 attribute. Indicates the bands from which the channels should be reported
11920  * in response. This attribute encapsulates bit masks of bands defined in enum
11921  * nl80211_band. Optional attribute, if not present in the request the driver
11922  * shall return channels from all supported bands.
11923  *
11924  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
11925  * u32 attribute. Indicates all the interface types for which the usable
11926  * channels information is requested. This attribute encapsulates bitmasks of
11927  * interface types defined in enum nl80211_iftype. Optional attribute, if not
11928  * present in the request the driver shall send information of all supported
11929  * interface modes.
11930  *
11931  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
11932  * u32 attribute. This attribute carries information of all filters that shall
11933  * be applied while populating usable channels information by the driver. This
11934  * attribute carries bit masks of different filters defined in enum
11935  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
11936  * in the request the driver shall send information of channels without applying
11937  * any of the filters that can be configured through this attribute.
11938  *
11939  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
11940  * Nested attribute. This attribute shall be used by the driver to send
11941  * usability information of each channel. The attributes defined in enum
11942  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
11943  */
11944 enum qca_wlan_vendor_attr_usable_channels {
11945 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
11946 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
11947 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
11948 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
11949 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
11950 
11951 	/* keep last */
11952 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
11953 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
11954 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
11955 };
11956 
11957 /**
11958  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
11959  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
11960  *
11961  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
11962  *	the list of radar history entries.
11963  *	Each entry contains freq, timestamp, and radar signal detect flag.
11964  *	The driver shall add an entry when CAC has finished, or radar signal
11965  *	has been detected post AP beaconing. The driver shall maintain at least
11966  *	8 entries in order to save CAC result for a 160 MHz channel.
11967  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
11968  *	Channel frequency in MHz.
11969  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
11970  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
11971  *	or radar detection.
11972  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
11973  *	This flag indicates radar signal has been detected.
11974  */
11975 enum qca_wlan_vendor_attr_radar_history {
11976 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
11977 
11978 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
11979 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
11980 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
11981 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
11982 
11983 	/* keep last */
11984 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
11985 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
11986 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
11987 };
11988 
11989 /**
11990  * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
11991  *
11992  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
11993  *	target exited MCC state and cleared the quota information. In the
11994  *	command it clears MCC quota setting and restores adaptive scheduling.
11995  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
11996  *      will not be changed.
11997  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
11998  *      and the target may change the quota based on the data activity.
11999  */
12000 enum qca_wlan_vendor_mcc_quota_type {
12001 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
12002 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
12003 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
12004 };
12005 
12006 /**
12007  * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
12008  * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
12009  * quota information or as a command to set the required MCC quota for an
12010  * interface.
12011  *
12012  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
12013  * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
12014  * In a command this specifies the MCC quota type to be set for the interface.
12015  * In an event this provides the current quota type in force.
12016  * This is required in a command and an event.
12017  *
12018  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
12019  * the list of channel quota entries.
12020  * In an event each entry contains the frequency and respective time quota for
12021  * all the MCC interfaces.
12022  * In a command it specifies the interface index and respective time quota.
12023  * In a command only one entry (ifindex, quota pair) may be specified.
12024  *
12025  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
12026  * Channel frequency in MHz. This is present only in an event.
12027  *
12028  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
12029  * Channel time quota expressed as percentage.
12030  * This is present in an event and a command.
12031  * In an command, the user shall specify the quota to be allocated for the
12032  * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
12033  * In an event this provides the existing quota for the channel.
12034  *
12035  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
12036  * Specifies the interface index (netdev) for which the corresponding
12037  * configurations are applied. This is required in a command only. Only one
12038  * interface index may be specified. If not specified, the configuration is
12039  * rejected.
12040  */
12041 enum qca_wlan_vendor_attr_mcc_quota {
12042 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
12043 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
12044 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
12045 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
12046 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
12047 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
12048 
12049 	/* keep last */
12050 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
12051 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
12052 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
12053 };
12054 
12055 /**
12056  * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
12057  * radio configurations present in each radio combination.
12058  *
12059  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
12060  * the band info in the radio configuration. Uses the enum qca_set_band values.
12061  *
12062  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
12063  * the number of antennas info in the radio configuration.
12064  */
12065 enum qca_wlan_vendor_attr_supported_radio_cfg {
12066 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
12067 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
12068 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
12069 
12070 	/* keep last */
12071 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
12072 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
12073 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
12074 };
12075 
12076 /**
12077  * enum qca_wlan_vendor_attr_radio_combination - Attributes for
12078  * radio combinations supported by the device.
12079  *
12080  * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
12081  * provides the radio configurations present in the radio combination.
12082  * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
12083  * This attribute provides the values for radio combination matrix.
12084  * For standalone config, the number of config values is one and the config
12085  * carries the band and antenna information for standalone configuration. For
12086  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
12087  * configuration the number of config values is two and the config carries the
12088  * band and antenna information for each simultaneous radio.
12089  */
12090 enum qca_wlan_vendor_attr_radio_combination {
12091 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
12092 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
12093 
12094 	/* keep last */
12095 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
12096 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
12097 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
12098 };
12099 
12100 /**
12101  * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
12102  * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
12103  *
12104  * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
12105  * provides the radio combinations supported by the device.
12106  * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
12107  * For example, in the radio combination matrix for a device which has two
12108  * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
12109  * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
12110  * combinations is 5 and the radio combinations are
12111  * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
12112  * {{5 GHz 2X2}}, //Standalone 5 GHz
12113  * {{6 GHz 2X2}}, //Standalone 6 GHz
12114  * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
12115  * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
12116  * The band and antenna info together as nested data provides one radio config.
12117  * Standalone configuration has one config with band and antenna nested data.
12118  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
12119  * have two nested band and antenna info data.
12120  */
12121 enum qca_wlan_vendor_attr_radio_combination_matrix {
12122 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
12123 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
12124 
12125 	/* keep last */
12126 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
12127 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
12128 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
12129 };
12130 
12131 /**
12132  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
12133  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
12134  *
12135  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
12136  * Enable mDNS offload. This attribute is mandatory to enable
12137  * mDNS offload feature. If this attribute is not present, mDNS offload
12138  * is disabled.
12139  *
12140  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
12141  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
12142  * attribute is mandatory when enabling the feature, and not required when
12143  * disabling the feature.
12144  *
12145  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
12146  * the following attributes:
12147  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
12148  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
12149  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
12150  *
12151  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
12152  * It consists of a hostname and ".local" as the domain name. The character
12153  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
12154  * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
12155  * supported per vdev.
12156  * For example: myphone.local
12157  *
12158  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
12159  * u16 attribute. It specifies the total number of resource records present
12160  * in the answer section of the answer payload. This attribute is needed by the
12161  * firmware to populate the mDNS response frame for mNDS queries without having
12162  * to parse the answer payload.
12163  *
12164  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
12165  * attribute sent by the mdnsResponder from userspace. It contains resource
12166  * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
12167  * payload is passed down to firmware and is transmitted in response to
12168  * mDNS queries.
12169  * The maximum size of the answer payload supported is 512 bytes.
12170  */
12171 enum qca_wlan_vendor_attr_mdns_offload {
12172 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
12173 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
12174 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
12175 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
12176 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
12177 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
12178 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
12179 
12180 	/* keep last */
12181 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
12182 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
12183 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
12184 };
12185 
12186 /**
12187  * enum qca_vendor_attr_diag_event_type  - Attributes used by
12188  * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
12189  *
12190  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
12191  * driver/firmware during Connection request from Userspace. Uses the
12192  * following attributes of enum qca_wlan_vendor_attr_diag:
12193  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12194  * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
12195  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12196  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
12197  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12198  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
12199  * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
12200  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
12201  * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
12202  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12203  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
12204  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
12205  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12206  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12207  *
12208  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
12209  * driver/firmware when a connection is failed. Uses the
12210  * following attributes of enum qca_wlan_vendor_attr_diag:
12211  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12212  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12213  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12214  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12215  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12216  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12217  *
12218  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
12219  * driver/firmware during Authentication request from a device. Uses the
12220  * following attributes of enum qca_wlan_vendor_attr_diag:
12221  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12222  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12223  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12224  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12225  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
12226  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12227  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12228  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12229  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12230  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12231  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12232  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12233  *
12234  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
12235  * driver/firmware when device receives an authentication response. Uses the
12236  * following attributes of enum qca_wlan_vendor_attr_diag:
12237  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12238  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12239  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12240  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
12241  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12242  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12243  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12244  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12245  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12246  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12247  *
12248  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
12249  * driver/firmware when device sends an association request. Uses the
12250  * following attributes of enum qca_wlan_vendor_attr_diag:
12251  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12252  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12253  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12254  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12255  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12256  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12257  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12258  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12259  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12260  *
12261  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
12262  * driver/firmware when device receives an association response. Uses the
12263  * following attributes of enum qca_wlan_vendor_attr_diag:
12264  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12265  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12266  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12267  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12268  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12269  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12270  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12271  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12272  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
12273  *
12274  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
12275  * driver/userspace when device receives a deauthentication response. Uses the
12276  * following attributes of enum qca_wlan_vendor_attr_diag:
12277  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12278  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12279  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12280  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12281  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12282  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12283  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12284  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12285  *
12286  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
12287  * driver/userspace when device sends a deauthentication request. Uses the
12288  * following attributes of enum qca_wlan_vendor_attr_diag:
12289  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12290  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12291  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12292  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12293  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12294  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12295  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12296  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12297  *
12298  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
12299  * driver/firmware when device receives a disassociation response. Uses the
12300  * following attributes of enum qca_wlan_vendor_attr_diag:
12301  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12302  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12303  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12304  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12305  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12306  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12307  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12308  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12309  *
12310  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
12311  * driver/firmware when device sends a disassociation request. Uses the
12312  * following attributes of enum qca_wlan_vendor_attr_diag:
12313  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12314  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12315  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12316  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12317  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12318  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12319  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12320  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12321  *
12322  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
12323  * driver/firmware when device did not receive beacon packets during connection.
12324  * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
12325  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12326  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12327  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12328  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12329  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12330  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12331  *
12332  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
12333  * driver/firmware when Roaming scan is triggered. Uses the following
12334  * attributes of enum qca_wlan_vendor_attr_diag:
12335  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12336  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
12337  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
12338  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12339  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12340  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
12341  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
12342  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12343  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12344  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12345  *
12346  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
12347  * driver/firmware Roam scanning is processed. Uses the following
12348  * attributes of enum qca_wlan_vendor_attr_diag:
12349  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12350  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12351  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
12352  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
12353  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12354  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12355  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12356  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12357  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
12358  *
12359  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
12360  * driver/firmware to provide Roam information of the current AP. Uses the
12361  * following attributes of enum qca_wlan_vendor_attr_diag:
12362  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12363  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12364  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12365  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12366  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12367  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
12368  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12369  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12370  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12371  *
12372  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
12373  * driver/firmware to provide Roam information of the candid AP. Uses the
12374  * following attributes of enum qca_wlan_vendor_attr_diag:
12375  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12376  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12377  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12378  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12379  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12380  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
12381  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
12382  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12383  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12384  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12385  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12386  *
12387  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
12388  * driver/firmware to provide Roam result after selecting a candidate. Uses the
12389  * following attributes of enum qca_wlan_vendor_attr_diag:
12390  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12391  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
12392  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12393  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12394  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12395  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12396  *
12397  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
12398  * driver/firmware to indicate Roam Cancellation due to higher priority events.
12399  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12400  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12401  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12402  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12403  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12404  *
12405  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
12406  * /firmware when STA sends a BTM request frame. Uses the following attributes
12407  * of enum qca_wlan_vendor_attr_diag:
12408  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12409  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12410  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
12411  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
12412  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
12413  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
12414  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12415  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12416  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12417  *
12418  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
12419  * driver/firmware when STA queries about BTM transition. Uses the following
12420  * attributes of enum qca_wlan_vendor_attr_diag:
12421  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12422  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12423  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
12424  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12425  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12426  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12427  *
12428  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
12429  * /firmware when STA receives BTM response frame. Uses the following
12430  * attributes of enum qca_wlan_vendor_attr_diag:
12431  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12432  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12433  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
12434  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
12435  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
12436  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12437  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12438  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12439  *
12440  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
12441  * driver/firmware to provide BTM request candidate information. Uses the
12442  * following attributes of enum qca_wlan_vendor_attr_diag:
12443  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12444  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12445  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
12446  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12447  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12448  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12449  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12450  *
12451  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
12452  * /firmware when ROAM WTC trigger happens. Uses the following attributes of
12453  * enum qca_wlan_vendor_attr_diag:
12454  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12455  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
12456  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12457  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
12458  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12459  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12460  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12461  *
12462  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
12463  * driver/firmware to indicate DHCP discovery to AP. Uses the following
12464  * attributes of enum qca_wlan_vendor_attr_diag:
12465  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12466  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12467  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12468  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12469  *
12470  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
12471  * driver/firmware to indicate DHCP offering to AP. Uses the following
12472  * attributes of enum qca_wlan_vendor_attr_diag:
12473  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12474  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12475  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12476  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12477  *
12478  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
12479  * driver/firmware to indicate driver sent DHCP packets. Uses the following
12480  * attributes of enum qca_wlan_vendor_attr_diag:
12481  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12482  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12483  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12484  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12485  *
12486  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
12487  * /firmware to indicate acknowledgement of DHCP packets. Uses the following
12488  * attributes of enum qca_wlan_vendor_attr_diag:
12489  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12490  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12491  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12492  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12493  *
12494  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
12495  * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
12496  * following attributes of enum qca_wlan_vendor_attr_diag:
12497  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12498  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12499  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12500  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12501  *
12502  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
12503  * /firmware to indicate EAPOL M1 message. Uses the following attributes of
12504  * enum qca_wlan_vendor_attr_diag:
12505  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12506  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12507  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12508  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12509  *
12510  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
12511  * /firmware to indicate EAPOL M2 message. Uses the following attributes of
12512  * enum qca_wlan_vendor_attr_diag:
12513  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12514  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12515  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12516  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12517  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12518  *
12519  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
12520  * /firmware to indicate EAPOL M3 message. Uses the following attributes of
12521  * enum qca_wlan_vendor_attr_diag:
12522  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12523  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12524  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12525  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12526  *
12527  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
12528  * /firmware to indicate EAPOL M4 message. Uses the following attributes of
12529  * enum qca_wlan_vendor_attr_diag:
12530  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12531  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12532  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12533  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12534  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12535  *
12536  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
12537  * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
12538  * enum qca_wlan_vendor_attr_diag:
12539  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12540  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12541  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12542  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12543  *
12544  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
12545  * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
12546  * enum qca_wlan_vendor_attr_diag:
12547  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12548  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12549  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12550  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12551  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12552  *
12553  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
12554  * /firmware to indicate device sent EAP request. Uses the following attributes
12555  * of enum qca_wlan_vendor_attr_diag:
12556  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12557  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
12558  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
12559  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12560  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12561  *
12562  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
12563  * /firmware to indicate device received EAP response. Uses the following
12564  * attributes of enum qca_wlan_vendor_attr_diag:
12565  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12566  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
12567  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
12568  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12569  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12570  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12571  *
12572  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
12573  * /firmware to indicate EAP frame transmission is success. Uses the following
12574  * attributes of enum qca_wlan_vendor_attr_diag:
12575  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12576  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12577  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12578  *
12579  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
12580  * /firmware to indicate EAP frame transmission is failed. Uses the following
12581  * attributes of enum qca_wlan_vendor_attr_diag:
12582  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12583  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12584  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12585  *
12586  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
12587  * /firmware to indicate Reassocation request. Uses the following attributes
12588  * of enum qca_wlan_vendor_attr_diag:
12589  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12590  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12591  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12592  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12593  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12594  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12595  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12596  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
12597  *
12598  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
12599  * /firmware to indicate Reassocation response. Uses the following attributes
12600  * of enum qca_wlan_vendor_attr_diag:
12601  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12602  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12603  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12604  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12605  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
12606  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12607  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12608  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
12609  */
12610 enum qca_vendor_attr_diag_event_type {
12611 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
12612 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
12613 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
12614 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
12615 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
12616 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
12617 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
12618 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
12619 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
12620 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
12621 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
12622 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
12623 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
12624 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
12625 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
12626 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
12627 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
12628 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
12629 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
12630 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
12631 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
12632 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
12633 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
12634 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
12635 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
12636 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
12637 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
12638 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
12639 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
12640 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
12641 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
12642 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
12643 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
12644 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
12645 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
12646 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
12647 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
12648 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
12649 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
12650 
12651 	/* keep last */
12652 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
12653 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
12654 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
12655 };
12656 
12657 /**
12658  * enum qca_wlan_vendor_tx_status - Used by attribute
12659  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
12660  * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
12661  * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
12662  * is not received.
12663  * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
12664  * acknowledged.
12665  */
12666 enum qca_wlan_vendor_tx_status {
12667 	QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
12668 	QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
12669 	QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
12670 };
12671 
12672 /**
12673  * enum qca_roam_sub_reason - Used by attribute
12674  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
12675  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
12676  * timer expiry
12677  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
12678  * to no candidate found during LOW RSSI trigger.
12679  * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
12680  * Imminent timeout
12681  * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
12682  * failure
12683  * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
12684  * emergency like deauth/disassoc.
12685  * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
12686  * BSS transition management request.
12687  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
12688  * Roam scan triggered due to Low RSSI periodic timer
12689  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
12690  * Roam trigger due to periodic timer after no candidate found during CU
12691  * inactivity timer scan.
12692  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
12693  * found in high CU roam trigger.
12694  */
12695 enum qca_roam_sub_reason {
12696 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
12697 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
12698 	QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
12699 	QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
12700 	QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
12701 	QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
12702 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
12703 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
12704 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
12705 };
12706 
12707 /*
12708  * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
12709  * to send diag data to the userspace. The attributes defined in this enum are
12710  * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
12711  *
12712  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
12713  * by driver/firmware to send diag data. Each instance of this nested attribute
12714  * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
12715  * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
12716  * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
12717  * nested attribute can be sent with one vendor command
12718  * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
12719  *
12720  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
12721  * attribute indicates the type of the diag event from driver/firmware. Uses
12722  * values from enum qca_vendor_attr_diag_event_type.
12723  *
12724  * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
12725  * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
12726  * API to send time of the day in microseconds to userspace.
12727  *
12728  * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
12729  * This attribute indicates firmware timestamp in microseconds.
12730  *
12731  * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
12732  * indicates wlan interface index.
12733  *
12734  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
12735  * indicates 6-byte MAC address representing the BSSID of the AP.
12736  *
12737  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
12738  * indicates the 6-byte MAC address representing the BSSID hint sent in
12739  * the connect request.
12740  *
12741  * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
12742  * indicates the SSID in u8 array with a maximum length of 32.
12743  *
12744  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
12745  * indicates the frequency of AP in MHz.
12746  *
12747  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
12748  * indicates frequency hint given in the connect request in MHz.
12749  *
12750  * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
12751  * This attribute indicates RSSI of the 802.11 frame in dBm.
12752  *
12753  * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
12754  * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
12755  * Table 12-10—Integrity and key wrap algorithms.
12756  *
12757  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
12758  * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
12759  * Table 12-10—Integrity and key wrap algorithms.
12760  *
12761  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
12762  * attribute indicates Group management cipher suite defined in IEEE Std
12763  * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
12764  *
12765  * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
12766  * indicates Auth key management suite defined in IEEE Std 802.11‐2020
12767  * Table 9-151—AKM suite selectors.
12768  *
12769  * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
12770  * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
12771  * Section 9.4.1.1 Authentication Algorithm Number field.
12772  *
12773  * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
12774  * indicates bluetooth COEX is active or not.
12775  *
12776  * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
12777  * attribute indicates SAE authentication frame type. The possible values are
12778  * 1 - SAE commit frame
12779  * 2 - SAE confirm frame
12780  *
12781  * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
12782  * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
12783  * Table 9-49—Reason codes.
12784  *
12785  * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
12786  * attribute indicates sequence number of the frame defined in IEEE Std
12787  * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
12788  * field.
12789  *
12790  * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
12791  * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
12792  * 9-50—Status codes.
12793  *
12794  * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
12795  * Uses enum qca_wlan_vendor_tx_status.
12796  *
12797  * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
12798  * indicates if frame transmission is retried.
12799  *
12800  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
12801  * Uses enum qca_roam_reason.
12802  *
12803  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
12804  * Uses enum qca_roam_sub_reason.
12805  *
12806  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
12807  * indicates channel utilization in percentage.
12808  *
12809  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
12810  * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
12811  *
12812  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
12813  * This attribute indicates current RSSI threshold in dBm.
12814  *
12815  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
12816  * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
12817  * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
12818  *
12819  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
12820  * This attribute indicates number of scanned candidate APs.
12821  *
12822  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
12823  * attribute indicates roam AP rank computed based on connection preference.
12824  *
12825  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
12826  * This attribute indicates expected throughput in kbps.
12827  *
12828  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
12829  * This attribute indicates the preference value of candidate AP / connected AP
12830  * calculated in the firmware.
12831  *
12832  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
12833  * indicates connection/roaming is successful or not.
12834  *
12835  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
12836  * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
12837  * IE present in the BTM frame.
12838  *
12839  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
12840  * This attribute indicates BTM WTC duration in milliseconds.
12841  *
12842  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
12843  * indicates dialog token value of BTM query/request/response frames.
12844  *
12845  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
12846  * attribute indicates the Transition Reason field indicates the reason why
12847  * a transition attempt occurred and contains one of the values defined in IEEE
12848  * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
12849  *
12850  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
12851  * indicates BTM mode defined in IEEE Std 802.11‐2020
12852  * Figure 9-924—Request Mode field format.
12853  *
12854  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
12855  * This attribute indicates the Disassociation Timer field which is the number
12856  * of beacon transmission times (TBTTs) until the serving AP will send a
12857  * Disassociation frame to this STA.
12858  *
12859  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
12860  * This attribute indicates BTM validity interval field in TBTTs defined in
12861  * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
12862  * Action field format.
12863  *
12864  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
12865  * This attribute indicates BTM candidate list entries.
12866  *
12867  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
12868  * This attribute indicates network preference for BTM transition defined in
12869  * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
12870  *
12871  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
12872  * This attribute indicates BTM transition status code defined in IEEE Std
12873  * 802.11‐2020 Table 9-428—BTM status code definitions.
12874  *
12875  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
12876  * This attribute indicates BSS termination delay defined in IEEE Std
12877  * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
12878  *
12879  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
12880  * This attribute indicates 6-byte MAC address representing the BSSID of the
12881  * BSS that the non-AP STA transitions to.
12882  *
12883  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
12884  * indicates EAP frame type. The methods are enumerated by IANA at
12885  * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
12886  *
12887  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
12888  * indicates EAP frame length.
12889  *
12890  * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
12891  * attribute indicates the kernel timestamp. Driver uses ktime_get() API
12892  * (Time from boot but not the time spent in suspend) to send in microseconds
12893  * to userspace.
12894  *
12895  * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
12896  * indicates the association id received in the (re)association response frame
12897  * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
12898  */
12899 enum qca_wlan_vendor_attr_diag {
12900 	QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
12901 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
12902 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
12903 	QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
12904 	QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
12905 	QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
12906 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
12907 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
12908 	QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
12909 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
12910 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
12911 	QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
12912 	QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
12913 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
12914 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
12915 	QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
12916 	QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
12917 	QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
12918 	QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
12919 	QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
12920 	QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
12921 	QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
12922 	QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
12923 	QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
12924 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
12925 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
12926 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
12927 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
12928 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
12929 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
12930 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
12931 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
12932 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
12933 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
12934 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
12935 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
12936 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
12937 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
12938 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
12939 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
12940 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
12941 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
12942 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
12943 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
12944 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
12945 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
12946 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
12947 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
12948 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
12949 	QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
12950 	QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
12951 
12952 	/* keep last */
12953 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
12954 	QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
12955 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
12956 };
12957 
12958 /**
12959  * qca_wlan_vendor_monitor_data_frame_type - Represent the various
12960  * data types to be sent over the monitor interface.
12961  */
12962 enum qca_wlan_vendor_monitor_data_frame_type {
12963 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
12964 
12965 	/* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
12966 	not set */
12967 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
12968 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
12969 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
12970 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
12971 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
12972 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
12973 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
12974 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
12975 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
12976 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
12977 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
12978 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
12979 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
12980 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
12981 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
12982 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
12983 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
12984 };
12985 
12986 /**
12987  * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
12988  * mgmt types to be sent over the monitor interface.
12989  * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
12990  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
12991  * except the Beacons. Valid only in the Connect state.
12992  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
12993  * BSSID Beacons. Valid only in the Connect state.
12994  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
12995  * the Beacons obtained during the scan (off channel and connected channel)
12996  * when in connected state.
12997  */
12998 
12999 enum qca_wlan_vendor_monitor_mgmt_frame_type {
13000 	QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
13001 	/* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
13002 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
13003 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
13004 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
13005 };
13006 
13007 /**
13008  * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
13009  * ctrl types to be sent over the monitor interface.
13010  * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
13011  * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
13012  */
13013 enum qca_wlan_vendor_monitor_ctrl_frame_type {
13014 	QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
13015 	/* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
13016 	QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
13017 };
13018 
13019 /**
13020  * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
13021  * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
13022  * monitor mode.
13023  *
13024  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
13025  * Represents the tx data packet type to be monitored (u32). These data packets
13026  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13027  *
13028  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
13029  * Represents the tx data packet type to be monitored (u32). These data packets
13030  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13031  *
13032  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
13033  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13034  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13035  *
13036  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
13037  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13038  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13039  *
13040  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
13041  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13042  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13043  *
13044  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
13045  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13046  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13047  *
13048  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
13049  * u32 attribute, An interval only for the connected beacon interval, which
13050  * expects that the connected BSSID's beacons shall be sent on the monitor
13051  * interface only on this specific interval.
13052  */
13053 enum qca_wlan_vendor_attr_set_monitor_mode {
13054 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
13055 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
13056 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
13057 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
13058 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
13059 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
13060 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
13061 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
13062 
13063 	/* keep last */
13064 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
13065 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
13066 		QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
13067 
13068 };
13069 
13070 /**
13071  * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
13072  * Bits will be set to 1 if the corresponding state is enabled.
13073  *
13074  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
13075  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
13076  */
13077 enum qca_wlan_vendor_roam_scan_state {
13078 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
13079 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
13080 };
13081 
13082 /**
13083  * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
13084  * Bits will be set to 1 if the corresponding event is notified.
13085  *
13086  * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
13087  * carries the trigger reason. When set, it is expected that the roam event
13088  * carries the respective reason via the attribute
13089  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
13090  * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
13091  *
13092  * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
13093  * carries the roam fail reason. When set, it is expected that the roam event
13094  * carries the respective reason via the attribute
13095  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
13096  * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
13097  *
13098  * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
13099  * event carries the roam invoke fail reason. When set, it is expected that
13100  * the roam event carries the respective reason via the attribute
13101  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
13102  *
13103  * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
13104  * carries the roam scan state. When set, it is expected that the roam event
13105  * carries the respective scan state via the attribute
13106  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
13107  * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
13108  */
13109 enum qca_wlan_vendor_roam_event_type {
13110 	QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
13111 	QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
13112 	QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
13113 	QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
13114 };
13115 
13116 /**
13117  * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
13118  * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
13119  *
13120  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
13121  * representing the BSSID of the AP to which the Roam is attempted.
13122  *
13123  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
13124  * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
13125  * attempted.
13126  *
13127  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
13128  * on which the roam is attempted.
13129  *
13130  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
13131  * STA mode only. This represents the roam fail reason for the last failed
13132  * roaming attempt by the firmware for the specific BSSID. Different roam
13133  * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
13134  */
13135 enum qca_wlan_vendor_attr_roam_events_candidate_info {
13136 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
13137 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
13138 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
13139 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
13140 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
13141 
13142 	/* keep last */
13143 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
13144 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
13145 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
13146 };
13147 
13148 /**
13149  * enum qca_wlan_vendor_attr_roam_events - Used by the
13150  * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
13151  * roam events to the driver or notify these events from the driver.
13152  *
13153  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
13154  * driver/firmware to enable/disable the notification of roam events. It's a
13155  * mandatory attribute and used only in the request from the userspace to the
13156  * host driver. 1-Enable, 0-Disable.
13157  * If the roaming is totally offloaded to the firmware, this request when
13158  * enabled shall mandate the firmware to notify all the relevant roam events
13159  * represented by the below attributes. If the host is in the suspend mode,
13160  * the behavior of the firmware to notify these events is guided by
13161  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
13162  * these events in the suspend state, the firmware is expected to wake up the
13163  * host before the respective events are notified. Please note that such a
13164  * request to get the events in the suspend state will have a definite power
13165  * implication.
13166  *
13167  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
13168  * that the roam events need to be notified in the suspend state too. By
13169  * default, these roam events are notified in the resume state. With this flag,
13170  * the roam events are notified in both resume and suspend states.
13171  * This attribute is used in the request from the userspace to the host driver.
13172  *
13173  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
13174  * Represents the different roam event types, signified by the enum
13175  * qca_wlan_vendor_roam_event_type.
13176  * Each bit of this attribute represents the different roam even types reported
13177  * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13178  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13179  *
13180  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
13181  * mode only. This represents the roam trigger reason for the last roaming
13182  * attempted by the firmware. Each bit of this attribute represents the
13183  * different roam trigger reason code which are defined in enum
13184  * qca_vendor_roam_triggers.
13185  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13186  *
13187  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
13188  * STA mode only. This represents the roam invoke fail reason for the last
13189  * failed roam invoke. Different roam invoke failure reason codes
13190  * are specified in enum qca_vendor_roam_invoke_fail_reasons.
13191  *
13192  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
13193  * for which the roam is attempted. Each entry is a nested attribute defined
13194  * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
13195  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13196  *
13197  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
13198  * the scan state on which the roam events need to be notified. The values for
13199  * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
13200  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13201  *
13202  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
13203  * u32 values. List of frequencies in MHz considered for a roam scan.
13204  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13205  */
13206 
13207 enum qca_wlan_vendor_attr_roam_events {
13208 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
13209 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
13210 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
13211 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
13212 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
13213 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
13214 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
13215 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
13216 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
13217 
13218 	/* keep last */
13219 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
13220 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
13221 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
13222 };
13223 
13224 /*
13225  * enum qca_wlan_ratemask_params_type - Rate mask config type.
13226  *
13227  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
13228  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
13229  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
13230  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
13231  */
13232 enum qca_wlan_ratemask_params_type {
13233 	QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
13234 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
13235 	QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
13236 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
13237 };
13238 
13239 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
13240  * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
13241  * This is used to set the rate mask value to be used in rate selection.
13242  *
13243  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
13244  * Array of nested containing attributes
13245  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
13246  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
13247  *
13248  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
13249  * the different phy types to which the rate mask config is to be applied.
13250  * The values for this attribute are referred from enum
13251  * qca_wlan_vendor_ratemask_params_type.
13252  *
13253  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
13254  * A bit value of 1 represents rate is enabled and a value of 0
13255  * represents rate is disabled.
13256  * For HE targets, 12 bits correpond to one NSS setting.
13257  * b0-13  => NSS1, MCS 0-13
13258  * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
13259  * For VHT targets, 10 bits correspond to one NSS setting.
13260  * b0-9   => NSS1, MCS 0-9
13261  * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
13262  * For HT targets, 8 bits correspond to one NSS setting.
13263  * b0-7  => NSS1, MCS 0-7
13264  * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
13265  * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
13266  */
13267 
13268 enum qca_wlan_vendor_attr_ratemask_params {
13269 	QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
13270 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
13271 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
13272 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
13273 
13274 	/* keep last */
13275 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
13276 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
13277 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
13278 };
13279 
13280 /**
13281  * enum qca_wlan_vendor_flush_pending_policy: Represents values for
13282  * the policy to flush pending frames, configured via
13283  * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
13284  * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
13285  *
13286  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
13287  * the flush policy configured before. This command basically disables the
13288  * flush config set by the user.
13289  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
13290  * the flush policy to be immediate. All pending packets for the peer/TID are
13291  * flushed when this command/policy is received.
13292  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
13293  * the flush policy to the end of TWT SP. All pending packets for the peer/TID
13294  * are flushed when the end of TWT SP is reached.
13295  */
13296 enum qca_wlan_vendor_flush_pending_policy  {
13297 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
13298 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
13299 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
13300 };
13301 
13302 /**
13303  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
13304  * flushing pending traffic in firmware.
13305  *
13306  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
13307  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
13308  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
13309  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
13310  * flush packets with access category. This is optional. See below.
13311  * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
13312  * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
13313  * bit to 1 to act upon the TID. This is optional. Either this attribute or
13314  * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
13315  * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
13316  * it is an error.
13317  * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
13318  * packets corresponding to the peer/TID provided. It is a u32 value,
13319  * represented by %enum qca_wlan_vendor_flush_pending_policy. This
13320  * value is honored only when TID mask is provided. This is not honored when AC
13321  * mask is provided.
13322  */
13323 enum qca_wlan_vendor_attr_flush_pending {
13324 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
13325 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
13326 	QCA_WLAN_VENDOR_ATTR_AC = 2,
13327 	QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
13328 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
13329 	/* keep last */
13330 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
13331 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
13332 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
13333 };
13334 
13335 /**
13336  * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
13337  *	for) or drop existing PASN security association for the listed the
13338  *	peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
13339  *	to userspace.
13340  *
13341  * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
13342  *	devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
13343  * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
13344  *	the driver to userspace to inform that the existing PASN keys of the
13345  *	peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
13346  *	not valid anymore.
13347  */
13348 enum qca_wlan_vendor_pasn_action {
13349 	QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
13350 	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
13351 };
13352 
13353 /**
13354  * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
13355  *	QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
13356  *
13357  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
13358  *	event from the driver to userspace and represents the local MAC address
13359  *	to be used for PASN handshake. When this attribute is present, userspace
13360  *	shall use the source address specified in this attribute by the driver
13361  *	for PASN handshake with peer device.
13362  *	This attribute is required in a command response from userspace to the
13363  *	driver and represents the MAC address that was used in PASN handshake
13364  *	with the peer device.
13365  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
13366  *	peer device to which PASN handshake is requested in an event from the
13367  *	driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13368  *	QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
13369  *	Indicates the MAC address of the peer device for which the keys are to
13370  *	be invalidated in an event from the driver to userspace when
13371  *	QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13372  *	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
13373  *	Indicates the MAC address of the peer device for which the status is
13374  *	being sent in a status report from userspace to the driver.
13375  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
13376  *	in the event from the driver to userspace. When set, userspace is
13377  *	required to derive LTF key seed from KDK and set it to the driver.
13378  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
13379  *	attribute is used in the command response from userspace to the driver.
13380  *	If present, it indicates the successful PASN handshake with the peer. If
13381  *	this flag is not present, it indicates that the PASN handshake with the
13382  *	peer device failed.
13383  */
13384 enum qca_wlan_vendor_attr_pasn_peer {
13385 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
13386 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
13387 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
13388 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
13389 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
13390 
13391 	/* keep last */
13392 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
13393 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
13394 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
13395 };
13396 
13397 /**
13398  * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
13399  *	QCA_NL80211_VENDOR_SUBCMD_PASN command.
13400  *
13401  * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
13402  *	defined in enum qca_wlan_vendor_pasn_action and used only in an event
13403  *	from the driver to userspace.
13404  * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
13405  *	details for each peer and used in both an event and a command response.
13406  *	The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
13407  *	defined in enum qca_wlan_vendor_attr_pasn_peer.
13408  */
13409 enum qca_wlan_vendor_attr_pasn {
13410 	QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
13411 	QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
13412 	QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
13413 
13414 	/* keep last */
13415 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
13416 	QCA_WLAN_VENDOR_ATTR_PASN_MAX =
13417 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
13418 };
13419 
13420 /**
13421  * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
13422  *	the ranging security context derived from PASN for each peer. Used in
13423  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
13424  *
13425  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
13426  *	context for the peer.
13427  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
13428  *	context for the peer.
13429  */
13430 enum qca_wlan_vendor_secure_ranging_ctx_action {
13431 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
13432 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
13433 };
13434 
13435 /**
13436  * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
13437  *	used for deriving PASN keys to the driver. Used in
13438  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
13439  * @QCA_WLAN_VENDOR_SHA_256: SHA-256
13440  * @QCA_WLAN_VENDOR_SHA_384: SHA-384
13441  */
13442 enum qca_wlan_vendor_sha_type {
13443 	QCA_WLAN_VENDOR_SHA_256,
13444 	QCA_WLAN_VENDOR_SHA_384,
13445 };
13446 
13447 /**
13448  * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
13449  *	to set security context for the PASN peer from userspace to the driver.
13450  *	Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
13451  *
13452  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
13453  *	values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
13454  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
13455  *	was used during the PASN handshake.
13456  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
13457  *	the peer device for which secure ranging context is being configured.
13458  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
13459  *	hash algorithm to be used, possible values are defined in enum
13460  *	qca_wlan_vendor_sha_type.
13461  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
13462  *	the temporal key generated from the PASN handshake. The length of this
13463  *	attribute is dependent on the value of
13464  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
13465  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
13466  *	TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
13467  *	(e.g., 0x000FAC04).
13468  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
13469  *	attribute, holds the LTF keyseed derived from KDK of PASN handshake.
13470  *	The length of this attribute is dependent on the value of
13471  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
13472  *
13473  */
13474 enum qca_wlan_vendor_attr_secure_ranging_ctx {
13475 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
13476 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
13477 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
13478 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
13479 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
13480 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
13481 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
13482 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
13483 
13484 	/* keep last */
13485 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
13486 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
13487 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
13488 };
13489 
13490 /**
13491  * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
13492  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
13493  * nested attribute. The packets that match a filter will be replied with
13494  * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
13495  *
13496  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
13497  * u32 attribute. Destination IPv4 address in network byte order, the
13498  * IPv4 packets with different address will be filtered out.
13499  * This attribute is optional.
13500  *
13501  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
13502  * Flag attribute. If it's present, indicates that
13503  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
13504  * address; while if not, indicates that the address is a unicast/multicast
13505  * address.
13506  * This attribute is optional.
13507  *
13508  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
13509  * NLA_BINARY attribute, length is 16 bytes.
13510  * Destination IPv6 address in network byte order, the IPv6 packets
13511  * with different destination address will be filtered out.
13512  * This attribute is optional.
13513  *
13514  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
13515  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
13516  * Packets on both IPv4 and IPv6 will be processed if both are configured.
13517  *
13518  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
13519  * u16 attribute. Destination UDP port, the packets with different destination
13520  * UDP port will be filtered out.
13521  * This attribute is mandatory.
13522  *
13523  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
13524  * u32 attribute. Represents the offset (in UDP payload) of the data
13525  * to be matched.
13526  * This attribute is mandatory.
13527  *
13528  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
13529  * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
13530  * Binary data that is compared bit-by-bit against the data (specified
13531  * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
13532  * payload, the packets don't match will be filtered out.
13533  * This attribute is mandatory.
13534  */
13535 enum qca_wlan_vendor_attr_coap_offload_filter {
13536 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
13537 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
13538 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
13539 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
13540 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
13541 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
13542 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
13543 
13544 	/* keep last */
13545 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
13546 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
13547 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
13548 };
13549 
13550 /**
13551  * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
13552  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
13553  *
13554  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
13555  * u32 attribute. Source address (in network byte order) for replying
13556  * the matching broadcast/multicast IPv4 packets.
13557  * This attribute is optional.
13558  *
13559  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
13560  * NLA_BINARY attribute, length is 16 bytes.
13561  * Source address (in network byte order) for replying the matching
13562  * multicast IPv6 packets.
13563  * This attribute is optional.
13564  *
13565  * For broadcast/multicast offload reply, one of
13566  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
13567  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
13568  * configured according to version of the IP address(es) configured in
13569  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
13570  * while for unicast case, firmware will take the destination IP address
13571  * in the received matching packet as the source address for replying.
13572  *
13573  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
13574  * Nested attribute. Filter for the received UDP packets, only the matching
13575  * packets will be replied and cached.
13576  * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
13577  * attributes.
13578  * This attribute is mandatory.
13579  *
13580  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
13581  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13582  * CoAP message (UDP payload) to be sent upon receiving matching packets.
13583  * Firmware is responsible for adding any necessary protocol headers.
13584  * This attribute is mandatory.
13585  *
13586  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
13587  * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
13588  * A cached message will be dropped by firmware if it's expired.
13589  * This attribute is optional. A default value of 40000 will be used in the
13590  * absence of it.
13591  */
13592 enum qca_wlan_vendor_attr_coap_offload_reply {
13593 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
13594 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
13595 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
13596 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
13597 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
13598 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
13599 
13600 	/* keep last */
13601 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
13602 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
13603 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
13604 };
13605 
13606 /**
13607  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
13608  * CoAP message (UDP) transmitting on IPv4.
13609  *
13610  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
13611  * u32 attribute. Source address (in network byte order) for transmitting
13612  * packets on IPv4.
13613  * This attribute is mandatory.
13614  *
13615  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
13616  * u16 attribute. Source UDP port.
13617  * This attribute is optional, a random port is taken if it's not present.
13618  *
13619  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
13620  * u32 attribute. Destination IPv4 address (in network byte order).
13621  * This attribute is mandatory.
13622  *
13623  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
13624  * Flag attribute. If it's present, indicates that
13625  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
13626  * address; while if not, indicates that the address is unicast/multicast
13627  * address.
13628  * This attribute is optional.
13629  *
13630  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
13631  * u16 attribute. Destination UDP port.
13632  * This attribute is mandatory.
13633  */
13634 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
13635 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
13636 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
13637 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
13638 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
13639 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
13640 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
13641 
13642 	/* keep last */
13643 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
13644 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
13645 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
13646 };
13647 
13648 /**
13649  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
13650  * CoAP message (UDP) transmitting on IPv6.
13651  *
13652  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
13653  * NLA_BINARY attribute, length is 16 bytes.
13654  * Source address (in network byte order) for transmitting packets on IPv6.
13655  * This attribute is mandatory.
13656  *
13657  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
13658  * u16 attribute. Source UDP port.
13659  * This attribute is optional, a random port is taken if it's not present.
13660  *
13661  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
13662  * NLA_BINARY attribute, length is 16 bytes.
13663  * Destination IPv6 address (in network byte order).
13664  * This attribute is mandatory.
13665  *
13666  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
13667  * u16 attribute. Destination UDP port.
13668  * This attribute is mandatory.
13669  */
13670 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
13671 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
13672 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
13673 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
13674 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
13675 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
13676 
13677 	/* keep last */
13678 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
13679 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
13680 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
13681 };
13682 
13683 /**
13684  * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
13685  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
13686  *
13687  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
13688  * Nested attribute. The IPv4 source/destination address/port for offload
13689  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
13690  * of supported attributes.
13691  * This attribute is optional.
13692  *
13693  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
13694  * Nested attribute. The IPv6 source/destination address/port for offload
13695  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
13696  * of supported attributes.
13697  * This attribute is optional.
13698  *
13699  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
13700  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
13701  * Firmware will transmit the packets on both IPv4 and IPv6 if both are
13702  * configured.
13703  *
13704  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
13705  * u32 attribute. Period in milliseconds for the periodic transmitting.
13706  * This attribute is mandatory.
13707  *
13708  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
13709  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13710  * CoAP message (UDP payload) to be periodically transmitted. Firmware
13711  * is responsible for adding any necessary protocol headers.
13712  * This attribute is mandatory.
13713  */
13714 enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
13715 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
13716 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
13717 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
13718 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
13719 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
13720 
13721 	/* keep last */
13722 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
13723 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
13724 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
13725 };
13726 
13727 /**
13728  * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
13729  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
13730  *
13731  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
13732  * u64 attribute. Received time (since system booted in microseconds) of
13733  * the cached CoAP message.
13734  * This attribute is mandatory.
13735  *
13736  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
13737  * u32 attribute. Source IPv4 address (in network byte order) of the cached
13738  * CoAP message.
13739  * This attribute is optional.
13740  *
13741  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
13742  * NLA_BINARY attribute, length is 16 bytes.
13743  * Source IPv6 address (in network byte order) of the cached CoAP message.
13744  * This attribute is optional.
13745  *
13746  * At most and at least one of
13747  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
13748  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
13749  * an entry.
13750  *
13751  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
13752  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13753  * The cached CoAP message (UDP payload). If the actual message size is
13754  * greater than the maximum size, it will be truncated and leaving only
13755  * the first 1152 bytes.
13756  * This attribute is mandatory.
13757  */
13758 enum qca_wlan_vendor_attr_coap_offload_cache_info {
13759 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
13760 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
13761 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
13762 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
13763 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
13764 
13765 	/* keep last */
13766 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
13767 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
13768 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
13769 };
13770 
13771 /**
13772  * enum qca_wlan_vendor_coap_offload_action - Actions for
13773  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13774  *
13775  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
13776  * Enable CoAP offload reply.
13777  * If it's enabled, firmware will start offload processing on each suspend
13778  * and stop on each resume.
13779  *
13780  * Offload reply on match works as follows:
13781  * Reply the packets that match the filter with the given CoAP
13782  * message (with necessary protocol headers), increase the CoAP message
13783  * ID in the given CoAP message by one for the next use after each successful
13784  * transmission, and try to store the information of the received packet,
13785  * including the received time, source IP address, and CoAP message (UDP
13786  * payload).
13787  *
13788  * Firmware has a limit to the maximum stored entries, it takes the source IP
13789  * address as the key of an entry, and keeps at most one entry for each key.
13790  * A packet won't be stored if no entry for the same key is present and the
13791  * total number of the existing unexpired entries reaches the maximum value.
13792  *
13793  * If any configured item is changed, user space should disable offload reply
13794  * first and then issue a new enable request.
13795  *
13796  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
13797  * Disable CoAP offload reply and return information of any cached CoAP
13798  * messages.
13799  *
13800  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
13801  * Enable CoAP offload periodic transmitting.
13802  * If it's enabled, firmware will start offload periodic transmitting on
13803  * each suspend and stop on each resume.
13804  *
13805  * Offload periodic transmitting works as follows:
13806  * Send the given CoAP message (with necessary protocol headers) with the given
13807  * source/destination IP address/UDP port periodically based on the given
13808  * period and increase the CoAP message ID in the given CoAP message by one
13809  * for the next use after each successful transmission.
13810  *
13811  * If any configured item is changed, user space should disable offload
13812  * periodic transmitting first and then issue a new enable request.
13813  *
13814  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
13815  * Disable CoAP offload periodic transmitting.
13816  *
13817  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
13818  * Get information of the CoAP messages cached during offload reply
13819  * processing. The cache is cleared after retrieval.
13820  */
13821 enum qca_wlan_vendor_coap_offload_action {
13822 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
13823 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
13824 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
13825 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
13826 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
13827 };
13828 
13829 /**
13830  * enum qca_wlan_vendor_attr_coap_offload - Used by the
13831  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13832  * This is used to set parameters for CoAP offload processing, or get
13833  * cached CoAP messages from firmware.
13834  *
13835  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
13836  * u32 attribute. Action to take in this vendor command.
13837  * See enum qca_wlan_vendor_coap_offload_action for supported actions.
13838  * This attribute is mandatory.
13839  *
13840  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
13841  * u32 attribute. Represents the Request ID for the CoAP offload
13842  * configuration, which can help to identify the user entity starting
13843  * the CoAP offload processing and accordingly stop the respective
13844  * ones/get the cached CoAP messages with the matching ID.
13845  * This attribute is mandatory.
13846  *
13847  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
13848  * Nested attribute. Parameters for offload reply.
13849  * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
13850  * supported attributes.
13851  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13852  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
13853  * otherwise.
13854  *
13855  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
13856  * Nested attribute. Parameters for offload periodic transmitting.
13857  * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
13858  * supported attributes.
13859  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
13860  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
13861  * otherwise.
13862  *
13863  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
13864  * Array of nested attributes. Information of the cached CoAP messages,
13865  * where each entry is taken from
13866  * enum qca_wlan_vendor_attr_coap_offload_cache_info.
13867  * This attribute is used for reporting the cached CoAP messages
13868  * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13869  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
13870  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
13871  * cached item if this attribute is not present.
13872  */
13873 enum qca_wlan_vendor_attr_coap_offload {
13874 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
13875 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
13876 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
13877 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
13878 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
13879 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
13880 
13881 	/* keep last */
13882 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
13883 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
13884 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
13885 };
13886 
13887 /**
13888  * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
13889  * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
13890  * Service (SCS) rule.
13891  *
13892  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
13893  * Represents the unique id of SCS rule to be configured.
13894 
13895  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
13896  * Represents the request type: add, remove, or change.
13897  * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
13898  * Type definitions).
13899  *
13900  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
13901  * in case of add/change request type.
13902  * Represents the output traffic identifier (TID) to be assigned to the flow
13903  * matching the rule.
13904  *
13905  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
13906  * attribute in case of add/change request type.
13907  * Represents type of classifier parameters present in SCS rule.
13908  * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
13909  * Only classifier types 4 and 10 are supported for SCS.
13910  *
13911  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
13912  * in case of add/change request type when classifier type is TCLAS4.
13913  * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
13914  *
13915  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
13916  * attribute in case of add/change request type when classifier type is TCLAS4
13917  * and version attribute is IPv4.
13918  * Represents the source IPv4 address in the rule which is to be compared
13919  * against the source IP address in the IPv4 header.
13920  *
13921  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
13922  * attribute in case of add/change request type when classifier type is TCLAS4
13923  * and version attribute is IPv4.
13924  * Represents the destination IPv4 address in the rule which is to be compared
13925  * against the destination IP address in the IPv4 header.
13926  *
13927  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
13928  * attribute in case of add/change request type when classifier type is TCLAS4
13929  * and version attribute is IPv6.
13930  * Represents the source IPv6 address in the rule which is to be compared
13931  * against the source IP address in the IPv6 header.
13932  *
13933  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
13934  * attribute in case of add/change request type when classifier type is TCLAS4
13935  * and version attribute is IPv6.
13936  * Represents the destination IPv6 address in the rule which is to be compared
13937  * against the destination IP address in the IPv6 header.
13938  *
13939  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
13940  * in case of add/change request type when classifier type is TCLAS4.
13941  * Represents the source port number in the rule which is to be compared against
13942  * the source port number in the protocol header.
13943  *
13944  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
13945  * in case of add/change request type when classifier type is TCLAS4.
13946  * Represents the destination port number in the rule which is to be compared
13947  * against the destination port number in the protocol header.
13948  *
13949  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
13950  * in case of add/change request type when classifier type is TCLAS4.
13951  * Represents the DSCP value in the rule which is to be compared against the
13952  * DSCP field present in the IP header.
13953  *
13954  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
13955  * attribute in case of add/change request type when classifier type is TCLAS4.
13956  * Represents the protocol/next header in the rule which is to be compared
13957  * against the protocol/next header field present in the IPv4/IPv6 header.
13958  *
13959  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
13960  * attribute of size 3 bytes present in case of add/change request type
13961  * when classifier type is TCLAS4 and version is IPv6.
13962  * Represents the flow label value in the rule which is to be compared against
13963  * the flow label field present in the IPv6 header.
13964  *
13965  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
13966  * attribute in case of add/change request type when classifier type is TCLAS10.
13967  * Represents the protocol instance number in the rule.
13968  *
13969  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
13970  * attribute in case of add/change request type when classifier type is TCLAS10.
13971  * Represents the protocol/next header in the rule which is to be compared
13972  * against the protocol/next header field present in the IPv4/IPv6 header.
13973  *
13974  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
13975  * attribute of variable length present when request type is add/change and
13976  * classifier type is TCLAS10.
13977  * Represents the mask to be used for masking the header contents of the header
13978  * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
13979  * attribute.
13980  *
13981  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
13982  * attribute of variable length present when request type is add/change and
13983  * classifier type is TCLAS10.
13984  * Represents the value to be compared against after masking the header contents
13985  * of the header specified by the
13986  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
13987  * filter mask specified by the
13988  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
13989  */
13990 enum qca_wlan_vendor_attr_scs_rule_config {
13991 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
13992 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
13993 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
13994 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
13995 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
13996 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
13997 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
13998 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
13999 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
14000 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
14001 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
14002 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
14003 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
14004 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
14005 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
14006 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
14007 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
14008 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
14009 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
14010 
14011 	/* Keep last */
14012 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
14013 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
14014 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
14015 };
14016 
14017 #endif
14018