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