xref: /linux/drivers/net/wireless/ath/ath12k/wmi.h (revision 001821b0e79716c4e17c71d8e053a23599a7a508)
1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */
2 /*
3  * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
4  * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
5  */
6 
7 #ifndef ATH12K_WMI_H
8 #define ATH12K_WMI_H
9 
10 #include <net/mac80211.h>
11 #include "htc.h"
12 
13 /* Naming conventions for structures:
14  *
15  * _cmd means that this is a firmware command sent from host to firmware.
16  *
17  * _event means that this is a firmware event sent from firmware to host
18  *
19  * _params is a structure which is embedded either into _cmd or _event (or
20  * both), it is not sent individually.
21  *
22  * _arg is used inside the host, the firmware does not see that at all.
23  */
24 
25 struct ath12k_base;
26 struct ath12k;
27 
28 /* There is no signed version of __le32, so for a temporary solution come
29  * up with our own version. The idea is from fs/ntfs/endian.h.
30  *
31  * Use a_ prefix so that it doesn't conflict if we get proper support to
32  * linux/types.h.
33  */
34 typedef __s32 __bitwise a_sle32;
35 
36 static inline a_sle32 a_cpu_to_sle32(s32 val)
37 {
38 	return (__force a_sle32)cpu_to_le32(val);
39 }
40 
41 static inline s32 a_sle32_to_cpu(a_sle32 val)
42 {
43 	return le32_to_cpu((__force __le32)val);
44 }
45 
46 /* defines to set Packet extension values which can be 0 us, 8 usec or 16 usec */
47 #define MAX_HE_NSS               8
48 #define MAX_HE_MODULATION        8
49 #define MAX_HE_RU                4
50 #define HE_MODULATION_NONE       7
51 #define HE_PET_0_USEC            0
52 #define HE_PET_8_USEC            1
53 #define HE_PET_16_USEC           2
54 
55 #define WMI_MAX_CHAINS		 8
56 
57 #define WMI_MAX_NUM_SS                    MAX_HE_NSS
58 #define WMI_MAX_NUM_RU                    MAX_HE_RU
59 
60 #define WMI_TLV_CMD(grp_id) (((grp_id) << 12) | 0x1)
61 #define WMI_TLV_EV(grp_id) (((grp_id) << 12) | 0x1)
62 #define WMI_TLV_CMD_UNSUPPORTED 0
63 #define WMI_TLV_PDEV_PARAM_UNSUPPORTED 0
64 #define WMI_TLV_VDEV_PARAM_UNSUPPORTED 0
65 
66 struct wmi_cmd_hdr {
67 	__le32 cmd_id;
68 } __packed;
69 
70 struct wmi_tlv {
71 	__le32 header;
72 	u8 value[];
73 } __packed;
74 
75 #define WMI_TLV_LEN	GENMASK(15, 0)
76 #define WMI_TLV_TAG	GENMASK(31, 16)
77 #define TLV_HDR_SIZE	sizeof_field(struct wmi_tlv, header)
78 
79 #define WMI_CMD_HDR_CMD_ID      GENMASK(23, 0)
80 #define WMI_MAX_MEM_REQS        32
81 #define ATH12K_MAX_HW_LISTEN_INTERVAL 5
82 
83 #define WMI_HOST_RC_DS_FLAG			0x01
84 #define WMI_HOST_RC_CW40_FLAG			0x02
85 #define WMI_HOST_RC_SGI_FLAG			0x04
86 #define WMI_HOST_RC_HT_FLAG			0x08
87 #define WMI_HOST_RC_RTSCTS_FLAG			0x10
88 #define WMI_HOST_RC_TX_STBC_FLAG		0x20
89 #define WMI_HOST_RC_RX_STBC_FLAG		0xC0
90 #define WMI_HOST_RC_RX_STBC_FLAG_S		6
91 #define WMI_HOST_RC_WEP_TKIP_FLAG		0x100
92 #define WMI_HOST_RC_TS_FLAG			0x200
93 #define WMI_HOST_RC_UAPSD_FLAG			0x400
94 
95 #define WMI_HT_CAP_ENABLED			0x0001
96 #define WMI_HT_CAP_HT20_SGI			0x0002
97 #define WMI_HT_CAP_DYNAMIC_SMPS			0x0004
98 #define WMI_HT_CAP_TX_STBC			0x0008
99 #define WMI_HT_CAP_TX_STBC_MASK_SHIFT		3
100 #define WMI_HT_CAP_RX_STBC			0x0030
101 #define WMI_HT_CAP_RX_STBC_MASK_SHIFT		4
102 #define WMI_HT_CAP_LDPC				0x0040
103 #define WMI_HT_CAP_L_SIG_TXOP_PROT		0x0080
104 #define WMI_HT_CAP_MPDU_DENSITY			0x0700
105 #define WMI_HT_CAP_MPDU_DENSITY_MASK_SHIFT	8
106 #define WMI_HT_CAP_HT40_SGI			0x0800
107 #define WMI_HT_CAP_RX_LDPC			0x1000
108 #define WMI_HT_CAP_TX_LDPC			0x2000
109 #define WMI_HT_CAP_IBF_BFER			0x4000
110 
111 /* These macros should be used when we wish to advertise STBC support for
112  * only 1SS or 2SS or 3SS.
113  */
114 #define WMI_HT_CAP_RX_STBC_1SS			0x0010
115 #define WMI_HT_CAP_RX_STBC_2SS			0x0020
116 #define WMI_HT_CAP_RX_STBC_3SS			0x0030
117 
118 #define WMI_HT_CAP_DEFAULT_ALL (WMI_HT_CAP_ENABLED    | \
119 				WMI_HT_CAP_HT20_SGI   | \
120 				WMI_HT_CAP_HT40_SGI   | \
121 				WMI_HT_CAP_TX_STBC    | \
122 				WMI_HT_CAP_RX_STBC    | \
123 				WMI_HT_CAP_LDPC)
124 
125 #define WMI_VHT_CAP_MAX_MPDU_LEN_MASK		0x00000003
126 #define WMI_VHT_CAP_RX_LDPC			0x00000010
127 #define WMI_VHT_CAP_SGI_80MHZ			0x00000020
128 #define WMI_VHT_CAP_SGI_160MHZ			0x00000040
129 #define WMI_VHT_CAP_TX_STBC			0x00000080
130 #define WMI_VHT_CAP_RX_STBC_MASK		0x00000300
131 #define WMI_VHT_CAP_RX_STBC_MASK_SHIFT		8
132 #define WMI_VHT_CAP_SU_BFER			0x00000800
133 #define WMI_VHT_CAP_SU_BFEE			0x00001000
134 #define WMI_VHT_CAP_MAX_CS_ANT_MASK		0x0000E000
135 #define WMI_VHT_CAP_MAX_CS_ANT_MASK_SHIFT	13
136 #define WMI_VHT_CAP_MAX_SND_DIM_MASK		0x00070000
137 #define WMI_VHT_CAP_MAX_SND_DIM_MASK_SHIFT	16
138 #define WMI_VHT_CAP_MU_BFER			0x00080000
139 #define WMI_VHT_CAP_MU_BFEE			0x00100000
140 #define WMI_VHT_CAP_MAX_AMPDU_LEN_EXP		0x03800000
141 #define WMI_VHT_CAP_MAX_AMPDU_LEN_EXP_SHIT	23
142 #define WMI_VHT_CAP_RX_FIXED_ANT		0x10000000
143 #define WMI_VHT_CAP_TX_FIXED_ANT		0x20000000
144 
145 #define WMI_VHT_CAP_MAX_MPDU_LEN_11454		0x00000002
146 
147 /* These macros should be used when we wish to advertise STBC support for
148  * only 1SS or 2SS or 3SS.
149  */
150 #define WMI_VHT_CAP_RX_STBC_1SS			0x00000100
151 #define WMI_VHT_CAP_RX_STBC_2SS			0x00000200
152 #define WMI_VHT_CAP_RX_STBC_3SS			0x00000300
153 
154 #define WMI_VHT_CAP_DEFAULT_ALL (WMI_VHT_CAP_MAX_MPDU_LEN_11454  | \
155 				 WMI_VHT_CAP_SGI_80MHZ      |       \
156 				 WMI_VHT_CAP_TX_STBC        |       \
157 				 WMI_VHT_CAP_RX_STBC_MASK   |       \
158 				 WMI_VHT_CAP_RX_LDPC        |       \
159 				 WMI_VHT_CAP_MAX_AMPDU_LEN_EXP   |  \
160 				 WMI_VHT_CAP_RX_FIXED_ANT   |       \
161 				 WMI_VHT_CAP_TX_FIXED_ANT)
162 
163 #define WLAN_SCAN_MAX_HINT_S_SSID        10
164 #define WLAN_SCAN_MAX_HINT_BSSID         10
165 #define MAX_RNR_BSS                    5
166 
167 #define WMI_APPEND_TO_EXISTING_CHAN_LIST_FLAG 1
168 
169 #define WMI_BA_MODE_BUFFER_SIZE_256  3
170 
171 /* HW mode config type replicated from FW header
172  * @WMI_HOST_HW_MODE_SINGLE: Only one PHY is active.
173  * @WMI_HOST_HW_MODE_DBS: Both PHYs are active in different bands,
174  *                        one in 2G and another in 5G.
175  * @WMI_HOST_HW_MODE_SBS_PASSIVE: Both PHYs are in passive mode (only rx) in
176  *                        same band; no tx allowed.
177  * @WMI_HOST_HW_MODE_SBS: Both PHYs are active in the same band.
178  *                        Support for both PHYs within one band is planned
179  *                        for 5G only(as indicated in WMI_MAC_PHY_CAPABILITIES),
180  *                        but could be extended to other bands in the future.
181  *                        The separation of the band between the two PHYs needs
182  *                        to be communicated separately.
183  * @WMI_HOST_HW_MODE_DBS_SBS: 3 PHYs, with 2 on the same band doing SBS
184  *                           as in WMI_HW_MODE_SBS, and 3rd on the other band
185  * @WMI_HOST_HW_MODE_DBS_OR_SBS: Two PHY with one PHY capabale of both 2G and
186  *                        5G. It can support SBS (5G + 5G) OR DBS (5G + 2G).
187  * @WMI_HOST_HW_MODE_MAX: Max hw_mode_id. Used to indicate invalid mode.
188  */
189 enum wmi_host_hw_mode_config_type {
190 	WMI_HOST_HW_MODE_SINGLE       = 0,
191 	WMI_HOST_HW_MODE_DBS          = 1,
192 	WMI_HOST_HW_MODE_SBS_PASSIVE  = 2,
193 	WMI_HOST_HW_MODE_SBS          = 3,
194 	WMI_HOST_HW_MODE_DBS_SBS      = 4,
195 	WMI_HOST_HW_MODE_DBS_OR_SBS   = 5,
196 
197 	/* keep last */
198 	WMI_HOST_HW_MODE_MAX
199 };
200 
201 /* HW mode priority values used to detect the preferred HW mode
202  * on the available modes.
203  */
204 enum wmi_host_hw_mode_priority {
205 	WMI_HOST_HW_MODE_DBS_SBS_PRI,
206 	WMI_HOST_HW_MODE_DBS_PRI,
207 	WMI_HOST_HW_MODE_DBS_OR_SBS_PRI,
208 	WMI_HOST_HW_MODE_SBS_PRI,
209 	WMI_HOST_HW_MODE_SBS_PASSIVE_PRI,
210 	WMI_HOST_HW_MODE_SINGLE_PRI,
211 
212 	/* keep last the lowest priority */
213 	WMI_HOST_HW_MODE_MAX_PRI
214 };
215 
216 enum WMI_HOST_WLAN_BAND {
217 	WMI_HOST_WLAN_2G_CAP	= 1,
218 	WMI_HOST_WLAN_5G_CAP	= 2,
219 	WMI_HOST_WLAN_2G_5G_CAP	= 3,
220 };
221 
222 enum wmi_cmd_group {
223 	/* 0 to 2 are reserved */
224 	WMI_GRP_START = 0x3,
225 	WMI_GRP_SCAN = WMI_GRP_START,
226 	WMI_GRP_PDEV		= 0x4,
227 	WMI_GRP_VDEV           = 0x5,
228 	WMI_GRP_PEER           = 0x6,
229 	WMI_GRP_MGMT           = 0x7,
230 	WMI_GRP_BA_NEG         = 0x8,
231 	WMI_GRP_STA_PS         = 0x9,
232 	WMI_GRP_DFS            = 0xa,
233 	WMI_GRP_ROAM           = 0xb,
234 	WMI_GRP_OFL_SCAN       = 0xc,
235 	WMI_GRP_P2P            = 0xd,
236 	WMI_GRP_AP_PS          = 0xe,
237 	WMI_GRP_RATE_CTRL      = 0xf,
238 	WMI_GRP_PROFILE        = 0x10,
239 	WMI_GRP_SUSPEND        = 0x11,
240 	WMI_GRP_BCN_FILTER     = 0x12,
241 	WMI_GRP_WOW            = 0x13,
242 	WMI_GRP_RTT            = 0x14,
243 	WMI_GRP_SPECTRAL       = 0x15,
244 	WMI_GRP_STATS          = 0x16,
245 	WMI_GRP_ARP_NS_OFL     = 0x17,
246 	WMI_GRP_NLO_OFL        = 0x18,
247 	WMI_GRP_GTK_OFL        = 0x19,
248 	WMI_GRP_CSA_OFL        = 0x1a,
249 	WMI_GRP_CHATTER        = 0x1b,
250 	WMI_GRP_TID_ADDBA      = 0x1c,
251 	WMI_GRP_MISC           = 0x1d,
252 	WMI_GRP_GPIO           = 0x1e,
253 	WMI_GRP_FWTEST         = 0x1f,
254 	WMI_GRP_TDLS           = 0x20,
255 	WMI_GRP_RESMGR         = 0x21,
256 	WMI_GRP_STA_SMPS       = 0x22,
257 	WMI_GRP_WLAN_HB        = 0x23,
258 	WMI_GRP_RMC            = 0x24,
259 	WMI_GRP_MHF_OFL        = 0x25,
260 	WMI_GRP_LOCATION_SCAN  = 0x26,
261 	WMI_GRP_OEM            = 0x27,
262 	WMI_GRP_NAN            = 0x28,
263 	WMI_GRP_COEX           = 0x29,
264 	WMI_GRP_OBSS_OFL       = 0x2a,
265 	WMI_GRP_LPI            = 0x2b,
266 	WMI_GRP_EXTSCAN        = 0x2c,
267 	WMI_GRP_DHCP_OFL       = 0x2d,
268 	WMI_GRP_IPA            = 0x2e,
269 	WMI_GRP_MDNS_OFL       = 0x2f,
270 	WMI_GRP_SAP_OFL        = 0x30,
271 	WMI_GRP_OCB            = 0x31,
272 	WMI_GRP_SOC            = 0x32,
273 	WMI_GRP_PKT_FILTER     = 0x33,
274 	WMI_GRP_MAWC           = 0x34,
275 	WMI_GRP_PMF_OFFLOAD    = 0x35,
276 	WMI_GRP_BPF_OFFLOAD    = 0x36,
277 	WMI_GRP_NAN_DATA       = 0x37,
278 	WMI_GRP_PROTOTYPE      = 0x38,
279 	WMI_GRP_MONITOR        = 0x39,
280 	WMI_GRP_REGULATORY     = 0x3a,
281 	WMI_GRP_HW_DATA_FILTER = 0x3b,
282 	WMI_GRP_WLM            = 0x3c,
283 	WMI_GRP_11K_OFFLOAD    = 0x3d,
284 	WMI_GRP_TWT            = 0x3e,
285 	WMI_GRP_MOTION_DET     = 0x3f,
286 	WMI_GRP_SPATIAL_REUSE  = 0x40,
287 };
288 
289 #define WMI_CMD_GRP(grp_id) (((grp_id) << 12) | 0x1)
290 #define WMI_EVT_GRP_START_ID(grp_id) (((grp_id) << 12) | 0x1)
291 
292 enum wmi_tlv_cmd_id {
293 	WMI_CMD_UNSUPPORTED = 0,
294 	WMI_INIT_CMDID = 0x1,
295 	WMI_START_SCAN_CMDID = WMI_TLV_CMD(WMI_GRP_SCAN),
296 	WMI_STOP_SCAN_CMDID,
297 	WMI_SCAN_CHAN_LIST_CMDID,
298 	WMI_SCAN_SCH_PRIO_TBL_CMDID,
299 	WMI_SCAN_UPDATE_REQUEST_CMDID,
300 	WMI_SCAN_PROB_REQ_OUI_CMDID,
301 	WMI_SCAN_ADAPTIVE_DWELL_CONFIG_CMDID,
302 	WMI_PDEV_SET_REGDOMAIN_CMDID = WMI_TLV_CMD(WMI_GRP_PDEV),
303 	WMI_PDEV_SET_CHANNEL_CMDID,
304 	WMI_PDEV_SET_PARAM_CMDID,
305 	WMI_PDEV_PKTLOG_ENABLE_CMDID,
306 	WMI_PDEV_PKTLOG_DISABLE_CMDID,
307 	WMI_PDEV_SET_WMM_PARAMS_CMDID,
308 	WMI_PDEV_SET_HT_CAP_IE_CMDID,
309 	WMI_PDEV_SET_VHT_CAP_IE_CMDID,
310 	WMI_PDEV_SET_DSCP_TID_MAP_CMDID,
311 	WMI_PDEV_SET_QUIET_MODE_CMDID,
312 	WMI_PDEV_GREEN_AP_PS_ENABLE_CMDID,
313 	WMI_PDEV_GET_TPC_CONFIG_CMDID,
314 	WMI_PDEV_SET_BASE_MACADDR_CMDID,
315 	WMI_PDEV_DUMP_CMDID,
316 	WMI_PDEV_SET_LED_CONFIG_CMDID,
317 	WMI_PDEV_GET_TEMPERATURE_CMDID,
318 	WMI_PDEV_SET_LED_FLASHING_CMDID,
319 	WMI_PDEV_SMART_ANT_ENABLE_CMDID,
320 	WMI_PDEV_SMART_ANT_SET_RX_ANTENNA_CMDID,
321 	WMI_PDEV_SET_ANTENNA_SWITCH_TABLE_CMDID,
322 	WMI_PDEV_SET_CTL_TABLE_CMDID,
323 	WMI_PDEV_SET_MIMOGAIN_TABLE_CMDID,
324 	WMI_PDEV_FIPS_CMDID,
325 	WMI_PDEV_GET_ANI_CCK_CONFIG_CMDID,
326 	WMI_PDEV_GET_ANI_OFDM_CONFIG_CMDID,
327 	WMI_PDEV_GET_NFCAL_POWER_CMDID,
328 	WMI_PDEV_GET_TPC_CMDID,
329 	WMI_MIB_STATS_ENABLE_CMDID,
330 	WMI_PDEV_SET_PCL_CMDID,
331 	WMI_PDEV_SET_HW_MODE_CMDID,
332 	WMI_PDEV_SET_MAC_CONFIG_CMDID,
333 	WMI_PDEV_SET_ANTENNA_MODE_CMDID,
334 	WMI_SET_PERIODIC_CHANNEL_STATS_CONFIG_CMDID,
335 	WMI_PDEV_WAL_POWER_DEBUG_CMDID,
336 	WMI_PDEV_SET_REORDER_TIMEOUT_VAL_CMDID,
337 	WMI_PDEV_SET_WAKEUP_CONFIG_CMDID,
338 	WMI_PDEV_GET_ANTDIV_STATUS_CMDID,
339 	WMI_PDEV_GET_CHIP_POWER_STATS_CMDID,
340 	WMI_PDEV_SET_STATS_THRESHOLD_CMDID,
341 	WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID,
342 	WMI_PDEV_UPDATE_PKT_ROUTING_CMDID,
343 	WMI_PDEV_CHECK_CAL_VERSION_CMDID,
344 	WMI_PDEV_SET_DIVERSITY_GAIN_CMDID,
345 	WMI_PDEV_DIV_GET_RSSI_ANTID_CMDID,
346 	WMI_PDEV_BSS_CHAN_INFO_REQUEST_CMDID,
347 	WMI_PDEV_UPDATE_PMK_CACHE_CMDID,
348 	WMI_PDEV_UPDATE_FILS_HLP_PKT_CMDID,
349 	WMI_PDEV_UPDATE_CTLTABLE_REQUEST_CMDID,
350 	WMI_PDEV_CONFIG_VENDOR_OUI_ACTION_CMDID,
351 	WMI_PDEV_SET_AC_TX_QUEUE_OPTIMIZED_CMDID,
352 	WMI_PDEV_SET_RX_FILTER_PROMISCUOUS_CMDID,
353 	WMI_PDEV_DMA_RING_CFG_REQ_CMDID,
354 	WMI_PDEV_HE_TB_ACTION_FRM_CMDID,
355 	WMI_PDEV_PKTLOG_FILTER_CMDID,
356 	WMI_PDEV_SET_BIOS_SAR_TABLE_CMDID = 0x4044,
357 	WMI_PDEV_SET_BIOS_GEO_TABLE_CMDID = 0x4045,
358 	WMI_PDEV_SET_BIOS_INTERFACE_CMDID = 0x404A,
359 	WMI_VDEV_CREATE_CMDID = WMI_TLV_CMD(WMI_GRP_VDEV),
360 	WMI_VDEV_DELETE_CMDID,
361 	WMI_VDEV_START_REQUEST_CMDID,
362 	WMI_VDEV_RESTART_REQUEST_CMDID,
363 	WMI_VDEV_UP_CMDID,
364 	WMI_VDEV_STOP_CMDID,
365 	WMI_VDEV_DOWN_CMDID,
366 	WMI_VDEV_SET_PARAM_CMDID,
367 	WMI_VDEV_INSTALL_KEY_CMDID,
368 	WMI_VDEV_WNM_SLEEPMODE_CMDID,
369 	WMI_VDEV_WMM_ADDTS_CMDID,
370 	WMI_VDEV_WMM_DELTS_CMDID,
371 	WMI_VDEV_SET_WMM_PARAMS_CMDID,
372 	WMI_VDEV_SET_GTX_PARAMS_CMDID,
373 	WMI_VDEV_IPSEC_NATKEEPALIVE_FILTER_CMDID,
374 	WMI_VDEV_PLMREQ_START_CMDID,
375 	WMI_VDEV_PLMREQ_STOP_CMDID,
376 	WMI_VDEV_TSF_TSTAMP_ACTION_CMDID,
377 	WMI_VDEV_SET_IE_CMDID,
378 	WMI_VDEV_RATEMASK_CMDID,
379 	WMI_VDEV_ATF_REQUEST_CMDID,
380 	WMI_VDEV_SET_DSCP_TID_MAP_CMDID,
381 	WMI_VDEV_FILTER_NEIGHBOR_RX_PACKETS_CMDID,
382 	WMI_VDEV_SET_QUIET_MODE_CMDID,
383 	WMI_VDEV_SET_CUSTOM_AGGR_SIZE_CMDID,
384 	WMI_VDEV_ENCRYPT_DECRYPT_DATA_REQ_CMDID,
385 	WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_CMDID,
386 	WMI_PEER_CREATE_CMDID = WMI_TLV_CMD(WMI_GRP_PEER),
387 	WMI_PEER_DELETE_CMDID,
388 	WMI_PEER_FLUSH_TIDS_CMDID,
389 	WMI_PEER_SET_PARAM_CMDID,
390 	WMI_PEER_ASSOC_CMDID,
391 	WMI_PEER_ADD_WDS_ENTRY_CMDID,
392 	WMI_PEER_REMOVE_WDS_ENTRY_CMDID,
393 	WMI_PEER_MCAST_GROUP_CMDID,
394 	WMI_PEER_INFO_REQ_CMDID,
395 	WMI_PEER_GET_ESTIMATED_LINKSPEED_CMDID,
396 	WMI_PEER_SET_RATE_REPORT_CONDITION_CMDID,
397 	WMI_PEER_UPDATE_WDS_ENTRY_CMDID,
398 	WMI_PEER_ADD_PROXY_STA_ENTRY_CMDID,
399 	WMI_PEER_SMART_ANT_SET_TX_ANTENNA_CMDID,
400 	WMI_PEER_SMART_ANT_SET_TRAIN_INFO_CMDID,
401 	WMI_PEER_SMART_ANT_SET_NODE_CONFIG_OPS_CMDID,
402 	WMI_PEER_ATF_REQUEST_CMDID,
403 	WMI_PEER_BWF_REQUEST_CMDID,
404 	WMI_PEER_REORDER_QUEUE_SETUP_CMDID,
405 	WMI_PEER_REORDER_QUEUE_REMOVE_CMDID,
406 	WMI_PEER_SET_RX_BLOCKSIZE_CMDID,
407 	WMI_PEER_ANTDIV_INFO_REQ_CMDID,
408 	WMI_BCN_TX_CMDID = WMI_TLV_CMD(WMI_GRP_MGMT),
409 	WMI_PDEV_SEND_BCN_CMDID,
410 	WMI_BCN_TMPL_CMDID,
411 	WMI_BCN_FILTER_RX_CMDID,
412 	WMI_PRB_REQ_FILTER_RX_CMDID,
413 	WMI_MGMT_TX_CMDID,
414 	WMI_PRB_TMPL_CMDID,
415 	WMI_MGMT_TX_SEND_CMDID,
416 	WMI_OFFCHAN_DATA_TX_SEND_CMDID,
417 	WMI_PDEV_SEND_FD_CMDID,
418 	WMI_BCN_OFFLOAD_CTRL_CMDID,
419 	WMI_BSS_COLOR_CHANGE_ENABLE_CMDID,
420 	WMI_VDEV_BCN_OFFLOAD_QUIET_CONFIG_CMDID,
421 	WMI_FILS_DISCOVERY_TMPL_CMDID,
422 	WMI_ADDBA_CLEAR_RESP_CMDID = WMI_TLV_CMD(WMI_GRP_BA_NEG),
423 	WMI_ADDBA_SEND_CMDID,
424 	WMI_ADDBA_STATUS_CMDID,
425 	WMI_DELBA_SEND_CMDID,
426 	WMI_ADDBA_SET_RESP_CMDID,
427 	WMI_SEND_SINGLEAMSDU_CMDID,
428 	WMI_STA_POWERSAVE_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_STA_PS),
429 	WMI_STA_POWERSAVE_PARAM_CMDID,
430 	WMI_STA_MIMO_PS_MODE_CMDID,
431 	WMI_PDEV_DFS_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_DFS),
432 	WMI_PDEV_DFS_DISABLE_CMDID,
433 	WMI_DFS_PHYERR_FILTER_ENA_CMDID,
434 	WMI_DFS_PHYERR_FILTER_DIS_CMDID,
435 	WMI_PDEV_DFS_PHYERR_OFFLOAD_ENABLE_CMDID,
436 	WMI_PDEV_DFS_PHYERR_OFFLOAD_DISABLE_CMDID,
437 	WMI_VDEV_ADFS_CH_CFG_CMDID,
438 	WMI_VDEV_ADFS_OCAC_ABORT_CMDID,
439 	WMI_ROAM_SCAN_MODE = WMI_TLV_CMD(WMI_GRP_ROAM),
440 	WMI_ROAM_SCAN_RSSI_THRESHOLD,
441 	WMI_ROAM_SCAN_PERIOD,
442 	WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD,
443 	WMI_ROAM_AP_PROFILE,
444 	WMI_ROAM_CHAN_LIST,
445 	WMI_ROAM_SCAN_CMD,
446 	WMI_ROAM_SYNCH_COMPLETE,
447 	WMI_ROAM_SET_RIC_REQUEST_CMDID,
448 	WMI_ROAM_INVOKE_CMDID,
449 	WMI_ROAM_FILTER_CMDID,
450 	WMI_ROAM_SUBNET_CHANGE_CONFIG_CMDID,
451 	WMI_ROAM_CONFIGURE_MAWC_CMDID,
452 	WMI_ROAM_SET_MBO_PARAM_CMDID,
453 	WMI_ROAM_PER_CONFIG_CMDID,
454 	WMI_ROAM_BTM_CONFIG_CMDID,
455 	WMI_ENABLE_FILS_CMDID,
456 	WMI_OFL_SCAN_ADD_AP_PROFILE = WMI_TLV_CMD(WMI_GRP_OFL_SCAN),
457 	WMI_OFL_SCAN_REMOVE_AP_PROFILE,
458 	WMI_OFL_SCAN_PERIOD,
459 	WMI_P2P_DEV_SET_DEVICE_INFO = WMI_TLV_CMD(WMI_GRP_P2P),
460 	WMI_P2P_DEV_SET_DISCOVERABILITY,
461 	WMI_P2P_GO_SET_BEACON_IE,
462 	WMI_P2P_GO_SET_PROBE_RESP_IE,
463 	WMI_P2P_SET_VENDOR_IE_DATA_CMDID,
464 	WMI_P2P_DISC_OFFLOAD_CONFIG_CMDID,
465 	WMI_P2P_DISC_OFFLOAD_APPIE_CMDID,
466 	WMI_P2P_DISC_OFFLOAD_PATTERN_CMDID,
467 	WMI_P2P_SET_OPPPS_PARAM_CMDID,
468 	WMI_P2P_LISTEN_OFFLOAD_START_CMDID,
469 	WMI_P2P_LISTEN_OFFLOAD_STOP_CMDID,
470 	WMI_AP_PS_PEER_PARAM_CMDID = WMI_TLV_CMD(WMI_GRP_AP_PS),
471 	WMI_AP_PS_PEER_UAPSD_COEX_CMDID,
472 	WMI_AP_PS_EGAP_PARAM_CMDID,
473 	WMI_PEER_RATE_RETRY_SCHED_CMDID = WMI_TLV_CMD(WMI_GRP_RATE_CTRL),
474 	WMI_WLAN_PROFILE_TRIGGER_CMDID = WMI_TLV_CMD(WMI_GRP_PROFILE),
475 	WMI_WLAN_PROFILE_SET_HIST_INTVL_CMDID,
476 	WMI_WLAN_PROFILE_GET_PROFILE_DATA_CMDID,
477 	WMI_WLAN_PROFILE_ENABLE_PROFILE_ID_CMDID,
478 	WMI_WLAN_PROFILE_LIST_PROFILE_ID_CMDID,
479 	WMI_PDEV_SUSPEND_CMDID = WMI_TLV_CMD(WMI_GRP_SUSPEND),
480 	WMI_PDEV_RESUME_CMDID,
481 	WMI_ADD_BCN_FILTER_CMDID = WMI_TLV_CMD(WMI_GRP_BCN_FILTER),
482 	WMI_RMV_BCN_FILTER_CMDID,
483 	WMI_WOW_ADD_WAKE_PATTERN_CMDID = WMI_TLV_CMD(WMI_GRP_WOW),
484 	WMI_WOW_DEL_WAKE_PATTERN_CMDID,
485 	WMI_WOW_ENABLE_DISABLE_WAKE_EVENT_CMDID,
486 	WMI_WOW_ENABLE_CMDID,
487 	WMI_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID,
488 	WMI_WOW_IOAC_ADD_KEEPALIVE_CMDID,
489 	WMI_WOW_IOAC_DEL_KEEPALIVE_CMDID,
490 	WMI_WOW_IOAC_ADD_WAKE_PATTERN_CMDID,
491 	WMI_WOW_IOAC_DEL_WAKE_PATTERN_CMDID,
492 	WMI_D0_WOW_ENABLE_DISABLE_CMDID,
493 	WMI_EXTWOW_ENABLE_CMDID,
494 	WMI_EXTWOW_SET_APP_TYPE1_PARAMS_CMDID,
495 	WMI_EXTWOW_SET_APP_TYPE2_PARAMS_CMDID,
496 	WMI_WOW_ENABLE_ICMPV6_NA_FLT_CMDID,
497 	WMI_WOW_UDP_SVC_OFLD_CMDID,
498 	WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMDID,
499 	WMI_WOW_SET_ACTION_WAKE_UP_CMDID,
500 	WMI_RTT_MEASREQ_CMDID = WMI_TLV_CMD(WMI_GRP_RTT),
501 	WMI_RTT_TSF_CMDID,
502 	WMI_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID = WMI_TLV_CMD(WMI_GRP_SPECTRAL),
503 	WMI_VDEV_SPECTRAL_SCAN_ENABLE_CMDID,
504 	WMI_REQUEST_STATS_CMDID = WMI_TLV_CMD(WMI_GRP_STATS),
505 	WMI_MCC_SCHED_TRAFFIC_STATS_CMDID,
506 	WMI_REQUEST_STATS_EXT_CMDID,
507 	WMI_REQUEST_LINK_STATS_CMDID,
508 	WMI_START_LINK_STATS_CMDID,
509 	WMI_CLEAR_LINK_STATS_CMDID,
510 	WMI_GET_FW_MEM_DUMP_CMDID,
511 	WMI_DEBUG_MESG_FLUSH_CMDID,
512 	WMI_DIAG_EVENT_LOG_CONFIG_CMDID,
513 	WMI_REQUEST_WLAN_STATS_CMDID,
514 	WMI_REQUEST_RCPI_CMDID,
515 	WMI_REQUEST_PEER_STATS_INFO_CMDID,
516 	WMI_REQUEST_RADIO_CHAN_STATS_CMDID,
517 	WMI_SET_ARP_NS_OFFLOAD_CMDID = WMI_TLV_CMD(WMI_GRP_ARP_NS_OFL),
518 	WMI_ADD_PROACTIVE_ARP_RSP_PATTERN_CMDID,
519 	WMI_DEL_PROACTIVE_ARP_RSP_PATTERN_CMDID,
520 	WMI_NETWORK_LIST_OFFLOAD_CONFIG_CMDID = WMI_TLV_CMD(WMI_GRP_NLO_OFL),
521 	WMI_APFIND_CMDID,
522 	WMI_PASSPOINT_LIST_CONFIG_CMDID,
523 	WMI_NLO_CONFIGURE_MAWC_CMDID,
524 	WMI_GTK_OFFLOAD_CMDID = WMI_TLV_CMD(WMI_GRP_GTK_OFL),
525 	WMI_CSA_OFFLOAD_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_CSA_OFL),
526 	WMI_CSA_OFFLOAD_CHANSWITCH_CMDID,
527 	WMI_CHATTER_SET_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_CHATTER),
528 	WMI_CHATTER_ADD_COALESCING_FILTER_CMDID,
529 	WMI_CHATTER_DELETE_COALESCING_FILTER_CMDID,
530 	WMI_CHATTER_COALESCING_QUERY_CMDID,
531 	WMI_PEER_TID_ADDBA_CMDID = WMI_TLV_CMD(WMI_GRP_TID_ADDBA),
532 	WMI_PEER_TID_DELBA_CMDID,
533 	WMI_STA_DTIM_PS_METHOD_CMDID,
534 	WMI_STA_UAPSD_AUTO_TRIG_CMDID,
535 	WMI_STA_KEEPALIVE_CMDID,
536 	WMI_BA_REQ_SSN_CMDID,
537 	WMI_ECHO_CMDID = WMI_TLV_CMD(WMI_GRP_MISC),
538 	WMI_PDEV_UTF_CMDID,
539 	WMI_DBGLOG_CFG_CMDID,
540 	WMI_PDEV_QVIT_CMDID,
541 	WMI_PDEV_FTM_INTG_CMDID,
542 	WMI_VDEV_SET_KEEPALIVE_CMDID,
543 	WMI_VDEV_GET_KEEPALIVE_CMDID,
544 	WMI_FORCE_FW_HANG_CMDID,
545 	WMI_SET_MCASTBCAST_FILTER_CMDID,
546 	WMI_THERMAL_MGMT_CMDID,
547 	WMI_HOST_AUTO_SHUTDOWN_CFG_CMDID,
548 	WMI_TPC_CHAINMASK_CONFIG_CMDID,
549 	WMI_SET_ANTENNA_DIVERSITY_CMDID,
550 	WMI_OCB_SET_SCHED_CMDID,
551 	WMI_RSSI_BREACH_MONITOR_CONFIG_CMDID,
552 	WMI_LRO_CONFIG_CMDID,
553 	WMI_TRANSFER_DATA_TO_FLASH_CMDID,
554 	WMI_CONFIG_ENHANCED_MCAST_FILTER_CMDID,
555 	WMI_VDEV_WISA_CMDID,
556 	WMI_DBGLOG_TIME_STAMP_SYNC_CMDID,
557 	WMI_SET_MULTIPLE_MCAST_FILTER_CMDID,
558 	WMI_READ_DATA_FROM_FLASH_CMDID,
559 	WMI_THERM_THROT_SET_CONF_CMDID,
560 	WMI_RUNTIME_DPD_RECAL_CMDID,
561 	WMI_GET_TPC_POWER_CMDID,
562 	WMI_IDLE_TRIGGER_MONITOR_CMDID,
563 	WMI_GPIO_CONFIG_CMDID = WMI_TLV_CMD(WMI_GRP_GPIO),
564 	WMI_GPIO_OUTPUT_CMDID,
565 	WMI_TXBF_CMDID,
566 	WMI_FWTEST_VDEV_MCC_SET_TBTT_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_FWTEST),
567 	WMI_FWTEST_P2P_SET_NOA_PARAM_CMDID,
568 	WMI_UNIT_TEST_CMDID,
569 	WMI_FWTEST_CMDID,
570 	WMI_QBOOST_CFG_CMDID,
571 	WMI_TDLS_SET_STATE_CMDID = WMI_TLV_CMD(WMI_GRP_TDLS),
572 	WMI_TDLS_PEER_UPDATE_CMDID,
573 	WMI_TDLS_SET_OFFCHAN_MODE_CMDID,
574 	WMI_RESMGR_ADAPTIVE_OCS_EN_DIS_CMDID = WMI_TLV_CMD(WMI_GRP_RESMGR),
575 	WMI_RESMGR_SET_CHAN_TIME_QUOTA_CMDID,
576 	WMI_RESMGR_SET_CHAN_LATENCY_CMDID,
577 	WMI_STA_SMPS_FORCE_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_STA_SMPS),
578 	WMI_STA_SMPS_PARAM_CMDID,
579 	WMI_HB_SET_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_WLAN_HB),
580 	WMI_HB_SET_TCP_PARAMS_CMDID,
581 	WMI_HB_SET_TCP_PKT_FILTER_CMDID,
582 	WMI_HB_SET_UDP_PARAMS_CMDID,
583 	WMI_HB_SET_UDP_PKT_FILTER_CMDID,
584 	WMI_RMC_SET_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_RMC),
585 	WMI_RMC_SET_ACTION_PERIOD_CMDID,
586 	WMI_RMC_CONFIG_CMDID,
587 	WMI_RMC_SET_MANUAL_LEADER_CMDID,
588 	WMI_MHF_OFFLOAD_SET_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_MHF_OFL),
589 	WMI_MHF_OFFLOAD_PLUMB_ROUTING_TBL_CMDID,
590 	WMI_BATCH_SCAN_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_LOCATION_SCAN),
591 	WMI_BATCH_SCAN_DISABLE_CMDID,
592 	WMI_BATCH_SCAN_TRIGGER_RESULT_CMDID,
593 	WMI_OEM_REQ_CMDID = WMI_TLV_CMD(WMI_GRP_OEM),
594 	WMI_OEM_REQUEST_CMDID,
595 	WMI_LPI_OEM_REQ_CMDID,
596 	WMI_NAN_CMDID = WMI_TLV_CMD(WMI_GRP_NAN),
597 	WMI_MODEM_POWER_STATE_CMDID = WMI_TLV_CMD(WMI_GRP_COEX),
598 	WMI_CHAN_AVOID_UPDATE_CMDID,
599 	WMI_COEX_CONFIG_CMDID,
600 	WMI_CHAN_AVOID_RPT_ALLOW_CMDID,
601 	WMI_COEX_GET_ANTENNA_ISOLATION_CMDID,
602 	WMI_SAR_LIMITS_CMDID,
603 	WMI_OBSS_SCAN_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_OBSS_OFL),
604 	WMI_OBSS_SCAN_DISABLE_CMDID,
605 	WMI_OBSS_COLOR_COLLISION_DET_CONFIG_CMDID,
606 	WMI_LPI_MGMT_SNOOPING_CONFIG_CMDID = WMI_TLV_CMD(WMI_GRP_LPI),
607 	WMI_LPI_START_SCAN_CMDID,
608 	WMI_LPI_STOP_SCAN_CMDID,
609 	WMI_EXTSCAN_START_CMDID = WMI_TLV_CMD(WMI_GRP_EXTSCAN),
610 	WMI_EXTSCAN_STOP_CMDID,
611 	WMI_EXTSCAN_CONFIGURE_WLAN_CHANGE_MONITOR_CMDID,
612 	WMI_EXTSCAN_CONFIGURE_HOTLIST_MONITOR_CMDID,
613 	WMI_EXTSCAN_GET_CACHED_RESULTS_CMDID,
614 	WMI_EXTSCAN_GET_WLAN_CHANGE_RESULTS_CMDID,
615 	WMI_EXTSCAN_SET_CAPABILITIES_CMDID,
616 	WMI_EXTSCAN_GET_CAPABILITIES_CMDID,
617 	WMI_EXTSCAN_CONFIGURE_HOTLIST_SSID_MONITOR_CMDID,
618 	WMI_EXTSCAN_CONFIGURE_MAWC_CMDID,
619 	WMI_SET_DHCP_SERVER_OFFLOAD_CMDID = WMI_TLV_CMD(WMI_GRP_DHCP_OFL),
620 	WMI_IPA_OFFLOAD_ENABLE_DISABLE_CMDID = WMI_TLV_CMD(WMI_GRP_IPA),
621 	WMI_MDNS_OFFLOAD_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_MDNS_OFL),
622 	WMI_MDNS_SET_FQDN_CMDID,
623 	WMI_MDNS_SET_RESPONSE_CMDID,
624 	WMI_MDNS_GET_STATS_CMDID,
625 	WMI_SAP_OFL_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_SAP_OFL),
626 	WMI_SAP_SET_BLACKLIST_PARAM_CMDID,
627 	WMI_OCB_SET_CONFIG_CMDID = WMI_TLV_CMD(WMI_GRP_OCB),
628 	WMI_OCB_SET_UTC_TIME_CMDID,
629 	WMI_OCB_START_TIMING_ADVERT_CMDID,
630 	WMI_OCB_STOP_TIMING_ADVERT_CMDID,
631 	WMI_OCB_GET_TSF_TIMER_CMDID,
632 	WMI_DCC_GET_STATS_CMDID,
633 	WMI_DCC_CLEAR_STATS_CMDID,
634 	WMI_DCC_UPDATE_NDL_CMDID,
635 	WMI_SOC_SET_PCL_CMDID = WMI_TLV_CMD(WMI_GRP_SOC),
636 	WMI_SOC_SET_HW_MODE_CMDID,
637 	WMI_SOC_SET_DUAL_MAC_CONFIG_CMDID,
638 	WMI_SOC_SET_ANTENNA_MODE_CMDID,
639 	WMI_PACKET_FILTER_CONFIG_CMDID = WMI_TLV_CMD(WMI_GRP_PKT_FILTER),
640 	WMI_PACKET_FILTER_ENABLE_CMDID,
641 	WMI_MAWC_SENSOR_REPORT_IND_CMDID = WMI_TLV_CMD(WMI_GRP_MAWC),
642 	WMI_PMF_OFFLOAD_SET_SA_QUERY_CMDID = WMI_TLV_CMD(WMI_GRP_PMF_OFFLOAD),
643 	WMI_BPF_GET_CAPABILITY_CMDID = WMI_TLV_CMD(WMI_GRP_BPF_OFFLOAD),
644 	WMI_BPF_GET_VDEV_STATS_CMDID,
645 	WMI_BPF_SET_VDEV_INSTRUCTIONS_CMDID,
646 	WMI_BPF_DEL_VDEV_INSTRUCTIONS_CMDID,
647 	WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID,
648 	WMI_MNT_FILTER_CMDID = WMI_TLV_CMD(WMI_GRP_MONITOR),
649 	WMI_SET_CURRENT_COUNTRY_CMDID = WMI_TLV_CMD(WMI_GRP_REGULATORY),
650 	WMI_11D_SCAN_START_CMDID,
651 	WMI_11D_SCAN_STOP_CMDID,
652 	WMI_SET_INIT_COUNTRY_CMDID,
653 	WMI_NDI_GET_CAP_REQ_CMDID = WMI_TLV_CMD(WMI_GRP_PROTOTYPE),
654 	WMI_NDP_INITIATOR_REQ_CMDID,
655 	WMI_NDP_RESPONDER_REQ_CMDID,
656 	WMI_NDP_END_REQ_CMDID,
657 	WMI_HW_DATA_FILTER_CMDID = WMI_TLV_CMD(WMI_GRP_HW_DATA_FILTER),
658 	WMI_TWT_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_TWT),
659 	WMI_TWT_DISABLE_CMDID,
660 	WMI_TWT_ADD_DIALOG_CMDID,
661 	WMI_TWT_DEL_DIALOG_CMDID,
662 	WMI_TWT_PAUSE_DIALOG_CMDID,
663 	WMI_TWT_RESUME_DIALOG_CMDID,
664 	WMI_PDEV_OBSS_PD_SPATIAL_REUSE_CMDID =
665 				WMI_TLV_CMD(WMI_GRP_SPATIAL_REUSE),
666 	WMI_PDEV_OBSS_PD_SPATIAL_REUSE_SET_DEF_OBSS_THRESH_CMDID,
667 };
668 
669 enum wmi_tlv_event_id {
670 	WMI_SERVICE_READY_EVENTID = 0x1,
671 	WMI_READY_EVENTID,
672 	WMI_SERVICE_AVAILABLE_EVENTID,
673 	WMI_SCAN_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_SCAN),
674 	WMI_PDEV_TPC_CONFIG_EVENTID = WMI_TLV_CMD(WMI_GRP_PDEV),
675 	WMI_CHAN_INFO_EVENTID,
676 	WMI_PHYERR_EVENTID,
677 	WMI_PDEV_DUMP_EVENTID,
678 	WMI_TX_PAUSE_EVENTID,
679 	WMI_DFS_RADAR_EVENTID,
680 	WMI_PDEV_L1SS_TRACK_EVENTID,
681 	WMI_PDEV_TEMPERATURE_EVENTID,
682 	WMI_SERVICE_READY_EXT_EVENTID,
683 	WMI_PDEV_FIPS_EVENTID,
684 	WMI_PDEV_CHANNEL_HOPPING_EVENTID,
685 	WMI_PDEV_ANI_CCK_LEVEL_EVENTID,
686 	WMI_PDEV_ANI_OFDM_LEVEL_EVENTID,
687 	WMI_PDEV_TPC_EVENTID,
688 	WMI_PDEV_NFCAL_POWER_ALL_CHANNELS_EVENTID,
689 	WMI_PDEV_SET_HW_MODE_RESP_EVENTID,
690 	WMI_PDEV_HW_MODE_TRANSITION_EVENTID,
691 	WMI_PDEV_SET_MAC_CONFIG_RESP_EVENTID,
692 	WMI_PDEV_ANTDIV_STATUS_EVENTID,
693 	WMI_PDEV_CHIP_POWER_STATS_EVENTID,
694 	WMI_PDEV_CHIP_POWER_SAVE_FAILURE_DETECTED_EVENTID,
695 	WMI_PDEV_CSA_SWITCH_COUNT_STATUS_EVENTID,
696 	WMI_PDEV_CHECK_CAL_VERSION_EVENTID,
697 	WMI_PDEV_DIV_RSSI_ANTID_EVENTID,
698 	WMI_PDEV_BSS_CHAN_INFO_EVENTID,
699 	WMI_PDEV_UPDATE_CTLTABLE_EVENTID,
700 	WMI_PDEV_DMA_RING_CFG_RSP_EVENTID,
701 	WMI_PDEV_DMA_RING_BUF_RELEASE_EVENTID,
702 	WMI_PDEV_CTL_FAILSAFE_CHECK_EVENTID,
703 	WMI_PDEV_CSC_SWITCH_COUNT_STATUS_EVENTID,
704 	WMI_PDEV_COLD_BOOT_CAL_DATA_EVENTID,
705 	WMI_PDEV_RAP_INFO_EVENTID,
706 	WMI_CHAN_RF_CHARACTERIZATION_INFO_EVENTID,
707 	WMI_SERVICE_READY_EXT2_EVENTID,
708 	WMI_VDEV_START_RESP_EVENTID = WMI_TLV_CMD(WMI_GRP_VDEV),
709 	WMI_VDEV_STOPPED_EVENTID,
710 	WMI_VDEV_INSTALL_KEY_COMPLETE_EVENTID,
711 	WMI_VDEV_MCC_BCN_INTERVAL_CHANGE_REQ_EVENTID,
712 	WMI_VDEV_TSF_REPORT_EVENTID,
713 	WMI_VDEV_DELETE_RESP_EVENTID,
714 	WMI_VDEV_ENCRYPT_DECRYPT_DATA_RESP_EVENTID,
715 	WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_STATUS_EVENTID,
716 	WMI_PEER_STA_KICKOUT_EVENTID = WMI_TLV_CMD(WMI_GRP_PEER),
717 	WMI_PEER_INFO_EVENTID,
718 	WMI_PEER_TX_FAIL_CNT_THR_EVENTID,
719 	WMI_PEER_ESTIMATED_LINKSPEED_EVENTID,
720 	WMI_PEER_STATE_EVENTID,
721 	WMI_PEER_ASSOC_CONF_EVENTID,
722 	WMI_PEER_DELETE_RESP_EVENTID,
723 	WMI_PEER_RATECODE_LIST_EVENTID,
724 	WMI_WDS_PEER_EVENTID,
725 	WMI_PEER_STA_PS_STATECHG_EVENTID,
726 	WMI_PEER_ANTDIV_INFO_EVENTID,
727 	WMI_PEER_RESERVED0_EVENTID,
728 	WMI_PEER_RESERVED1_EVENTID,
729 	WMI_PEER_RESERVED2_EVENTID,
730 	WMI_PEER_RESERVED3_EVENTID,
731 	WMI_PEER_RESERVED4_EVENTID,
732 	WMI_PEER_RESERVED5_EVENTID,
733 	WMI_PEER_RESERVED6_EVENTID,
734 	WMI_PEER_RESERVED7_EVENTID,
735 	WMI_PEER_RESERVED8_EVENTID,
736 	WMI_PEER_RESERVED9_EVENTID,
737 	WMI_PEER_RESERVED10_EVENTID,
738 	WMI_PEER_OPER_MODE_CHANGE_EVENTID,
739 	WMI_MGMT_RX_EVENTID = WMI_TLV_CMD(WMI_GRP_MGMT),
740 	WMI_HOST_SWBA_EVENTID,
741 	WMI_TBTTOFFSET_UPDATE_EVENTID,
742 	WMI_OFFLOAD_BCN_TX_STATUS_EVENTID,
743 	WMI_OFFLOAD_PROB_RESP_TX_STATUS_EVENTID,
744 	WMI_MGMT_TX_COMPLETION_EVENTID,
745 	WMI_MGMT_TX_BUNDLE_COMPLETION_EVENTID,
746 	WMI_TBTTOFFSET_EXT_UPDATE_EVENTID,
747 	WMI_OFFCHAN_DATA_TX_COMPLETION_EVENTID,
748 	WMI_HOST_FILS_DISCOVERY_EVENTID,
749 	WMI_TX_DELBA_COMPLETE_EVENTID = WMI_TLV_CMD(WMI_GRP_BA_NEG),
750 	WMI_TX_ADDBA_COMPLETE_EVENTID,
751 	WMI_BA_RSP_SSN_EVENTID,
752 	WMI_AGGR_STATE_TRIG_EVENTID,
753 	WMI_ROAM_EVENTID = WMI_TLV_CMD(WMI_GRP_ROAM),
754 	WMI_PROFILE_MATCH,
755 	WMI_ROAM_SYNCH_EVENTID,
756 	WMI_P2P_DISC_EVENTID = WMI_TLV_CMD(WMI_GRP_P2P),
757 	WMI_P2P_NOA_EVENTID,
758 	WMI_P2P_LISTEN_OFFLOAD_STOPPED_EVENTID,
759 	WMI_AP_PS_EGAP_INFO_EVENTID = WMI_TLV_CMD(WMI_GRP_AP_PS),
760 	WMI_PDEV_RESUME_EVENTID = WMI_TLV_CMD(WMI_GRP_SUSPEND),
761 	WMI_WOW_WAKEUP_HOST_EVENTID = WMI_TLV_CMD(WMI_GRP_WOW),
762 	WMI_D0_WOW_DISABLE_ACK_EVENTID,
763 	WMI_WOW_INITIAL_WAKEUP_EVENTID,
764 	WMI_RTT_MEASUREMENT_REPORT_EVENTID = WMI_TLV_CMD(WMI_GRP_RTT),
765 	WMI_TSF_MEASUREMENT_REPORT_EVENTID,
766 	WMI_RTT_ERROR_REPORT_EVENTID,
767 	WMI_STATS_EXT_EVENTID = WMI_TLV_CMD(WMI_GRP_STATS),
768 	WMI_IFACE_LINK_STATS_EVENTID,
769 	WMI_PEER_LINK_STATS_EVENTID,
770 	WMI_RADIO_LINK_STATS_EVENTID,
771 	WMI_UPDATE_FW_MEM_DUMP_EVENTID,
772 	WMI_DIAG_EVENT_LOG_SUPPORTED_EVENTID,
773 	WMI_INST_RSSI_STATS_EVENTID,
774 	WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID,
775 	WMI_REPORT_STATS_EVENTID,
776 	WMI_UPDATE_RCPI_EVENTID,
777 	WMI_PEER_STATS_INFO_EVENTID,
778 	WMI_RADIO_CHAN_STATS_EVENTID,
779 	WMI_NLO_MATCH_EVENTID = WMI_TLV_CMD(WMI_GRP_NLO_OFL),
780 	WMI_NLO_SCAN_COMPLETE_EVENTID,
781 	WMI_APFIND_EVENTID,
782 	WMI_PASSPOINT_MATCH_EVENTID,
783 	WMI_GTK_OFFLOAD_STATUS_EVENTID = WMI_TLV_CMD(WMI_GRP_GTK_OFL),
784 	WMI_GTK_REKEY_FAIL_EVENTID,
785 	WMI_CSA_HANDLING_EVENTID = WMI_TLV_CMD(WMI_GRP_CSA_OFL),
786 	WMI_CHATTER_PC_QUERY_EVENTID = WMI_TLV_CMD(WMI_GRP_CHATTER),
787 	WMI_PDEV_DFS_RADAR_DETECTION_EVENTID = WMI_TLV_CMD(WMI_GRP_DFS),
788 	WMI_VDEV_DFS_CAC_COMPLETE_EVENTID,
789 	WMI_VDEV_ADFS_OCAC_COMPLETE_EVENTID,
790 	WMI_ECHO_EVENTID = WMI_TLV_CMD(WMI_GRP_MISC),
791 	WMI_PDEV_UTF_EVENTID,
792 	WMI_DEBUG_MESG_EVENTID,
793 	WMI_UPDATE_STATS_EVENTID,
794 	WMI_DEBUG_PRINT_EVENTID,
795 	WMI_DCS_INTERFERENCE_EVENTID,
796 	WMI_PDEV_QVIT_EVENTID,
797 	WMI_WLAN_PROFILE_DATA_EVENTID,
798 	WMI_PDEV_FTM_INTG_EVENTID,
799 	WMI_WLAN_FREQ_AVOID_EVENTID,
800 	WMI_VDEV_GET_KEEPALIVE_EVENTID,
801 	WMI_THERMAL_MGMT_EVENTID,
802 	WMI_DIAG_DATA_CONTAINER_EVENTID,
803 	WMI_HOST_AUTO_SHUTDOWN_EVENTID,
804 	WMI_UPDATE_WHAL_MIB_STATS_EVENTID,
805 	WMI_UPDATE_VDEV_RATE_STATS_EVENTID,
806 	WMI_DIAG_EVENTID,
807 	WMI_OCB_SET_SCHED_EVENTID,
808 	WMI_DEBUG_MESG_FLUSH_COMPLETE_EVENTID,
809 	WMI_RSSI_BREACH_EVENTID,
810 	WMI_TRANSFER_DATA_TO_FLASH_COMPLETE_EVENTID,
811 	WMI_PDEV_UTF_SCPC_EVENTID,
812 	WMI_READ_DATA_FROM_FLASH_EVENTID,
813 	WMI_REPORT_RX_AGGR_FAILURE_EVENTID,
814 	WMI_PKGID_EVENTID,
815 	WMI_GPIO_INPUT_EVENTID = WMI_TLV_CMD(WMI_GRP_GPIO),
816 	WMI_UPLOADH_EVENTID,
817 	WMI_CAPTUREH_EVENTID,
818 	WMI_RFKILL_STATE_CHANGE_EVENTID,
819 	WMI_TDLS_PEER_EVENTID = WMI_TLV_CMD(WMI_GRP_TDLS),
820 	WMI_STA_SMPS_FORCE_MODE_COMPL_EVENTID = WMI_TLV_CMD(WMI_GRP_STA_SMPS),
821 	WMI_BATCH_SCAN_ENABLED_EVENTID = WMI_TLV_CMD(WMI_GRP_LOCATION_SCAN),
822 	WMI_BATCH_SCAN_RESULT_EVENTID,
823 	WMI_OEM_CAPABILITY_EVENTID = WMI_TLV_CMD(WMI_GRP_OEM),
824 	WMI_OEM_MEASUREMENT_REPORT_EVENTID,
825 	WMI_OEM_ERROR_REPORT_EVENTID,
826 	WMI_OEM_RESPONSE_EVENTID,
827 	WMI_NAN_EVENTID = WMI_TLV_CMD(WMI_GRP_NAN),
828 	WMI_NAN_DISC_IFACE_CREATED_EVENTID,
829 	WMI_NAN_DISC_IFACE_DELETED_EVENTID,
830 	WMI_NAN_STARTED_CLUSTER_EVENTID,
831 	WMI_NAN_JOINED_CLUSTER_EVENTID,
832 	WMI_COEX_REPORT_ANTENNA_ISOLATION_EVENTID = WMI_TLV_CMD(WMI_GRP_COEX),
833 	WMI_LPI_RESULT_EVENTID = WMI_TLV_CMD(WMI_GRP_LPI),
834 	WMI_LPI_STATUS_EVENTID,
835 	WMI_LPI_HANDOFF_EVENTID,
836 	WMI_EXTSCAN_START_STOP_EVENTID = WMI_TLV_CMD(WMI_GRP_EXTSCAN),
837 	WMI_EXTSCAN_OPERATION_EVENTID,
838 	WMI_EXTSCAN_TABLE_USAGE_EVENTID,
839 	WMI_EXTSCAN_CACHED_RESULTS_EVENTID,
840 	WMI_EXTSCAN_WLAN_CHANGE_RESULTS_EVENTID,
841 	WMI_EXTSCAN_HOTLIST_MATCH_EVENTID,
842 	WMI_EXTSCAN_CAPABILITIES_EVENTID,
843 	WMI_EXTSCAN_HOTLIST_SSID_MATCH_EVENTID,
844 	WMI_MDNS_STATS_EVENTID = WMI_TLV_CMD(WMI_GRP_MDNS_OFL),
845 	WMI_SAP_OFL_ADD_STA_EVENTID = WMI_TLV_CMD(WMI_GRP_SAP_OFL),
846 	WMI_SAP_OFL_DEL_STA_EVENTID,
847 	WMI_OCB_SET_CONFIG_RESP_EVENTID = WMI_TLV_CMD(WMI_GRP_OCB),
848 	WMI_OCB_GET_TSF_TIMER_RESP_EVENTID,
849 	WMI_DCC_GET_STATS_RESP_EVENTID,
850 	WMI_DCC_UPDATE_NDL_RESP_EVENTID,
851 	WMI_DCC_STATS_EVENTID,
852 	WMI_SOC_SET_HW_MODE_RESP_EVENTID = WMI_TLV_CMD(WMI_GRP_SOC),
853 	WMI_SOC_HW_MODE_TRANSITION_EVENTID,
854 	WMI_SOC_SET_DUAL_MAC_CONFIG_RESP_EVENTID,
855 	WMI_MAWC_ENABLE_SENSOR_EVENTID = WMI_TLV_CMD(WMI_GRP_MAWC),
856 	WMI_BPF_CAPABILIY_INFO_EVENTID = WMI_TLV_CMD(WMI_GRP_BPF_OFFLOAD),
857 	WMI_BPF_VDEV_STATS_INFO_EVENTID,
858 	WMI_RMC_NEW_LEADER_EVENTID = WMI_TLV_CMD(WMI_GRP_RMC),
859 	WMI_REG_CHAN_LIST_CC_EVENTID = WMI_TLV_CMD(WMI_GRP_REGULATORY),
860 	WMI_11D_NEW_COUNTRY_EVENTID,
861 	WMI_REG_CHAN_LIST_CC_EXT_EVENTID,
862 	WMI_NDI_CAP_RSP_EVENTID = WMI_TLV_CMD(WMI_GRP_PROTOTYPE),
863 	WMI_NDP_INITIATOR_RSP_EVENTID,
864 	WMI_NDP_RESPONDER_RSP_EVENTID,
865 	WMI_NDP_END_RSP_EVENTID,
866 	WMI_NDP_INDICATION_EVENTID,
867 	WMI_NDP_CONFIRM_EVENTID,
868 	WMI_NDP_END_INDICATION_EVENTID,
869 
870 	WMI_TWT_ENABLE_EVENTID = WMI_TLV_CMD(WMI_GRP_TWT),
871 	WMI_TWT_DISABLE_EVENTID,
872 	WMI_TWT_ADD_DIALOG_EVENTID,
873 	WMI_TWT_DEL_DIALOG_EVENTID,
874 	WMI_TWT_PAUSE_DIALOG_EVENTID,
875 	WMI_TWT_RESUME_DIALOG_EVENTID,
876 };
877 
878 enum wmi_tlv_pdev_param {
879 	WMI_PDEV_PARAM_TX_CHAIN_MASK = 0x1,
880 	WMI_PDEV_PARAM_RX_CHAIN_MASK,
881 	WMI_PDEV_PARAM_TXPOWER_LIMIT2G,
882 	WMI_PDEV_PARAM_TXPOWER_LIMIT5G,
883 	WMI_PDEV_PARAM_TXPOWER_SCALE,
884 	WMI_PDEV_PARAM_BEACON_GEN_MODE,
885 	WMI_PDEV_PARAM_BEACON_TX_MODE,
886 	WMI_PDEV_PARAM_RESMGR_OFFCHAN_MODE,
887 	WMI_PDEV_PARAM_PROTECTION_MODE,
888 	WMI_PDEV_PARAM_DYNAMIC_BW,
889 	WMI_PDEV_PARAM_NON_AGG_SW_RETRY_TH,
890 	WMI_PDEV_PARAM_AGG_SW_RETRY_TH,
891 	WMI_PDEV_PARAM_STA_KICKOUT_TH,
892 	WMI_PDEV_PARAM_AC_AGGRSIZE_SCALING,
893 	WMI_PDEV_PARAM_LTR_ENABLE,
894 	WMI_PDEV_PARAM_LTR_AC_LATENCY_BE,
895 	WMI_PDEV_PARAM_LTR_AC_LATENCY_BK,
896 	WMI_PDEV_PARAM_LTR_AC_LATENCY_VI,
897 	WMI_PDEV_PARAM_LTR_AC_LATENCY_VO,
898 	WMI_PDEV_PARAM_LTR_AC_LATENCY_TIMEOUT,
899 	WMI_PDEV_PARAM_LTR_SLEEP_OVERRIDE,
900 	WMI_PDEV_PARAM_LTR_RX_OVERRIDE,
901 	WMI_PDEV_PARAM_LTR_TX_ACTIVITY_TIMEOUT,
902 	WMI_PDEV_PARAM_L1SS_ENABLE,
903 	WMI_PDEV_PARAM_DSLEEP_ENABLE,
904 	WMI_PDEV_PARAM_PCIELP_TXBUF_FLUSH,
905 	WMI_PDEV_PARAM_PCIELP_TXBUF_WATERMARK,
906 	WMI_PDEV_PARAM_PCIELP_TXBUF_TMO_EN,
907 	WMI_PDEV_PARAM_PCIELP_TXBUF_TMO_VALUE,
908 	WMI_PDEV_PARAM_PDEV_STATS_UPDATE_PERIOD,
909 	WMI_PDEV_PARAM_VDEV_STATS_UPDATE_PERIOD,
910 	WMI_PDEV_PARAM_PEER_STATS_UPDATE_PERIOD,
911 	WMI_PDEV_PARAM_BCNFLT_STATS_UPDATE_PERIOD,
912 	WMI_PDEV_PARAM_PMF_QOS,
913 	WMI_PDEV_PARAM_ARP_AC_OVERRIDE,
914 	WMI_PDEV_PARAM_DCS,
915 	WMI_PDEV_PARAM_ANI_ENABLE,
916 	WMI_PDEV_PARAM_ANI_POLL_PERIOD,
917 	WMI_PDEV_PARAM_ANI_LISTEN_PERIOD,
918 	WMI_PDEV_PARAM_ANI_OFDM_LEVEL,
919 	WMI_PDEV_PARAM_ANI_CCK_LEVEL,
920 	WMI_PDEV_PARAM_DYNTXCHAIN,
921 	WMI_PDEV_PARAM_PROXY_STA,
922 	WMI_PDEV_PARAM_IDLE_PS_CONFIG,
923 	WMI_PDEV_PARAM_POWER_GATING_SLEEP,
924 	WMI_PDEV_PARAM_RFKILL_ENABLE,
925 	WMI_PDEV_PARAM_BURST_DUR,
926 	WMI_PDEV_PARAM_BURST_ENABLE,
927 	WMI_PDEV_PARAM_HW_RFKILL_CONFIG,
928 	WMI_PDEV_PARAM_LOW_POWER_RF_ENABLE,
929 	WMI_PDEV_PARAM_L1SS_TRACK,
930 	WMI_PDEV_PARAM_HYST_EN,
931 	WMI_PDEV_PARAM_POWER_COLLAPSE_ENABLE,
932 	WMI_PDEV_PARAM_LED_SYS_STATE,
933 	WMI_PDEV_PARAM_LED_ENABLE,
934 	WMI_PDEV_PARAM_AUDIO_OVER_WLAN_LATENCY,
935 	WMI_PDEV_PARAM_AUDIO_OVER_WLAN_ENABLE,
936 	WMI_PDEV_PARAM_WHAL_MIB_STATS_UPDATE_ENABLE,
937 	WMI_PDEV_PARAM_VDEV_RATE_STATS_UPDATE_PERIOD,
938 	WMI_PDEV_PARAM_CTS_CBW,
939 	WMI_PDEV_PARAM_WNTS_CONFIG,
940 	WMI_PDEV_PARAM_ADAPTIVE_EARLY_RX_ENABLE,
941 	WMI_PDEV_PARAM_ADAPTIVE_EARLY_RX_MIN_SLEEP_SLOP,
942 	WMI_PDEV_PARAM_ADAPTIVE_EARLY_RX_INC_DEC_STEP,
943 	WMI_PDEV_PARAM_EARLY_RX_FIX_SLEEP_SLOP,
944 	WMI_PDEV_PARAM_BMISS_BASED_ADAPTIVE_BTO_ENABLE,
945 	WMI_PDEV_PARAM_BMISS_BTO_MIN_BCN_TIMEOUT,
946 	WMI_PDEV_PARAM_BMISS_BTO_INC_DEC_STEP,
947 	WMI_PDEV_PARAM_BTO_FIX_BCN_TIMEOUT,
948 	WMI_PDEV_PARAM_CE_BASED_ADAPTIVE_BTO_ENABLE,
949 	WMI_PDEV_PARAM_CE_BTO_COMBO_CE_VALUE,
950 	WMI_PDEV_PARAM_TX_CHAIN_MASK_2G,
951 	WMI_PDEV_PARAM_RX_CHAIN_MASK_2G,
952 	WMI_PDEV_PARAM_TX_CHAIN_MASK_5G,
953 	WMI_PDEV_PARAM_RX_CHAIN_MASK_5G,
954 	WMI_PDEV_PARAM_TX_CHAIN_MASK_CCK,
955 	WMI_PDEV_PARAM_TX_CHAIN_MASK_1SS,
956 	WMI_PDEV_PARAM_CTS2SELF_FOR_P2P_GO_CONFIG,
957 	WMI_PDEV_PARAM_TXPOWER_DECR_DB,
958 	WMI_PDEV_PARAM_AGGR_BURST,
959 	WMI_PDEV_PARAM_RX_DECAP_MODE,
960 	WMI_PDEV_PARAM_FAST_CHANNEL_RESET,
961 	WMI_PDEV_PARAM_SMART_ANTENNA_DEFAULT_ANTENNA,
962 	WMI_PDEV_PARAM_ANTENNA_GAIN,
963 	WMI_PDEV_PARAM_RX_FILTER,
964 	WMI_PDEV_SET_MCAST_TO_UCAST_TID,
965 	WMI_PDEV_PARAM_PROXY_STA_MODE,
966 	WMI_PDEV_PARAM_SET_MCAST2UCAST_MODE,
967 	WMI_PDEV_PARAM_SET_MCAST2UCAST_BUFFER,
968 	WMI_PDEV_PARAM_REMOVE_MCAST2UCAST_BUFFER,
969 	WMI_PDEV_PEER_STA_PS_STATECHG_ENABLE,
970 	WMI_PDEV_PARAM_IGMPMLD_AC_OVERRIDE,
971 	WMI_PDEV_PARAM_BLOCK_INTERBSS,
972 	WMI_PDEV_PARAM_SET_DISABLE_RESET_CMDID,
973 	WMI_PDEV_PARAM_SET_MSDU_TTL_CMDID,
974 	WMI_PDEV_PARAM_SET_PPDU_DURATION_CMDID,
975 	WMI_PDEV_PARAM_TXBF_SOUND_PERIOD_CMDID,
976 	WMI_PDEV_PARAM_SET_PROMISC_MODE_CMDID,
977 	WMI_PDEV_PARAM_SET_BURST_MODE_CMDID,
978 	WMI_PDEV_PARAM_EN_STATS,
979 	WMI_PDEV_PARAM_MU_GROUP_POLICY,
980 	WMI_PDEV_PARAM_NOISE_DETECTION,
981 	WMI_PDEV_PARAM_NOISE_THRESHOLD,
982 	WMI_PDEV_PARAM_DPD_ENABLE,
983 	WMI_PDEV_PARAM_SET_MCAST_BCAST_ECHO,
984 	WMI_PDEV_PARAM_ATF_STRICT_SCH,
985 	WMI_PDEV_PARAM_ATF_SCHED_DURATION,
986 	WMI_PDEV_PARAM_ANT_PLZN,
987 	WMI_PDEV_PARAM_MGMT_RETRY_LIMIT,
988 	WMI_PDEV_PARAM_SENSITIVITY_LEVEL,
989 	WMI_PDEV_PARAM_SIGNED_TXPOWER_2G,
990 	WMI_PDEV_PARAM_SIGNED_TXPOWER_5G,
991 	WMI_PDEV_PARAM_ENABLE_PER_TID_AMSDU,
992 	WMI_PDEV_PARAM_ENABLE_PER_TID_AMPDU,
993 	WMI_PDEV_PARAM_CCA_THRESHOLD,
994 	WMI_PDEV_PARAM_RTS_FIXED_RATE,
995 	WMI_PDEV_PARAM_PDEV_RESET,
996 	WMI_PDEV_PARAM_WAPI_MBSSID_OFFSET,
997 	WMI_PDEV_PARAM_ARP_DBG_SRCADDR,
998 	WMI_PDEV_PARAM_ARP_DBG_DSTADDR,
999 	WMI_PDEV_PARAM_ATF_OBSS_NOISE_SCH,
1000 	WMI_PDEV_PARAM_ATF_OBSS_NOISE_SCALING_FACTOR,
1001 	WMI_PDEV_PARAM_CUST_TXPOWER_SCALE,
1002 	WMI_PDEV_PARAM_ATF_DYNAMIC_ENABLE,
1003 	WMI_PDEV_PARAM_CTRL_RETRY_LIMIT,
1004 	WMI_PDEV_PARAM_PROPAGATION_DELAY,
1005 	WMI_PDEV_PARAM_ENA_ANT_DIV,
1006 	WMI_PDEV_PARAM_FORCE_CHAIN_ANT,
1007 	WMI_PDEV_PARAM_ANT_DIV_SELFTEST,
1008 	WMI_PDEV_PARAM_ANT_DIV_SELFTEST_INTVL,
1009 	WMI_PDEV_PARAM_STATS_OBSERVATION_PERIOD,
1010 	WMI_PDEV_PARAM_TX_PPDU_DELAY_BIN_SIZE_MS,
1011 	WMI_PDEV_PARAM_TX_PPDU_DELAY_ARRAY_LEN,
1012 	WMI_PDEV_PARAM_TX_MPDU_AGGR_ARRAY_LEN,
1013 	WMI_PDEV_PARAM_RX_MPDU_AGGR_ARRAY_LEN,
1014 	WMI_PDEV_PARAM_TX_SCH_DELAY,
1015 	WMI_PDEV_PARAM_ENABLE_RTS_SIFS_BURSTING,
1016 	WMI_PDEV_PARAM_MAX_MPDUS_IN_AMPDU,
1017 	WMI_PDEV_PARAM_PEER_STATS_INFO_ENABLE,
1018 	WMI_PDEV_PARAM_FAST_PWR_TRANSITION,
1019 	WMI_PDEV_PARAM_RADIO_CHAN_STATS_ENABLE,
1020 	WMI_PDEV_PARAM_RADIO_DIAGNOSIS_ENABLE,
1021 	WMI_PDEV_PARAM_MESH_MCAST_ENABLE,
1022 };
1023 
1024 enum wmi_tlv_vdev_param {
1025 	WMI_VDEV_PARAM_RTS_THRESHOLD = 0x1,
1026 	WMI_VDEV_PARAM_FRAGMENTATION_THRESHOLD,
1027 	WMI_VDEV_PARAM_BEACON_INTERVAL,
1028 	WMI_VDEV_PARAM_LISTEN_INTERVAL,
1029 	WMI_VDEV_PARAM_MULTICAST_RATE,
1030 	WMI_VDEV_PARAM_MGMT_TX_RATE,
1031 	WMI_VDEV_PARAM_SLOT_TIME,
1032 	WMI_VDEV_PARAM_PREAMBLE,
1033 	WMI_VDEV_PARAM_SWBA_TIME,
1034 	WMI_VDEV_STATS_UPDATE_PERIOD,
1035 	WMI_VDEV_PWRSAVE_AGEOUT_TIME,
1036 	WMI_VDEV_HOST_SWBA_INTERVAL,
1037 	WMI_VDEV_PARAM_DTIM_PERIOD,
1038 	WMI_VDEV_OC_SCHEDULER_AIR_TIME_LIMIT,
1039 	WMI_VDEV_PARAM_WDS,
1040 	WMI_VDEV_PARAM_ATIM_WINDOW,
1041 	WMI_VDEV_PARAM_BMISS_COUNT_MAX,
1042 	WMI_VDEV_PARAM_BMISS_FIRST_BCNT,
1043 	WMI_VDEV_PARAM_BMISS_FINAL_BCNT,
1044 	WMI_VDEV_PARAM_FEATURE_WMM,
1045 	WMI_VDEV_PARAM_CHWIDTH,
1046 	WMI_VDEV_PARAM_CHEXTOFFSET,
1047 	WMI_VDEV_PARAM_DISABLE_HTPROTECTION,
1048 	WMI_VDEV_PARAM_STA_QUICKKICKOUT,
1049 	WMI_VDEV_PARAM_MGMT_RATE,
1050 	WMI_VDEV_PARAM_PROTECTION_MODE,
1051 	WMI_VDEV_PARAM_FIXED_RATE,
1052 	WMI_VDEV_PARAM_SGI,
1053 	WMI_VDEV_PARAM_LDPC,
1054 	WMI_VDEV_PARAM_TX_STBC,
1055 	WMI_VDEV_PARAM_RX_STBC,
1056 	WMI_VDEV_PARAM_INTRA_BSS_FWD,
1057 	WMI_VDEV_PARAM_DEF_KEYID,
1058 	WMI_VDEV_PARAM_NSS,
1059 	WMI_VDEV_PARAM_BCAST_DATA_RATE,
1060 	WMI_VDEV_PARAM_MCAST_DATA_RATE,
1061 	WMI_VDEV_PARAM_MCAST_INDICATE,
1062 	WMI_VDEV_PARAM_DHCP_INDICATE,
1063 	WMI_VDEV_PARAM_UNKNOWN_DEST_INDICATE,
1064 	WMI_VDEV_PARAM_AP_KEEPALIVE_MIN_IDLE_INACTIVE_TIME_SECS,
1065 	WMI_VDEV_PARAM_AP_KEEPALIVE_MAX_IDLE_INACTIVE_TIME_SECS,
1066 	WMI_VDEV_PARAM_AP_KEEPALIVE_MAX_UNRESPONSIVE_TIME_SECS,
1067 	WMI_VDEV_PARAM_AP_ENABLE_NAWDS,
1068 	WMI_VDEV_PARAM_ENABLE_RTSCTS,
1069 	WMI_VDEV_PARAM_TXBF,
1070 	WMI_VDEV_PARAM_PACKET_POWERSAVE,
1071 	WMI_VDEV_PARAM_DROP_UNENCRY,
1072 	WMI_VDEV_PARAM_TX_ENCAP_TYPE,
1073 	WMI_VDEV_PARAM_AP_DETECT_OUT_OF_SYNC_SLEEPING_STA_TIME_SECS,
1074 	WMI_VDEV_PARAM_EARLY_RX_ADJUST_ENABLE,
1075 	WMI_VDEV_PARAM_EARLY_RX_TGT_BMISS_NUM,
1076 	WMI_VDEV_PARAM_EARLY_RX_BMISS_SAMPLE_CYCLE,
1077 	WMI_VDEV_PARAM_EARLY_RX_SLOP_STEP,
1078 	WMI_VDEV_PARAM_EARLY_RX_INIT_SLOP,
1079 	WMI_VDEV_PARAM_EARLY_RX_ADJUST_PAUSE,
1080 	WMI_VDEV_PARAM_TX_PWRLIMIT,
1081 	WMI_VDEV_PARAM_SNR_NUM_FOR_CAL,
1082 	WMI_VDEV_PARAM_ROAM_FW_OFFLOAD,
1083 	WMI_VDEV_PARAM_ENABLE_RMC,
1084 	WMI_VDEV_PARAM_IBSS_MAX_BCN_LOST_MS,
1085 	WMI_VDEV_PARAM_MAX_RATE,
1086 	WMI_VDEV_PARAM_EARLY_RX_DRIFT_SAMPLE,
1087 	WMI_VDEV_PARAM_SET_IBSS_TX_FAIL_CNT_THR,
1088 	WMI_VDEV_PARAM_EBT_RESYNC_TIMEOUT,
1089 	WMI_VDEV_PARAM_AGGR_TRIG_EVENT_ENABLE,
1090 	WMI_VDEV_PARAM_IS_IBSS_POWER_SAVE_ALLOWED,
1091 	WMI_VDEV_PARAM_IS_POWER_COLLAPSE_ALLOWED,
1092 	WMI_VDEV_PARAM_IS_AWAKE_ON_TXRX_ENABLED,
1093 	WMI_VDEV_PARAM_INACTIVITY_CNT,
1094 	WMI_VDEV_PARAM_TXSP_END_INACTIVITY_TIME_MS,
1095 	WMI_VDEV_PARAM_DTIM_POLICY,
1096 	WMI_VDEV_PARAM_IBSS_PS_WARMUP_TIME_SECS,
1097 	WMI_VDEV_PARAM_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_ENABLE,
1098 	WMI_VDEV_PARAM_RX_LEAK_WINDOW,
1099 	WMI_VDEV_PARAM_STATS_AVG_FACTOR,
1100 	WMI_VDEV_PARAM_DISCONNECT_TH,
1101 	WMI_VDEV_PARAM_RTSCTS_RATE,
1102 	WMI_VDEV_PARAM_MCC_RTSCTS_PROTECTION_ENABLE,
1103 	WMI_VDEV_PARAM_MCC_BROADCAST_PROBE_ENABLE,
1104 	WMI_VDEV_PARAM_TXPOWER_SCALE,
1105 	WMI_VDEV_PARAM_TXPOWER_SCALE_DECR_DB,
1106 	WMI_VDEV_PARAM_MCAST2UCAST_SET,
1107 	WMI_VDEV_PARAM_RC_NUM_RETRIES,
1108 	WMI_VDEV_PARAM_CABQ_MAXDUR,
1109 	WMI_VDEV_PARAM_MFPTEST_SET,
1110 	WMI_VDEV_PARAM_RTS_FIXED_RATE,
1111 	WMI_VDEV_PARAM_VHT_SGIMASK,
1112 	WMI_VDEV_PARAM_VHT80_RATEMASK,
1113 	WMI_VDEV_PARAM_PROXY_STA,
1114 	WMI_VDEV_PARAM_VIRTUAL_CELL_MODE,
1115 	WMI_VDEV_PARAM_RX_DECAP_TYPE,
1116 	WMI_VDEV_PARAM_BW_NSS_RATEMASK,
1117 	WMI_VDEV_PARAM_SENSOR_AP,
1118 	WMI_VDEV_PARAM_BEACON_RATE,
1119 	WMI_VDEV_PARAM_DTIM_ENABLE_CTS,
1120 	WMI_VDEV_PARAM_STA_KICKOUT,
1121 	WMI_VDEV_PARAM_CAPABILITIES,
1122 	WMI_VDEV_PARAM_TSF_INCREMENT,
1123 	WMI_VDEV_PARAM_AMPDU_PER_AC,
1124 	WMI_VDEV_PARAM_RX_FILTER,
1125 	WMI_VDEV_PARAM_MGMT_TX_POWER,
1126 	WMI_VDEV_PARAM_NON_AGG_SW_RETRY_TH,
1127 	WMI_VDEV_PARAM_AGG_SW_RETRY_TH,
1128 	WMI_VDEV_PARAM_DISABLE_DYN_BW_RTS,
1129 	WMI_VDEV_PARAM_ATF_SSID_SCHED_POLICY,
1130 	WMI_VDEV_PARAM_HE_DCM,
1131 	WMI_VDEV_PARAM_HE_RANGE_EXT,
1132 	WMI_VDEV_PARAM_ENABLE_BCAST_PROBE_RESPONSE,
1133 	WMI_VDEV_PARAM_FILS_MAX_CHANNEL_GUARD_TIME,
1134 	WMI_VDEV_PARAM_BA_MODE = 0x7e,
1135 	WMI_VDEV_PARAM_SET_HE_SOUNDING_MODE = 0x87,
1136 	WMI_VDEV_PARAM_6GHZ_PARAMS = 0x99,
1137 	WMI_VDEV_PARAM_PROTOTYPE = 0x8000,
1138 	WMI_VDEV_PARAM_BSS_COLOR,
1139 	WMI_VDEV_PARAM_SET_HEMU_MODE,
1140 	WMI_VDEV_PARAM_HEOPS_0_31 = 0x8003,
1141 };
1142 
1143 enum wmi_tlv_peer_flags {
1144 	WMI_PEER_AUTH		= 0x00000001,
1145 	WMI_PEER_QOS		= 0x00000002,
1146 	WMI_PEER_NEED_PTK_4_WAY	= 0x00000004,
1147 	WMI_PEER_NEED_GTK_2_WAY	= 0x00000010,
1148 	WMI_PEER_HE		= 0x00000400,
1149 	WMI_PEER_APSD		= 0x00000800,
1150 	WMI_PEER_HT		= 0x00001000,
1151 	WMI_PEER_40MHZ		= 0x00002000,
1152 	WMI_PEER_STBC		= 0x00008000,
1153 	WMI_PEER_LDPC		= 0x00010000,
1154 	WMI_PEER_DYN_MIMOPS	= 0x00020000,
1155 	WMI_PEER_STATIC_MIMOPS	= 0x00040000,
1156 	WMI_PEER_SPATIAL_MUX	= 0x00200000,
1157 	WMI_PEER_TWT_REQ	= 0x00400000,
1158 	WMI_PEER_TWT_RESP	= 0x00800000,
1159 	WMI_PEER_VHT		= 0x02000000,
1160 	WMI_PEER_80MHZ		= 0x04000000,
1161 	WMI_PEER_PMF		= 0x08000000,
1162 	WMI_PEER_IS_P2P_CAPABLE = 0x20000000,
1163 	WMI_PEER_160MHZ         = 0x40000000,
1164 	WMI_PEER_SAFEMODE_EN    = 0x80000000,
1165 };
1166 
1167 enum wmi_tlv_peer_flags_ext {
1168 	WMI_PEER_EXT_EHT = BIT(0),
1169 	WMI_PEER_EXT_320MHZ = BIT(1),
1170 };
1171 
1172 /** Enum list of TLV Tags for each parameter structure type. */
1173 enum wmi_tlv_tag {
1174 	WMI_TAG_LAST_RESERVED = 15,
1175 	WMI_TAG_FIRST_ARRAY_ENUM,
1176 	WMI_TAG_ARRAY_UINT32 = WMI_TAG_FIRST_ARRAY_ENUM,
1177 	WMI_TAG_ARRAY_BYTE,
1178 	WMI_TAG_ARRAY_STRUCT,
1179 	WMI_TAG_ARRAY_FIXED_STRUCT,
1180 	WMI_TAG_LAST_ARRAY_ENUM = 31,
1181 	WMI_TAG_SERVICE_READY_EVENT,
1182 	WMI_TAG_HAL_REG_CAPABILITIES,
1183 	WMI_TAG_WLAN_HOST_MEM_REQ,
1184 	WMI_TAG_READY_EVENT,
1185 	WMI_TAG_SCAN_EVENT,
1186 	WMI_TAG_PDEV_TPC_CONFIG_EVENT,
1187 	WMI_TAG_CHAN_INFO_EVENT,
1188 	WMI_TAG_COMB_PHYERR_RX_HDR,
1189 	WMI_TAG_VDEV_START_RESPONSE_EVENT,
1190 	WMI_TAG_VDEV_STOPPED_EVENT,
1191 	WMI_TAG_VDEV_INSTALL_KEY_COMPLETE_EVENT,
1192 	WMI_TAG_PEER_STA_KICKOUT_EVENT,
1193 	WMI_TAG_MGMT_RX_HDR,
1194 	WMI_TAG_TBTT_OFFSET_EVENT,
1195 	WMI_TAG_TX_DELBA_COMPLETE_EVENT,
1196 	WMI_TAG_TX_ADDBA_COMPLETE_EVENT,
1197 	WMI_TAG_ROAM_EVENT,
1198 	WMI_TAG_WOW_EVENT_INFO,
1199 	WMI_TAG_WOW_EVENT_INFO_SECTION_BITMAP,
1200 	WMI_TAG_RTT_EVENT_HEADER,
1201 	WMI_TAG_RTT_ERROR_REPORT_EVENT,
1202 	WMI_TAG_RTT_MEAS_EVENT,
1203 	WMI_TAG_ECHO_EVENT,
1204 	WMI_TAG_FTM_INTG_EVENT,
1205 	WMI_TAG_VDEV_GET_KEEPALIVE_EVENT,
1206 	WMI_TAG_GPIO_INPUT_EVENT,
1207 	WMI_TAG_CSA_EVENT,
1208 	WMI_TAG_GTK_OFFLOAD_STATUS_EVENT,
1209 	WMI_TAG_IGTK_INFO,
1210 	WMI_TAG_DCS_INTERFERENCE_EVENT,
1211 	WMI_TAG_ATH_DCS_CW_INT,
1212 	WMI_TAG_WLAN_DCS_CW_INT = /* ALIAS */
1213 		WMI_TAG_ATH_DCS_CW_INT,
1214 	WMI_TAG_ATH_DCS_WLAN_INT_STAT,
1215 	WMI_TAG_WLAN_DCS_IM_TGT_STATS_T = /* ALIAS */
1216 		WMI_TAG_ATH_DCS_WLAN_INT_STAT,
1217 	WMI_TAG_WLAN_PROFILE_CTX_T,
1218 	WMI_TAG_WLAN_PROFILE_T,
1219 	WMI_TAG_PDEV_QVIT_EVENT,
1220 	WMI_TAG_HOST_SWBA_EVENT,
1221 	WMI_TAG_TIM_INFO,
1222 	WMI_TAG_P2P_NOA_INFO,
1223 	WMI_TAG_STATS_EVENT,
1224 	WMI_TAG_AVOID_FREQ_RANGES_EVENT,
1225 	WMI_TAG_AVOID_FREQ_RANGE_DESC,
1226 	WMI_TAG_GTK_REKEY_FAIL_EVENT,
1227 	WMI_TAG_INIT_CMD,
1228 	WMI_TAG_RESOURCE_CONFIG,
1229 	WMI_TAG_WLAN_HOST_MEMORY_CHUNK,
1230 	WMI_TAG_START_SCAN_CMD,
1231 	WMI_TAG_STOP_SCAN_CMD,
1232 	WMI_TAG_SCAN_CHAN_LIST_CMD,
1233 	WMI_TAG_CHANNEL,
1234 	WMI_TAG_PDEV_SET_REGDOMAIN_CMD,
1235 	WMI_TAG_PDEV_SET_PARAM_CMD,
1236 	WMI_TAG_PDEV_SET_WMM_PARAMS_CMD,
1237 	WMI_TAG_WMM_PARAMS,
1238 	WMI_TAG_PDEV_SET_QUIET_CMD,
1239 	WMI_TAG_VDEV_CREATE_CMD,
1240 	WMI_TAG_VDEV_DELETE_CMD,
1241 	WMI_TAG_VDEV_START_REQUEST_CMD,
1242 	WMI_TAG_P2P_NOA_DESCRIPTOR,
1243 	WMI_TAG_P2P_GO_SET_BEACON_IE,
1244 	WMI_TAG_GTK_OFFLOAD_CMD,
1245 	WMI_TAG_VDEV_UP_CMD,
1246 	WMI_TAG_VDEV_STOP_CMD,
1247 	WMI_TAG_VDEV_DOWN_CMD,
1248 	WMI_TAG_VDEV_SET_PARAM_CMD,
1249 	WMI_TAG_VDEV_INSTALL_KEY_CMD,
1250 	WMI_TAG_PEER_CREATE_CMD,
1251 	WMI_TAG_PEER_DELETE_CMD,
1252 	WMI_TAG_PEER_FLUSH_TIDS_CMD,
1253 	WMI_TAG_PEER_SET_PARAM_CMD,
1254 	WMI_TAG_PEER_ASSOC_COMPLETE_CMD,
1255 	WMI_TAG_VHT_RATE_SET,
1256 	WMI_TAG_BCN_TMPL_CMD,
1257 	WMI_TAG_PRB_TMPL_CMD,
1258 	WMI_TAG_BCN_PRB_INFO,
1259 	WMI_TAG_PEER_TID_ADDBA_CMD,
1260 	WMI_TAG_PEER_TID_DELBA_CMD,
1261 	WMI_TAG_STA_POWERSAVE_MODE_CMD,
1262 	WMI_TAG_STA_POWERSAVE_PARAM_CMD,
1263 	WMI_TAG_STA_DTIM_PS_METHOD_CMD,
1264 	WMI_TAG_ROAM_SCAN_MODE,
1265 	WMI_TAG_ROAM_SCAN_RSSI_THRESHOLD,
1266 	WMI_TAG_ROAM_SCAN_PERIOD,
1267 	WMI_TAG_ROAM_SCAN_RSSI_CHANGE_THRESHOLD,
1268 	WMI_TAG_PDEV_SUSPEND_CMD,
1269 	WMI_TAG_PDEV_RESUME_CMD,
1270 	WMI_TAG_ADD_BCN_FILTER_CMD,
1271 	WMI_TAG_RMV_BCN_FILTER_CMD,
1272 	WMI_TAG_WOW_ENABLE_CMD,
1273 	WMI_TAG_WOW_HOSTWAKEUP_FROM_SLEEP_CMD,
1274 	WMI_TAG_STA_UAPSD_AUTO_TRIG_CMD,
1275 	WMI_TAG_STA_UAPSD_AUTO_TRIG_PARAM,
1276 	WMI_TAG_SET_ARP_NS_OFFLOAD_CMD,
1277 	WMI_TAG_ARP_OFFLOAD_TUPLE,
1278 	WMI_TAG_NS_OFFLOAD_TUPLE,
1279 	WMI_TAG_FTM_INTG_CMD,
1280 	WMI_TAG_STA_KEEPALIVE_CMD,
1281 	WMI_TAG_STA_KEEPALVE_ARP_RESPONSE,
1282 	WMI_TAG_P2P_SET_VENDOR_IE_DATA_CMD,
1283 	WMI_TAG_AP_PS_PEER_CMD,
1284 	WMI_TAG_PEER_RATE_RETRY_SCHED_CMD,
1285 	WMI_TAG_WLAN_PROFILE_TRIGGER_CMD,
1286 	WMI_TAG_WLAN_PROFILE_SET_HIST_INTVL_CMD,
1287 	WMI_TAG_WLAN_PROFILE_GET_PROF_DATA_CMD,
1288 	WMI_TAG_WLAN_PROFILE_ENABLE_PROFILE_ID_CMD,
1289 	WMI_TAG_WOW_DEL_PATTERN_CMD,
1290 	WMI_TAG_WOW_ADD_DEL_EVT_CMD,
1291 	WMI_TAG_RTT_MEASREQ_HEAD,
1292 	WMI_TAG_RTT_MEASREQ_BODY,
1293 	WMI_TAG_RTT_TSF_CMD,
1294 	WMI_TAG_VDEV_SPECTRAL_CONFIGURE_CMD,
1295 	WMI_TAG_VDEV_SPECTRAL_ENABLE_CMD,
1296 	WMI_TAG_REQUEST_STATS_CMD,
1297 	WMI_TAG_NLO_CONFIG_CMD,
1298 	WMI_TAG_NLO_CONFIGURED_PARAMETERS,
1299 	WMI_TAG_CSA_OFFLOAD_ENABLE_CMD,
1300 	WMI_TAG_CSA_OFFLOAD_CHANSWITCH_CMD,
1301 	WMI_TAG_CHATTER_SET_MODE_CMD,
1302 	WMI_TAG_ECHO_CMD,
1303 	WMI_TAG_VDEV_SET_KEEPALIVE_CMD,
1304 	WMI_TAG_VDEV_GET_KEEPALIVE_CMD,
1305 	WMI_TAG_FORCE_FW_HANG_CMD,
1306 	WMI_TAG_GPIO_CONFIG_CMD,
1307 	WMI_TAG_GPIO_OUTPUT_CMD,
1308 	WMI_TAG_PEER_ADD_WDS_ENTRY_CMD,
1309 	WMI_TAG_PEER_REMOVE_WDS_ENTRY_CMD,
1310 	WMI_TAG_BCN_TX_HDR,
1311 	WMI_TAG_BCN_SEND_FROM_HOST_CMD,
1312 	WMI_TAG_MGMT_TX_HDR,
1313 	WMI_TAG_ADDBA_CLEAR_RESP_CMD,
1314 	WMI_TAG_ADDBA_SEND_CMD,
1315 	WMI_TAG_DELBA_SEND_CMD,
1316 	WMI_TAG_ADDBA_SETRESPONSE_CMD,
1317 	WMI_TAG_SEND_SINGLEAMSDU_CMD,
1318 	WMI_TAG_PDEV_PKTLOG_ENABLE_CMD,
1319 	WMI_TAG_PDEV_PKTLOG_DISABLE_CMD,
1320 	WMI_TAG_PDEV_SET_HT_IE_CMD,
1321 	WMI_TAG_PDEV_SET_VHT_IE_CMD,
1322 	WMI_TAG_PDEV_SET_DSCP_TID_MAP_CMD,
1323 	WMI_TAG_PDEV_GREEN_AP_PS_ENABLE_CMD,
1324 	WMI_TAG_PDEV_GET_TPC_CONFIG_CMD,
1325 	WMI_TAG_PDEV_SET_BASE_MACADDR_CMD,
1326 	WMI_TAG_PEER_MCAST_GROUP_CMD,
1327 	WMI_TAG_ROAM_AP_PROFILE,
1328 	WMI_TAG_AP_PROFILE,
1329 	WMI_TAG_SCAN_SCH_PRIORITY_TABLE_CMD,
1330 	WMI_TAG_PDEV_DFS_ENABLE_CMD,
1331 	WMI_TAG_PDEV_DFS_DISABLE_CMD,
1332 	WMI_TAG_WOW_ADD_PATTERN_CMD,
1333 	WMI_TAG_WOW_BITMAP_PATTERN_T,
1334 	WMI_TAG_WOW_IPV4_SYNC_PATTERN_T,
1335 	WMI_TAG_WOW_IPV6_SYNC_PATTERN_T,
1336 	WMI_TAG_WOW_MAGIC_PATTERN_CMD,
1337 	WMI_TAG_SCAN_UPDATE_REQUEST_CMD,
1338 	WMI_TAG_CHATTER_PKT_COALESCING_FILTER,
1339 	WMI_TAG_CHATTER_COALESCING_ADD_FILTER_CMD,
1340 	WMI_TAG_CHATTER_COALESCING_DELETE_FILTER_CMD,
1341 	WMI_TAG_CHATTER_COALESCING_QUERY_CMD,
1342 	WMI_TAG_TXBF_CMD,
1343 	WMI_TAG_DEBUG_LOG_CONFIG_CMD,
1344 	WMI_TAG_NLO_EVENT,
1345 	WMI_TAG_CHATTER_QUERY_REPLY_EVENT,
1346 	WMI_TAG_UPLOAD_H_HDR,
1347 	WMI_TAG_CAPTURE_H_EVENT_HDR,
1348 	WMI_TAG_VDEV_WNM_SLEEPMODE_CMD,
1349 	WMI_TAG_VDEV_IPSEC_NATKEEPALIVE_FILTER_CMD,
1350 	WMI_TAG_VDEV_WMM_ADDTS_CMD,
1351 	WMI_TAG_VDEV_WMM_DELTS_CMD,
1352 	WMI_TAG_VDEV_SET_WMM_PARAMS_CMD,
1353 	WMI_TAG_TDLS_SET_STATE_CMD,
1354 	WMI_TAG_TDLS_PEER_UPDATE_CMD,
1355 	WMI_TAG_TDLS_PEER_EVENT,
1356 	WMI_TAG_TDLS_PEER_CAPABILITIES,
1357 	WMI_TAG_VDEV_MCC_SET_TBTT_MODE_CMD,
1358 	WMI_TAG_ROAM_CHAN_LIST,
1359 	WMI_TAG_VDEV_MCC_BCN_INTVL_CHANGE_EVENT,
1360 	WMI_TAG_RESMGR_ADAPTIVE_OCS_ENABLE_DISABLE_CMD,
1361 	WMI_TAG_RESMGR_SET_CHAN_TIME_QUOTA_CMD,
1362 	WMI_TAG_RESMGR_SET_CHAN_LATENCY_CMD,
1363 	WMI_TAG_BA_REQ_SSN_CMD,
1364 	WMI_TAG_BA_RSP_SSN_EVENT,
1365 	WMI_TAG_STA_SMPS_FORCE_MODE_CMD,
1366 	WMI_TAG_SET_MCASTBCAST_FILTER_CMD,
1367 	WMI_TAG_P2P_SET_OPPPS_CMD,
1368 	WMI_TAG_P2P_SET_NOA_CMD,
1369 	WMI_TAG_BA_REQ_SSN_CMD_SUB_STRUCT_PARAM,
1370 	WMI_TAG_BA_REQ_SSN_EVENT_SUB_STRUCT_PARAM,
1371 	WMI_TAG_STA_SMPS_PARAM_CMD,
1372 	WMI_TAG_VDEV_SET_GTX_PARAMS_CMD,
1373 	WMI_TAG_MCC_SCHED_TRAFFIC_STATS_CMD,
1374 	WMI_TAG_MCC_SCHED_STA_TRAFFIC_STATS,
1375 	WMI_TAG_OFFLOAD_BCN_TX_STATUS_EVENT,
1376 	WMI_TAG_P2P_NOA_EVENT,
1377 	WMI_TAG_HB_SET_ENABLE_CMD,
1378 	WMI_TAG_HB_SET_TCP_PARAMS_CMD,
1379 	WMI_TAG_HB_SET_TCP_PKT_FILTER_CMD,
1380 	WMI_TAG_HB_SET_UDP_PARAMS_CMD,
1381 	WMI_TAG_HB_SET_UDP_PKT_FILTER_CMD,
1382 	WMI_TAG_HB_IND_EVENT,
1383 	WMI_TAG_TX_PAUSE_EVENT,
1384 	WMI_TAG_RFKILL_EVENT,
1385 	WMI_TAG_DFS_RADAR_EVENT,
1386 	WMI_TAG_DFS_PHYERR_FILTER_ENA_CMD,
1387 	WMI_TAG_DFS_PHYERR_FILTER_DIS_CMD,
1388 	WMI_TAG_BATCH_SCAN_RESULT_SCAN_LIST,
1389 	WMI_TAG_BATCH_SCAN_RESULT_NETWORK_INFO,
1390 	WMI_TAG_BATCH_SCAN_ENABLE_CMD,
1391 	WMI_TAG_BATCH_SCAN_DISABLE_CMD,
1392 	WMI_TAG_BATCH_SCAN_TRIGGER_RESULT_CMD,
1393 	WMI_TAG_BATCH_SCAN_ENABLED_EVENT,
1394 	WMI_TAG_BATCH_SCAN_RESULT_EVENT,
1395 	WMI_TAG_VDEV_PLMREQ_START_CMD,
1396 	WMI_TAG_VDEV_PLMREQ_STOP_CMD,
1397 	WMI_TAG_THERMAL_MGMT_CMD,
1398 	WMI_TAG_THERMAL_MGMT_EVENT,
1399 	WMI_TAG_PEER_INFO_REQ_CMD,
1400 	WMI_TAG_PEER_INFO_EVENT,
1401 	WMI_TAG_PEER_INFO,
1402 	WMI_TAG_PEER_TX_FAIL_CNT_THR_EVENT,
1403 	WMI_TAG_RMC_SET_MODE_CMD,
1404 	WMI_TAG_RMC_SET_ACTION_PERIOD_CMD,
1405 	WMI_TAG_RMC_CONFIG_CMD,
1406 	WMI_TAG_MHF_OFFLOAD_SET_MODE_CMD,
1407 	WMI_TAG_MHF_OFFLOAD_PLUMB_ROUTING_TABLE_CMD,
1408 	WMI_TAG_ADD_PROACTIVE_ARP_RSP_PATTERN_CMD,
1409 	WMI_TAG_DEL_PROACTIVE_ARP_RSP_PATTERN_CMD,
1410 	WMI_TAG_NAN_CMD_PARAM,
1411 	WMI_TAG_NAN_EVENT_HDR,
1412 	WMI_TAG_PDEV_L1SS_TRACK_EVENT,
1413 	WMI_TAG_DIAG_DATA_CONTAINER_EVENT,
1414 	WMI_TAG_MODEM_POWER_STATE_CMD_PARAM,
1415 	WMI_TAG_PEER_GET_ESTIMATED_LINKSPEED_CMD,
1416 	WMI_TAG_PEER_ESTIMATED_LINKSPEED_EVENT,
1417 	WMI_TAG_AGGR_STATE_TRIG_EVENT,
1418 	WMI_TAG_MHF_OFFLOAD_ROUTING_TABLE_ENTRY,
1419 	WMI_TAG_ROAM_SCAN_CMD,
1420 	WMI_TAG_REQ_STATS_EXT_CMD,
1421 	WMI_TAG_STATS_EXT_EVENT,
1422 	WMI_TAG_OBSS_SCAN_ENABLE_CMD,
1423 	WMI_TAG_OBSS_SCAN_DISABLE_CMD,
1424 	WMI_TAG_OFFLOAD_PRB_RSP_TX_STATUS_EVENT,
1425 	WMI_TAG_PDEV_SET_LED_CONFIG_CMD,
1426 	WMI_TAG_HOST_AUTO_SHUTDOWN_CFG_CMD,
1427 	WMI_TAG_HOST_AUTO_SHUTDOWN_EVENT,
1428 	WMI_TAG_UPDATE_WHAL_MIB_STATS_EVENT,
1429 	WMI_TAG_CHAN_AVOID_UPDATE_CMD_PARAM,
1430 	WMI_TAG_WOW_IOAC_PKT_PATTERN_T,
1431 	WMI_TAG_WOW_IOAC_TMR_PATTERN_T,
1432 	WMI_TAG_WOW_IOAC_ADD_KEEPALIVE_CMD,
1433 	WMI_TAG_WOW_IOAC_DEL_KEEPALIVE_CMD,
1434 	WMI_TAG_WOW_IOAC_KEEPALIVE_T,
1435 	WMI_TAG_WOW_IOAC_ADD_PATTERN_CMD,
1436 	WMI_TAG_WOW_IOAC_DEL_PATTERN_CMD,
1437 	WMI_TAG_START_LINK_STATS_CMD,
1438 	WMI_TAG_CLEAR_LINK_STATS_CMD,
1439 	WMI_TAG_REQUEST_LINK_STATS_CMD,
1440 	WMI_TAG_IFACE_LINK_STATS_EVENT,
1441 	WMI_TAG_RADIO_LINK_STATS_EVENT,
1442 	WMI_TAG_PEER_STATS_EVENT,
1443 	WMI_TAG_CHANNEL_STATS,
1444 	WMI_TAG_RADIO_LINK_STATS,
1445 	WMI_TAG_RATE_STATS,
1446 	WMI_TAG_PEER_LINK_STATS,
1447 	WMI_TAG_WMM_AC_STATS,
1448 	WMI_TAG_IFACE_LINK_STATS,
1449 	WMI_TAG_LPI_MGMT_SNOOPING_CONFIG_CMD,
1450 	WMI_TAG_LPI_START_SCAN_CMD,
1451 	WMI_TAG_LPI_STOP_SCAN_CMD,
1452 	WMI_TAG_LPI_RESULT_EVENT,
1453 	WMI_TAG_PEER_STATE_EVENT,
1454 	WMI_TAG_EXTSCAN_BUCKET_CMD,
1455 	WMI_TAG_EXTSCAN_BUCKET_CHANNEL_EVENT,
1456 	WMI_TAG_EXTSCAN_START_CMD,
1457 	WMI_TAG_EXTSCAN_STOP_CMD,
1458 	WMI_TAG_EXTSCAN_CONFIGURE_WLAN_CHANGE_MONITOR_CMD,
1459 	WMI_TAG_EXTSCAN_WLAN_CHANGE_BSSID_PARAM_CMD,
1460 	WMI_TAG_EXTSCAN_CONFIGURE_HOTLIST_MONITOR_CMD,
1461 	WMI_TAG_EXTSCAN_GET_CACHED_RESULTS_CMD,
1462 	WMI_TAG_EXTSCAN_GET_WLAN_CHANGE_RESULTS_CMD,
1463 	WMI_TAG_EXTSCAN_SET_CAPABILITIES_CMD,
1464 	WMI_TAG_EXTSCAN_GET_CAPABILITIES_CMD,
1465 	WMI_TAG_EXTSCAN_OPERATION_EVENT,
1466 	WMI_TAG_EXTSCAN_START_STOP_EVENT,
1467 	WMI_TAG_EXTSCAN_TABLE_USAGE_EVENT,
1468 	WMI_TAG_EXTSCAN_WLAN_DESCRIPTOR_EVENT,
1469 	WMI_TAG_EXTSCAN_RSSI_INFO_EVENT,
1470 	WMI_TAG_EXTSCAN_CACHED_RESULTS_EVENT,
1471 	WMI_TAG_EXTSCAN_WLAN_CHANGE_RESULTS_EVENT,
1472 	WMI_TAG_EXTSCAN_WLAN_CHANGE_RESULT_BSSID_EVENT,
1473 	WMI_TAG_EXTSCAN_HOTLIST_MATCH_EVENT,
1474 	WMI_TAG_EXTSCAN_CAPABILITIES_EVENT,
1475 	WMI_TAG_EXTSCAN_CACHE_CAPABILITIES_EVENT,
1476 	WMI_TAG_EXTSCAN_WLAN_CHANGE_MONITOR_CAPABILITIES_EVENT,
1477 	WMI_TAG_EXTSCAN_HOTLIST_MONITOR_CAPABILITIES_EVENT,
1478 	WMI_TAG_D0_WOW_ENABLE_DISABLE_CMD,
1479 	WMI_TAG_D0_WOW_DISABLE_ACK_EVENT,
1480 	WMI_TAG_UNIT_TEST_CMD,
1481 	WMI_TAG_ROAM_OFFLOAD_TLV_PARAM,
1482 	WMI_TAG_ROAM_11I_OFFLOAD_TLV_PARAM,
1483 	WMI_TAG_ROAM_11R_OFFLOAD_TLV_PARAM,
1484 	WMI_TAG_ROAM_ESE_OFFLOAD_TLV_PARAM,
1485 	WMI_TAG_ROAM_SYNCH_EVENT,
1486 	WMI_TAG_ROAM_SYNCH_COMPLETE,
1487 	WMI_TAG_EXTWOW_ENABLE_CMD,
1488 	WMI_TAG_EXTWOW_SET_APP_TYPE1_PARAMS_CMD,
1489 	WMI_TAG_EXTWOW_SET_APP_TYPE2_PARAMS_CMD,
1490 	WMI_TAG_LPI_STATUS_EVENT,
1491 	WMI_TAG_LPI_HANDOFF_EVENT,
1492 	WMI_TAG_VDEV_RATE_STATS_EVENT,
1493 	WMI_TAG_VDEV_RATE_HT_INFO,
1494 	WMI_TAG_RIC_REQUEST,
1495 	WMI_TAG_PDEV_GET_TEMPERATURE_CMD,
1496 	WMI_TAG_PDEV_TEMPERATURE_EVENT,
1497 	WMI_TAG_SET_DHCP_SERVER_OFFLOAD_CMD,
1498 	WMI_TAG_TPC_CHAINMASK_CONFIG_CMD,
1499 	WMI_TAG_RIC_TSPEC,
1500 	WMI_TAG_TPC_CHAINMASK_CONFIG,
1501 	WMI_TAG_IPA_OFFLOAD_ENABLE_DISABLE_CMD,
1502 	WMI_TAG_SCAN_PROB_REQ_OUI_CMD,
1503 	WMI_TAG_KEY_MATERIAL,
1504 	WMI_TAG_TDLS_SET_OFFCHAN_MODE_CMD,
1505 	WMI_TAG_SET_LED_FLASHING_CMD,
1506 	WMI_TAG_MDNS_OFFLOAD_CMD,
1507 	WMI_TAG_MDNS_SET_FQDN_CMD,
1508 	WMI_TAG_MDNS_SET_RESP_CMD,
1509 	WMI_TAG_MDNS_GET_STATS_CMD,
1510 	WMI_TAG_MDNS_STATS_EVENT,
1511 	WMI_TAG_ROAM_INVOKE_CMD,
1512 	WMI_TAG_PDEV_RESUME_EVENT,
1513 	WMI_TAG_PDEV_SET_ANTENNA_DIVERSITY_CMD,
1514 	WMI_TAG_SAP_OFL_ENABLE_CMD,
1515 	WMI_TAG_SAP_OFL_ADD_STA_EVENT,
1516 	WMI_TAG_SAP_OFL_DEL_STA_EVENT,
1517 	WMI_TAG_APFIND_CMD_PARAM,
1518 	WMI_TAG_APFIND_EVENT_HDR,
1519 	WMI_TAG_OCB_SET_SCHED_CMD,
1520 	WMI_TAG_OCB_SET_SCHED_EVENT,
1521 	WMI_TAG_OCB_SET_CONFIG_CMD,
1522 	WMI_TAG_OCB_SET_CONFIG_RESP_EVENT,
1523 	WMI_TAG_OCB_SET_UTC_TIME_CMD,
1524 	WMI_TAG_OCB_START_TIMING_ADVERT_CMD,
1525 	WMI_TAG_OCB_STOP_TIMING_ADVERT_CMD,
1526 	WMI_TAG_OCB_GET_TSF_TIMER_CMD,
1527 	WMI_TAG_OCB_GET_TSF_TIMER_RESP_EVENT,
1528 	WMI_TAG_DCC_GET_STATS_CMD,
1529 	WMI_TAG_DCC_CHANNEL_STATS_REQUEST,
1530 	WMI_TAG_DCC_GET_STATS_RESP_EVENT,
1531 	WMI_TAG_DCC_CLEAR_STATS_CMD,
1532 	WMI_TAG_DCC_UPDATE_NDL_CMD,
1533 	WMI_TAG_DCC_UPDATE_NDL_RESP_EVENT,
1534 	WMI_TAG_DCC_STATS_EVENT,
1535 	WMI_TAG_OCB_CHANNEL,
1536 	WMI_TAG_OCB_SCHEDULE_ELEMENT,
1537 	WMI_TAG_DCC_NDL_STATS_PER_CHANNEL,
1538 	WMI_TAG_DCC_NDL_CHAN,
1539 	WMI_TAG_QOS_PARAMETER,
1540 	WMI_TAG_DCC_NDL_ACTIVE_STATE_CONFIG,
1541 	WMI_TAG_ROAM_SCAN_EXTENDED_THRESHOLD_PARAM,
1542 	WMI_TAG_ROAM_FILTER,
1543 	WMI_TAG_PASSPOINT_CONFIG_CMD,
1544 	WMI_TAG_PASSPOINT_EVENT_HDR,
1545 	WMI_TAG_EXTSCAN_CONFIGURE_HOTLIST_SSID_MONITOR_CMD,
1546 	WMI_TAG_EXTSCAN_HOTLIST_SSID_MATCH_EVENT,
1547 	WMI_TAG_VDEV_TSF_TSTAMP_ACTION_CMD,
1548 	WMI_TAG_VDEV_TSF_REPORT_EVENT,
1549 	WMI_TAG_GET_FW_MEM_DUMP,
1550 	WMI_TAG_UPDATE_FW_MEM_DUMP,
1551 	WMI_TAG_FW_MEM_DUMP_PARAMS,
1552 	WMI_TAG_DEBUG_MESG_FLUSH,
1553 	WMI_TAG_DEBUG_MESG_FLUSH_COMPLETE,
1554 	WMI_TAG_PEER_SET_RATE_REPORT_CONDITION,
1555 	WMI_TAG_ROAM_SUBNET_CHANGE_CONFIG,
1556 	WMI_TAG_VDEV_SET_IE_CMD,
1557 	WMI_TAG_RSSI_BREACH_MONITOR_CONFIG,
1558 	WMI_TAG_RSSI_BREACH_EVENT,
1559 	WMI_TAG_WOW_EVENT_INITIAL_WAKEUP,
1560 	WMI_TAG_SOC_SET_PCL_CMD,
1561 	WMI_TAG_SOC_SET_HW_MODE_CMD,
1562 	WMI_TAG_SOC_SET_HW_MODE_RESPONSE_EVENT,
1563 	WMI_TAG_SOC_HW_MODE_TRANSITION_EVENT,
1564 	WMI_TAG_VDEV_TXRX_STREAMS,
1565 	WMI_TAG_SOC_SET_HW_MODE_RESPONSE_VDEV_MAC_ENTRY,
1566 	WMI_TAG_SOC_SET_DUAL_MAC_CONFIG_CMD,
1567 	WMI_TAG_SOC_SET_DUAL_MAC_CONFIG_RESPONSE_EVENT,
1568 	WMI_TAG_WOW_IOAC_SOCK_PATTERN_T,
1569 	WMI_TAG_WOW_ENABLE_ICMPV6_NA_FLT_CMD,
1570 	WMI_TAG_DIAG_EVENT_LOG_CONFIG,
1571 	WMI_TAG_DIAG_EVENT_LOG_SUPPORTED_EVENT_FIXED_PARAMS,
1572 	WMI_TAG_PACKET_FILTER_CONFIG,
1573 	WMI_TAG_PACKET_FILTER_ENABLE,
1574 	WMI_TAG_SAP_SET_BLACKLIST_PARAM_CMD,
1575 	WMI_TAG_MGMT_TX_SEND_CMD,
1576 	WMI_TAG_MGMT_TX_COMPL_EVENT,
1577 	WMI_TAG_SOC_SET_ANTENNA_MODE_CMD,
1578 	WMI_TAG_WOW_UDP_SVC_OFLD_CMD,
1579 	WMI_TAG_LRO_INFO_CMD,
1580 	WMI_TAG_ROAM_EARLYSTOP_RSSI_THRES_PARAM,
1581 	WMI_TAG_SERVICE_READY_EXT_EVENT,
1582 	WMI_TAG_MAWC_SENSOR_REPORT_IND_CMD,
1583 	WMI_TAG_MAWC_ENABLE_SENSOR_EVENT,
1584 	WMI_TAG_ROAM_CONFIGURE_MAWC_CMD,
1585 	WMI_TAG_NLO_CONFIGURE_MAWC_CMD,
1586 	WMI_TAG_EXTSCAN_CONFIGURE_MAWC_CMD,
1587 	WMI_TAG_PEER_ASSOC_CONF_EVENT,
1588 	WMI_TAG_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMD,
1589 	WMI_TAG_AP_PS_EGAP_PARAM_CMD,
1590 	WMI_TAG_AP_PS_EGAP_INFO_EVENT,
1591 	WMI_TAG_PMF_OFFLOAD_SET_SA_QUERY_CMD,
1592 	WMI_TAG_TRANSFER_DATA_TO_FLASH_CMD,
1593 	WMI_TAG_TRANSFER_DATA_TO_FLASH_COMPLETE_EVENT,
1594 	WMI_TAG_SCPC_EVENT,
1595 	WMI_TAG_AP_PS_EGAP_INFO_CHAINMASK_LIST,
1596 	WMI_TAG_STA_SMPS_FORCE_MODE_COMPLETE_EVENT,
1597 	WMI_TAG_BPF_GET_CAPABILITY_CMD,
1598 	WMI_TAG_BPF_CAPABILITY_INFO_EVT,
1599 	WMI_TAG_BPF_GET_VDEV_STATS_CMD,
1600 	WMI_TAG_BPF_VDEV_STATS_INFO_EVT,
1601 	WMI_TAG_BPF_SET_VDEV_INSTRUCTIONS_CMD,
1602 	WMI_TAG_BPF_DEL_VDEV_INSTRUCTIONS_CMD,
1603 	WMI_TAG_VDEV_DELETE_RESP_EVENT,
1604 	WMI_TAG_PEER_DELETE_RESP_EVENT,
1605 	WMI_TAG_ROAM_DENSE_THRES_PARAM,
1606 	WMI_TAG_ENLO_CANDIDATE_SCORE_PARAM,
1607 	WMI_TAG_PEER_UPDATE_WDS_ENTRY_CMD,
1608 	WMI_TAG_VDEV_CONFIG_RATEMASK,
1609 	WMI_TAG_PDEV_FIPS_CMD,
1610 	WMI_TAG_PDEV_SMART_ANT_ENABLE_CMD,
1611 	WMI_TAG_PDEV_SMART_ANT_SET_RX_ANTENNA_CMD,
1612 	WMI_TAG_PEER_SMART_ANT_SET_TX_ANTENNA_CMD,
1613 	WMI_TAG_PEER_SMART_ANT_SET_TRAIN_ANTENNA_CMD,
1614 	WMI_TAG_PEER_SMART_ANT_SET_NODE_CONFIG_OPS_CMD,
1615 	WMI_TAG_PDEV_SET_ANT_SWITCH_TBL_CMD,
1616 	WMI_TAG_PDEV_SET_CTL_TABLE_CMD,
1617 	WMI_TAG_PDEV_SET_MIMOGAIN_TABLE_CMD,
1618 	WMI_TAG_FWTEST_SET_PARAM_CMD,
1619 	WMI_TAG_PEER_ATF_REQUEST,
1620 	WMI_TAG_VDEV_ATF_REQUEST,
1621 	WMI_TAG_PDEV_GET_ANI_CCK_CONFIG_CMD,
1622 	WMI_TAG_PDEV_GET_ANI_OFDM_CONFIG_CMD,
1623 	WMI_TAG_INST_RSSI_STATS_RESP,
1624 	WMI_TAG_MED_UTIL_REPORT_EVENT,
1625 	WMI_TAG_PEER_STA_PS_STATECHANGE_EVENT,
1626 	WMI_TAG_WDS_ADDR_EVENT,
1627 	WMI_TAG_PEER_RATECODE_LIST_EVENT,
1628 	WMI_TAG_PDEV_NFCAL_POWER_ALL_CHANNELS_EVENT,
1629 	WMI_TAG_PDEV_TPC_EVENT,
1630 	WMI_TAG_ANI_OFDM_EVENT,
1631 	WMI_TAG_ANI_CCK_EVENT,
1632 	WMI_TAG_PDEV_CHANNEL_HOPPING_EVENT,
1633 	WMI_TAG_PDEV_FIPS_EVENT,
1634 	WMI_TAG_ATF_PEER_INFO,
1635 	WMI_TAG_PDEV_GET_TPC_CMD,
1636 	WMI_TAG_VDEV_FILTER_NRP_CONFIG_CMD,
1637 	WMI_TAG_QBOOST_CFG_CMD,
1638 	WMI_TAG_PDEV_SMART_ANT_GPIO_HANDLE,
1639 	WMI_TAG_PEER_SMART_ANT_SET_TX_ANTENNA_SERIES,
1640 	WMI_TAG_PEER_SMART_ANT_SET_TRAIN_ANTENNA_PARAM,
1641 	WMI_TAG_PDEV_SET_ANT_CTRL_CHAIN,
1642 	WMI_TAG_PEER_CCK_OFDM_RATE_INFO,
1643 	WMI_TAG_PEER_MCS_RATE_INFO,
1644 	WMI_TAG_PDEV_NFCAL_POWER_ALL_CHANNELS_NFDBR,
1645 	WMI_TAG_PDEV_NFCAL_POWER_ALL_CHANNELS_NFDBM,
1646 	WMI_TAG_PDEV_NFCAL_POWER_ALL_CHANNELS_FREQNUM,
1647 	WMI_TAG_MU_REPORT_TOTAL_MU,
1648 	WMI_TAG_VDEV_SET_DSCP_TID_MAP_CMD,
1649 	WMI_TAG_ROAM_SET_MBO,
1650 	WMI_TAG_MIB_STATS_ENABLE_CMD,
1651 	WMI_TAG_NAN_DISC_IFACE_CREATED_EVENT,
1652 	WMI_TAG_NAN_DISC_IFACE_DELETED_EVENT,
1653 	WMI_TAG_NAN_STARTED_CLUSTER_EVENT,
1654 	WMI_TAG_NAN_JOINED_CLUSTER_EVENT,
1655 	WMI_TAG_NDI_GET_CAP_REQ,
1656 	WMI_TAG_NDP_INITIATOR_REQ,
1657 	WMI_TAG_NDP_RESPONDER_REQ,
1658 	WMI_TAG_NDP_END_REQ,
1659 	WMI_TAG_NDI_CAP_RSP_EVENT,
1660 	WMI_TAG_NDP_INITIATOR_RSP_EVENT,
1661 	WMI_TAG_NDP_RESPONDER_RSP_EVENT,
1662 	WMI_TAG_NDP_END_RSP_EVENT,
1663 	WMI_TAG_NDP_INDICATION_EVENT,
1664 	WMI_TAG_NDP_CONFIRM_EVENT,
1665 	WMI_TAG_NDP_END_INDICATION_EVENT,
1666 	WMI_TAG_VDEV_SET_QUIET_CMD,
1667 	WMI_TAG_PDEV_SET_PCL_CMD,
1668 	WMI_TAG_PDEV_SET_HW_MODE_CMD,
1669 	WMI_TAG_PDEV_SET_MAC_CONFIG_CMD,
1670 	WMI_TAG_PDEV_SET_ANTENNA_MODE_CMD,
1671 	WMI_TAG_PDEV_SET_HW_MODE_RESPONSE_EVENT,
1672 	WMI_TAG_PDEV_HW_MODE_TRANSITION_EVENT,
1673 	WMI_TAG_PDEV_SET_HW_MODE_RESPONSE_VDEV_MAC_ENTRY,
1674 	WMI_TAG_PDEV_SET_MAC_CONFIG_RESPONSE_EVENT,
1675 	WMI_TAG_COEX_CONFIG_CMD,
1676 	WMI_TAG_CONFIG_ENHANCED_MCAST_FILTER,
1677 	WMI_TAG_CHAN_AVOID_RPT_ALLOW_CMD,
1678 	WMI_TAG_SET_PERIODIC_CHANNEL_STATS_CONFIG,
1679 	WMI_TAG_VDEV_SET_CUSTOM_AGGR_SIZE_CMD,
1680 	WMI_TAG_PDEV_WAL_POWER_DEBUG_CMD,
1681 	WMI_TAG_MAC_PHY_CAPABILITIES,
1682 	WMI_TAG_HW_MODE_CAPABILITIES,
1683 	WMI_TAG_SOC_MAC_PHY_HW_MODE_CAPS,
1684 	WMI_TAG_HAL_REG_CAPABILITIES_EXT,
1685 	WMI_TAG_SOC_HAL_REG_CAPABILITIES,
1686 	WMI_TAG_VDEV_WISA_CMD,
1687 	WMI_TAG_TX_POWER_LEVEL_STATS_EVT,
1688 	WMI_TAG_SCAN_ADAPTIVE_DWELL_PARAMETERS_TLV,
1689 	WMI_TAG_SCAN_ADAPTIVE_DWELL_CONFIG,
1690 	WMI_TAG_WOW_SET_ACTION_WAKE_UP_CMD,
1691 	WMI_TAG_NDP_END_RSP_PER_NDI,
1692 	WMI_TAG_PEER_BWF_REQUEST,
1693 	WMI_TAG_BWF_PEER_INFO,
1694 	WMI_TAG_DBGLOG_TIME_STAMP_SYNC_CMD,
1695 	WMI_TAG_RMC_SET_LEADER_CMD,
1696 	WMI_TAG_RMC_MANUAL_LEADER_EVENT,
1697 	WMI_TAG_PER_CHAIN_RSSI_STATS,
1698 	WMI_TAG_RSSI_STATS,
1699 	WMI_TAG_P2P_LO_START_CMD,
1700 	WMI_TAG_P2P_LO_STOP_CMD,
1701 	WMI_TAG_P2P_LO_STOPPED_EVENT,
1702 	WMI_TAG_REORDER_QUEUE_SETUP_CMD,
1703 	WMI_TAG_REORDER_QUEUE_REMOVE_CMD,
1704 	WMI_TAG_SET_MULTIPLE_MCAST_FILTER_CMD,
1705 	WMI_TAG_MGMT_TX_COMPL_BUNDLE_EVENT,
1706 	WMI_TAG_READ_DATA_FROM_FLASH_CMD,
1707 	WMI_TAG_READ_DATA_FROM_FLASH_EVENT,
1708 	WMI_TAG_PDEV_SET_REORDER_TIMEOUT_VAL_CMD,
1709 	WMI_TAG_PEER_SET_RX_BLOCKSIZE_CMD,
1710 	WMI_TAG_PDEV_SET_WAKEUP_CONFIG_CMDID,
1711 	WMI_TAG_TLV_BUF_LEN_PARAM,
1712 	WMI_TAG_SERVICE_AVAILABLE_EVENT,
1713 	WMI_TAG_PEER_ANTDIV_INFO_REQ_CMD,
1714 	WMI_TAG_PEER_ANTDIV_INFO_EVENT,
1715 	WMI_TAG_PEER_ANTDIV_INFO,
1716 	WMI_TAG_PDEV_GET_ANTDIV_STATUS_CMD,
1717 	WMI_TAG_PDEV_ANTDIV_STATUS_EVENT,
1718 	WMI_TAG_MNT_FILTER_CMD,
1719 	WMI_TAG_GET_CHIP_POWER_STATS_CMD,
1720 	WMI_TAG_PDEV_CHIP_POWER_STATS_EVENT,
1721 	WMI_TAG_COEX_GET_ANTENNA_ISOLATION_CMD,
1722 	WMI_TAG_COEX_REPORT_ISOLATION_EVENT,
1723 	WMI_TAG_CHAN_CCA_STATS,
1724 	WMI_TAG_PEER_SIGNAL_STATS,
1725 	WMI_TAG_TX_STATS,
1726 	WMI_TAG_PEER_AC_TX_STATS,
1727 	WMI_TAG_RX_STATS,
1728 	WMI_TAG_PEER_AC_RX_STATS,
1729 	WMI_TAG_REPORT_STATS_EVENT,
1730 	WMI_TAG_CHAN_CCA_STATS_THRESH,
1731 	WMI_TAG_PEER_SIGNAL_STATS_THRESH,
1732 	WMI_TAG_TX_STATS_THRESH,
1733 	WMI_TAG_RX_STATS_THRESH,
1734 	WMI_TAG_PDEV_SET_STATS_THRESHOLD_CMD,
1735 	WMI_TAG_REQUEST_WLAN_STATS_CMD,
1736 	WMI_TAG_RX_AGGR_FAILURE_EVENT,
1737 	WMI_TAG_RX_AGGR_FAILURE_INFO,
1738 	WMI_TAG_VDEV_ENCRYPT_DECRYPT_DATA_REQ_CMD,
1739 	WMI_TAG_VDEV_ENCRYPT_DECRYPT_DATA_RESP_EVENT,
1740 	WMI_TAG_PDEV_BAND_TO_MAC,
1741 	WMI_TAG_TBTT_OFFSET_INFO,
1742 	WMI_TAG_TBTT_OFFSET_EXT_EVENT,
1743 	WMI_TAG_SAR_LIMITS_CMD,
1744 	WMI_TAG_SAR_LIMIT_CMD_ROW,
1745 	WMI_TAG_PDEV_DFS_PHYERR_OFFLOAD_ENABLE_CMD,
1746 	WMI_TAG_PDEV_DFS_PHYERR_OFFLOAD_DISABLE_CMD,
1747 	WMI_TAG_VDEV_ADFS_CH_CFG_CMD,
1748 	WMI_TAG_VDEV_ADFS_OCAC_ABORT_CMD,
1749 	WMI_TAG_PDEV_DFS_RADAR_DETECTION_EVENT,
1750 	WMI_TAG_VDEV_ADFS_OCAC_COMPLETE_EVENT,
1751 	WMI_TAG_VDEV_DFS_CAC_COMPLETE_EVENT,
1752 	WMI_TAG_VENDOR_OUI,
1753 	WMI_TAG_REQUEST_RCPI_CMD,
1754 	WMI_TAG_UPDATE_RCPI_EVENT,
1755 	WMI_TAG_REQUEST_PEER_STATS_INFO_CMD,
1756 	WMI_TAG_PEER_STATS_INFO,
1757 	WMI_TAG_PEER_STATS_INFO_EVENT,
1758 	WMI_TAG_PKGID_EVENT,
1759 	WMI_TAG_CONNECTED_NLO_RSSI_PARAMS,
1760 	WMI_TAG_SET_CURRENT_COUNTRY_CMD,
1761 	WMI_TAG_REGULATORY_RULE_STRUCT,
1762 	WMI_TAG_REG_CHAN_LIST_CC_EVENT,
1763 	WMI_TAG_11D_SCAN_START_CMD,
1764 	WMI_TAG_11D_SCAN_STOP_CMD,
1765 	WMI_TAG_11D_NEW_COUNTRY_EVENT,
1766 	WMI_TAG_REQUEST_RADIO_CHAN_STATS_CMD,
1767 	WMI_TAG_RADIO_CHAN_STATS,
1768 	WMI_TAG_RADIO_CHAN_STATS_EVENT,
1769 	WMI_TAG_ROAM_PER_CONFIG,
1770 	WMI_TAG_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_CMD,
1771 	WMI_TAG_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_STATUS_EVENT,
1772 	WMI_TAG_BPF_SET_VDEV_ACTIVE_MODE_CMD,
1773 	WMI_TAG_HW_DATA_FILTER_CMD,
1774 	WMI_TAG_CONNECTED_NLO_BSS_BAND_RSSI_PREF,
1775 	WMI_TAG_PEER_OPER_MODE_CHANGE_EVENT,
1776 	WMI_TAG_CHIP_POWER_SAVE_FAILURE_DETECTED,
1777 	WMI_TAG_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMD,
1778 	WMI_TAG_PDEV_CSA_SWITCH_COUNT_STATUS_EVENT,
1779 	WMI_TAG_PDEV_UPDATE_PKT_ROUTING_CMD,
1780 	WMI_TAG_PDEV_CHECK_CAL_VERSION_CMD,
1781 	WMI_TAG_PDEV_CHECK_CAL_VERSION_EVENT,
1782 	WMI_TAG_PDEV_SET_DIVERSITY_GAIN_CMD,
1783 	WMI_TAG_MAC_PHY_CHAINMASK_COMBO,
1784 	WMI_TAG_MAC_PHY_CHAINMASK_CAPABILITY,
1785 	WMI_TAG_VDEV_SET_ARP_STATS_CMD,
1786 	WMI_TAG_VDEV_GET_ARP_STATS_CMD,
1787 	WMI_TAG_VDEV_GET_ARP_STATS_EVENT,
1788 	WMI_TAG_IFACE_OFFLOAD_STATS,
1789 	WMI_TAG_REQUEST_STATS_CMD_SUB_STRUCT_PARAM,
1790 	WMI_TAG_RSSI_CTL_EXT,
1791 	WMI_TAG_SINGLE_PHYERR_EXT_RX_HDR,
1792 	WMI_TAG_COEX_BT_ACTIVITY_EVENT,
1793 	WMI_TAG_VDEV_GET_TX_POWER_CMD,
1794 	WMI_TAG_VDEV_TX_POWER_EVENT,
1795 	WMI_TAG_OFFCHAN_DATA_TX_COMPL_EVENT,
1796 	WMI_TAG_OFFCHAN_DATA_TX_SEND_CMD,
1797 	WMI_TAG_TX_SEND_PARAMS,
1798 	WMI_TAG_HE_RATE_SET,
1799 	WMI_TAG_CONGESTION_STATS,
1800 	WMI_TAG_SET_INIT_COUNTRY_CMD,
1801 	WMI_TAG_SCAN_DBS_DUTY_CYCLE,
1802 	WMI_TAG_SCAN_DBS_DUTY_CYCLE_PARAM_TLV,
1803 	WMI_TAG_PDEV_DIV_GET_RSSI_ANTID,
1804 	WMI_TAG_THERM_THROT_CONFIG_REQUEST,
1805 	WMI_TAG_THERM_THROT_LEVEL_CONFIG_INFO,
1806 	WMI_TAG_THERM_THROT_STATS_EVENT,
1807 	WMI_TAG_THERM_THROT_LEVEL_STATS_INFO,
1808 	WMI_TAG_PDEV_DIV_RSSI_ANTID_EVENT,
1809 	WMI_TAG_OEM_DMA_RING_CAPABILITIES,
1810 	WMI_TAG_OEM_DMA_RING_CFG_REQ,
1811 	WMI_TAG_OEM_DMA_RING_CFG_RSP,
1812 	WMI_TAG_OEM_INDIRECT_DATA,
1813 	WMI_TAG_OEM_DMA_BUF_RELEASE,
1814 	WMI_TAG_OEM_DMA_BUF_RELEASE_ENTRY,
1815 	WMI_TAG_PDEV_BSS_CHAN_INFO_REQUEST,
1816 	WMI_TAG_PDEV_BSS_CHAN_INFO_EVENT,
1817 	WMI_TAG_ROAM_LCA_DISALLOW_CONFIG,
1818 	WMI_TAG_VDEV_LIMIT_OFFCHAN_CMD,
1819 	WMI_TAG_ROAM_RSSI_REJECTION_OCE_CONFIG,
1820 	WMI_TAG_UNIT_TEST_EVENT,
1821 	WMI_TAG_ROAM_FILS_OFFLOAD,
1822 	WMI_TAG_PDEV_UPDATE_PMK_CACHE_CMD,
1823 	WMI_TAG_PMK_CACHE,
1824 	WMI_TAG_PDEV_UPDATE_FILS_HLP_PKT_CMD,
1825 	WMI_TAG_ROAM_FILS_SYNCH,
1826 	WMI_TAG_GTK_OFFLOAD_EXTENDED,
1827 	WMI_TAG_ROAM_BG_SCAN_ROAMING,
1828 	WMI_TAG_OIC_PING_OFFLOAD_PARAMS_CMD,
1829 	WMI_TAG_OIC_PING_OFFLOAD_SET_ENABLE_CMD,
1830 	WMI_TAG_OIC_PING_HANDOFF_EVENT,
1831 	WMI_TAG_DHCP_LEASE_RENEW_OFFLOAD_CMD,
1832 	WMI_TAG_DHCP_LEASE_RENEW_EVENT,
1833 	WMI_TAG_BTM_CONFIG,
1834 	WMI_TAG_DEBUG_MESG_FW_DATA_STALL,
1835 	WMI_TAG_WLM_CONFIG_CMD,
1836 	WMI_TAG_PDEV_UPDATE_CTLTABLE_REQUEST,
1837 	WMI_TAG_PDEV_UPDATE_CTLTABLE_EVENT,
1838 	WMI_TAG_ROAM_CND_SCORING_PARAM,
1839 	WMI_TAG_PDEV_CONFIG_VENDOR_OUI_ACTION,
1840 	WMI_TAG_VENDOR_OUI_EXT,
1841 	WMI_TAG_ROAM_SYNCH_FRAME_EVENT,
1842 	WMI_TAG_FD_SEND_FROM_HOST_CMD,
1843 	WMI_TAG_ENABLE_FILS_CMD,
1844 	WMI_TAG_HOST_SWFDA_EVENT,
1845 	WMI_TAG_BCN_OFFLOAD_CTRL_CMD,
1846 	WMI_TAG_PDEV_SET_AC_TX_QUEUE_OPTIMIZED_CMD,
1847 	WMI_TAG_STATS_PERIOD,
1848 	WMI_TAG_NDL_SCHEDULE_UPDATE,
1849 	WMI_TAG_PEER_TID_MSDUQ_QDEPTH_THRESH_UPDATE_CMD,
1850 	WMI_TAG_MSDUQ_QDEPTH_THRESH_UPDATE,
1851 	WMI_TAG_PDEV_SET_RX_FILTER_PROMISCUOUS_CMD,
1852 	WMI_TAG_SAR2_RESULT_EVENT,
1853 	WMI_TAG_SAR_CAPABILITIES,
1854 	WMI_TAG_SAP_OBSS_DETECTION_CFG_CMD,
1855 	WMI_TAG_SAP_OBSS_DETECTION_INFO_EVT,
1856 	WMI_TAG_DMA_RING_CAPABILITIES,
1857 	WMI_TAG_DMA_RING_CFG_REQ,
1858 	WMI_TAG_DMA_RING_CFG_RSP,
1859 	WMI_TAG_DMA_BUF_RELEASE,
1860 	WMI_TAG_DMA_BUF_RELEASE_ENTRY,
1861 	WMI_TAG_SAR_GET_LIMITS_CMD,
1862 	WMI_TAG_SAR_GET_LIMITS_EVENT,
1863 	WMI_TAG_SAR_GET_LIMITS_EVENT_ROW,
1864 	WMI_TAG_OFFLOAD_11K_REPORT,
1865 	WMI_TAG_INVOKE_NEIGHBOR_REPORT,
1866 	WMI_TAG_NEIGHBOR_REPORT_OFFLOAD,
1867 	WMI_TAG_VDEV_SET_CONNECTIVITY_CHECK_STATS,
1868 	WMI_TAG_VDEV_GET_CONNECTIVITY_CHECK_STATS,
1869 	WMI_TAG_BPF_SET_VDEV_ENABLE_CMD,
1870 	WMI_TAG_BPF_SET_VDEV_WORK_MEMORY_CMD,
1871 	WMI_TAG_BPF_GET_VDEV_WORK_MEMORY_CMD,
1872 	WMI_TAG_BPF_GET_VDEV_WORK_MEMORY_RESP_EVT,
1873 	WMI_TAG_PDEV_GET_NFCAL_POWER,
1874 	WMI_TAG_BSS_COLOR_CHANGE_ENABLE,
1875 	WMI_TAG_OBSS_COLOR_COLLISION_DET_CONFIG,
1876 	WMI_TAG_OBSS_COLOR_COLLISION_EVT,
1877 	WMI_TAG_RUNTIME_DPD_RECAL_CMD,
1878 	WMI_TAG_TWT_ENABLE_CMD,
1879 	WMI_TAG_TWT_DISABLE_CMD,
1880 	WMI_TAG_TWT_ADD_DIALOG_CMD,
1881 	WMI_TAG_TWT_DEL_DIALOG_CMD,
1882 	WMI_TAG_TWT_PAUSE_DIALOG_CMD,
1883 	WMI_TAG_TWT_RESUME_DIALOG_CMD,
1884 	WMI_TAG_TWT_ENABLE_COMPLETE_EVENT,
1885 	WMI_TAG_TWT_DISABLE_COMPLETE_EVENT,
1886 	WMI_TAG_TWT_ADD_DIALOG_COMPLETE_EVENT,
1887 	WMI_TAG_TWT_DEL_DIALOG_COMPLETE_EVENT,
1888 	WMI_TAG_TWT_PAUSE_DIALOG_COMPLETE_EVENT,
1889 	WMI_TAG_TWT_RESUME_DIALOG_COMPLETE_EVENT,
1890 	WMI_TAG_REQUEST_ROAM_SCAN_STATS_CMD,
1891 	WMI_TAG_ROAM_SCAN_STATS_EVENT,
1892 	WMI_TAG_PEER_TID_CONFIGURATIONS_CMD,
1893 	WMI_TAG_VDEV_SET_CUSTOM_SW_RETRY_TH_CMD,
1894 	WMI_TAG_GET_TPC_POWER_CMD,
1895 	WMI_TAG_GET_TPC_POWER_EVENT,
1896 	WMI_TAG_DMA_BUF_RELEASE_SPECTRAL_META_DATA,
1897 	WMI_TAG_MOTION_DET_CONFIG_PARAMS_CMD,
1898 	WMI_TAG_MOTION_DET_BASE_LINE_CONFIG_PARAMS_CMD,
1899 	WMI_TAG_MOTION_DET_START_STOP_CMD,
1900 	WMI_TAG_MOTION_DET_BASE_LINE_START_STOP_CMD,
1901 	WMI_TAG_MOTION_DET_EVENT,
1902 	WMI_TAG_MOTION_DET_BASE_LINE_EVENT,
1903 	WMI_TAG_NDP_TRANSPORT_IP,
1904 	WMI_TAG_OBSS_SPATIAL_REUSE_SET_CMD,
1905 	WMI_TAG_ESP_ESTIMATE_EVENT,
1906 	WMI_TAG_NAN_HOST_CONFIG,
1907 	WMI_TAG_SPECTRAL_BIN_SCALING_PARAMS,
1908 	WMI_TAG_PEER_CFR_CAPTURE_CMD,
1909 	WMI_TAG_PEER_CHAN_WIDTH_SWITCH_CMD,
1910 	WMI_TAG_CHAN_WIDTH_PEER_LIST,
1911 	WMI_TAG_OBSS_SPATIAL_REUSE_SET_DEF_OBSS_THRESH_CMD,
1912 	WMI_TAG_PDEV_HE_TB_ACTION_FRM_CMD,
1913 	WMI_TAG_PEER_EXTD2_STATS,
1914 	WMI_TAG_HPCS_PULSE_START_CMD,
1915 	WMI_TAG_PDEV_CTL_FAILSAFE_CHECK_EVENT,
1916 	WMI_TAG_VDEV_CHAINMASK_CONFIG_CMD,
1917 	WMI_TAG_VDEV_BCN_OFFLOAD_QUIET_CONFIG_CMD,
1918 	WMI_TAG_NAN_EVENT_INFO,
1919 	WMI_TAG_NDP_CHANNEL_INFO,
1920 	WMI_TAG_NDP_CMD,
1921 	WMI_TAG_NDP_EVENT,
1922 	/* TODO add all the missing cmds */
1923 	WMI_TAG_PDEV_PEER_PKTLOG_FILTER_CMD = 0x301,
1924 	WMI_TAG_PDEV_PEER_PKTLOG_FILTER_INFO,
1925 	WMI_TAG_SERVICE_READY_EXT2_EVENT = 0x334,
1926 	WMI_TAG_FILS_DISCOVERY_TMPL_CMD = 0x344,
1927 	WMI_TAG_MAC_PHY_CAPABILITIES_EXT = 0x36F,
1928 	WMI_TAG_REGULATORY_RULE_EXT_STRUCT = 0x3A9,
1929 	WMI_TAG_REG_CHAN_LIST_CC_EXT_EVENT,
1930 	WMI_TAG_EHT_RATE_SET = 0x3C4,
1931 	WMI_TAG_PDEV_SET_BIOS_SAR_TABLE_CMD = 0x3D8,
1932 	WMI_TAG_PDEV_SET_BIOS_GEO_TABLE_CMD = 0x3D9,
1933 	WMI_TAG_PDEV_SET_BIOS_INTERFACE_CMD = 0x3FB,
1934 	WMI_TAG_MAX
1935 };
1936 
1937 enum wmi_tlv_service {
1938 	WMI_TLV_SERVICE_BEACON_OFFLOAD = 0,
1939 	WMI_TLV_SERVICE_SCAN_OFFLOAD = 1,
1940 	WMI_TLV_SERVICE_ROAM_SCAN_OFFLOAD = 2,
1941 	WMI_TLV_SERVICE_BCN_MISS_OFFLOAD = 3,
1942 	WMI_TLV_SERVICE_STA_PWRSAVE = 4,
1943 	WMI_TLV_SERVICE_STA_ADVANCED_PWRSAVE = 5,
1944 	WMI_TLV_SERVICE_AP_UAPSD = 6,
1945 	WMI_TLV_SERVICE_AP_DFS = 7,
1946 	WMI_TLV_SERVICE_11AC = 8,
1947 	WMI_TLV_SERVICE_BLOCKACK = 9,
1948 	WMI_TLV_SERVICE_PHYERR = 10,
1949 	WMI_TLV_SERVICE_BCN_FILTER = 11,
1950 	WMI_TLV_SERVICE_RTT = 12,
1951 	WMI_TLV_SERVICE_WOW = 13,
1952 	WMI_TLV_SERVICE_RATECTRL_CACHE = 14,
1953 	WMI_TLV_SERVICE_IRAM_TIDS = 15,
1954 	WMI_TLV_SERVICE_ARPNS_OFFLOAD = 16,
1955 	WMI_TLV_SERVICE_NLO = 17,
1956 	WMI_TLV_SERVICE_GTK_OFFLOAD = 18,
1957 	WMI_TLV_SERVICE_SCAN_SCH = 19,
1958 	WMI_TLV_SERVICE_CSA_OFFLOAD = 20,
1959 	WMI_TLV_SERVICE_CHATTER = 21,
1960 	WMI_TLV_SERVICE_COEX_FREQAVOID = 22,
1961 	WMI_TLV_SERVICE_PACKET_POWER_SAVE = 23,
1962 	WMI_TLV_SERVICE_FORCE_FW_HANG = 24,
1963 	WMI_TLV_SERVICE_GPIO = 25,
1964 	WMI_TLV_SERVICE_STA_DTIM_PS_MODULATED_DTIM = 26,
1965 	WMI_STA_UAPSD_BASIC_AUTO_TRIG = 27,
1966 	WMI_STA_UAPSD_VAR_AUTO_TRIG = 28,
1967 	WMI_TLV_SERVICE_STA_KEEP_ALIVE = 29,
1968 	WMI_TLV_SERVICE_TX_ENCAP = 30,
1969 	WMI_TLV_SERVICE_AP_PS_DETECT_OUT_OF_SYNC = 31,
1970 	WMI_TLV_SERVICE_EARLY_RX = 32,
1971 	WMI_TLV_SERVICE_STA_SMPS = 33,
1972 	WMI_TLV_SERVICE_FWTEST = 34,
1973 	WMI_TLV_SERVICE_STA_WMMAC = 35,
1974 	WMI_TLV_SERVICE_TDLS = 36,
1975 	WMI_TLV_SERVICE_BURST = 37,
1976 	WMI_TLV_SERVICE_MCC_BCN_INTERVAL_CHANGE = 38,
1977 	WMI_TLV_SERVICE_ADAPTIVE_OCS = 39,
1978 	WMI_TLV_SERVICE_BA_SSN_SUPPORT = 40,
1979 	WMI_TLV_SERVICE_FILTER_IPSEC_NATKEEPALIVE = 41,
1980 	WMI_TLV_SERVICE_WLAN_HB = 42,
1981 	WMI_TLV_SERVICE_LTE_ANT_SHARE_SUPPORT = 43,
1982 	WMI_TLV_SERVICE_BATCH_SCAN = 44,
1983 	WMI_TLV_SERVICE_QPOWER = 45,
1984 	WMI_TLV_SERVICE_PLMREQ = 46,
1985 	WMI_TLV_SERVICE_THERMAL_MGMT = 47,
1986 	WMI_TLV_SERVICE_RMC = 48,
1987 	WMI_TLV_SERVICE_MHF_OFFLOAD = 49,
1988 	WMI_TLV_SERVICE_COEX_SAR = 50,
1989 	WMI_TLV_SERVICE_BCN_TXRATE_OVERRIDE = 51,
1990 	WMI_TLV_SERVICE_NAN = 52,
1991 	WMI_TLV_SERVICE_L1SS_STAT = 53,
1992 	WMI_TLV_SERVICE_ESTIMATE_LINKSPEED = 54,
1993 	WMI_TLV_SERVICE_OBSS_SCAN = 55,
1994 	WMI_TLV_SERVICE_TDLS_OFFCHAN = 56,
1995 	WMI_TLV_SERVICE_TDLS_UAPSD_BUFFER_STA = 57,
1996 	WMI_TLV_SERVICE_TDLS_UAPSD_SLEEP_STA = 58,
1997 	WMI_TLV_SERVICE_IBSS_PWRSAVE = 59,
1998 	WMI_TLV_SERVICE_LPASS = 60,
1999 	WMI_TLV_SERVICE_EXTSCAN = 61,
2000 	WMI_TLV_SERVICE_D0WOW = 62,
2001 	WMI_TLV_SERVICE_HSOFFLOAD = 63,
2002 	WMI_TLV_SERVICE_ROAM_HO_OFFLOAD = 64,
2003 	WMI_TLV_SERVICE_RX_FULL_REORDER = 65,
2004 	WMI_TLV_SERVICE_DHCP_OFFLOAD = 66,
2005 	WMI_TLV_SERVICE_STA_RX_IPA_OFFLOAD_SUPPORT = 67,
2006 	WMI_TLV_SERVICE_MDNS_OFFLOAD = 68,
2007 	WMI_TLV_SERVICE_SAP_AUTH_OFFLOAD = 69,
2008 	WMI_TLV_SERVICE_DUAL_BAND_SIMULTANEOUS_SUPPORT = 70,
2009 	WMI_TLV_SERVICE_OCB = 71,
2010 	WMI_TLV_SERVICE_AP_ARPNS_OFFLOAD = 72,
2011 	WMI_TLV_SERVICE_PER_BAND_CHAINMASK_SUPPORT = 73,
2012 	WMI_TLV_SERVICE_PACKET_FILTER_OFFLOAD = 74,
2013 	WMI_TLV_SERVICE_MGMT_TX_HTT = 75,
2014 	WMI_TLV_SERVICE_MGMT_TX_WMI = 76,
2015 	WMI_TLV_SERVICE_EXT_MSG = 77,
2016 	WMI_TLV_SERVICE_MAWC = 78,
2017 	WMI_TLV_SERVICE_PEER_ASSOC_CONF = 79,
2018 	WMI_TLV_SERVICE_EGAP = 80,
2019 	WMI_TLV_SERVICE_STA_PMF_OFFLOAD = 81,
2020 	WMI_TLV_SERVICE_UNIFIED_WOW_CAPABILITY = 82,
2021 	WMI_TLV_SERVICE_ENHANCED_PROXY_STA = 83,
2022 	WMI_TLV_SERVICE_ATF = 84,
2023 	WMI_TLV_SERVICE_COEX_GPIO = 85,
2024 	WMI_TLV_SERVICE_AUX_SPECTRAL_INTF = 86,
2025 	WMI_TLV_SERVICE_AUX_CHAN_LOAD_INTF = 87,
2026 	WMI_TLV_SERVICE_BSS_CHANNEL_INFO_64 = 88,
2027 	WMI_TLV_SERVICE_ENTERPRISE_MESH = 89,
2028 	WMI_TLV_SERVICE_RESTRT_CHNL_SUPPORT = 90,
2029 	WMI_TLV_SERVICE_BPF_OFFLOAD = 91,
2030 	WMI_TLV_SERVICE_SYNC_DELETE_CMDS = 92,
2031 	WMI_TLV_SERVICE_SMART_ANTENNA_SW_SUPPORT = 93,
2032 	WMI_TLV_SERVICE_SMART_ANTENNA_HW_SUPPORT = 94,
2033 	WMI_TLV_SERVICE_RATECTRL_LIMIT_MAX_MIN_RATES = 95,
2034 	WMI_TLV_SERVICE_NAN_DATA = 96,
2035 	WMI_TLV_SERVICE_NAN_RTT = 97,
2036 	WMI_TLV_SERVICE_11AX = 98,
2037 	WMI_TLV_SERVICE_DEPRECATED_REPLACE = 99,
2038 	WMI_TLV_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE = 100,
2039 	WMI_TLV_SERVICE_ENHANCED_MCAST_FILTER = 101,
2040 	WMI_TLV_SERVICE_PERIODIC_CHAN_STAT_SUPPORT = 102,
2041 	WMI_TLV_SERVICE_MESH_11S = 103,
2042 	WMI_TLV_SERVICE_HALF_RATE_QUARTER_RATE_SUPPORT = 104,
2043 	WMI_TLV_SERVICE_VDEV_RX_FILTER = 105,
2044 	WMI_TLV_SERVICE_P2P_LISTEN_OFFLOAD_SUPPORT = 106,
2045 	WMI_TLV_SERVICE_MARK_FIRST_WAKEUP_PACKET = 107,
2046 	WMI_TLV_SERVICE_MULTIPLE_MCAST_FILTER_SET = 108,
2047 	WMI_TLV_SERVICE_HOST_MANAGED_RX_REORDER = 109,
2048 	WMI_TLV_SERVICE_FLASH_RDWR_SUPPORT = 110,
2049 	WMI_TLV_SERVICE_WLAN_STATS_REPORT = 111,
2050 	WMI_TLV_SERVICE_TX_MSDU_ID_NEW_PARTITION_SUPPORT = 112,
2051 	WMI_TLV_SERVICE_DFS_PHYERR_OFFLOAD = 113,
2052 	WMI_TLV_SERVICE_RCPI_SUPPORT = 114,
2053 	WMI_TLV_SERVICE_FW_MEM_DUMP_SUPPORT = 115,
2054 	WMI_TLV_SERVICE_PEER_STATS_INFO = 116,
2055 	WMI_TLV_SERVICE_REGULATORY_DB = 117,
2056 	WMI_TLV_SERVICE_11D_OFFLOAD = 118,
2057 	WMI_TLV_SERVICE_HW_DATA_FILTERING = 119,
2058 	WMI_TLV_SERVICE_MULTIPLE_VDEV_RESTART = 120,
2059 	WMI_TLV_SERVICE_PKT_ROUTING = 121,
2060 	WMI_TLV_SERVICE_CHECK_CAL_VERSION = 122,
2061 	WMI_TLV_SERVICE_OFFCHAN_TX_WMI = 123,
2062 	WMI_TLV_SERVICE_8SS_TX_BFEE  = 124,
2063 	WMI_TLV_SERVICE_EXTENDED_NSS_SUPPORT = 125,
2064 	WMI_TLV_SERVICE_ACK_TIMEOUT = 126,
2065 	WMI_TLV_SERVICE_PDEV_BSS_CHANNEL_INFO_64 = 127,
2066 
2067 	WMI_MAX_SERVICE = 128,
2068 
2069 	WMI_TLV_SERVICE_CHAN_LOAD_INFO = 128,
2070 	WMI_TLV_SERVICE_TX_PPDU_INFO_STATS_SUPPORT = 129,
2071 	WMI_TLV_SERVICE_VDEV_LIMIT_OFFCHAN_SUPPORT = 130,
2072 	WMI_TLV_SERVICE_FILS_SUPPORT = 131,
2073 	WMI_TLV_SERVICE_WLAN_OIC_PING_OFFLOAD = 132,
2074 	WMI_TLV_SERVICE_WLAN_DHCP_RENEW = 133,
2075 	WMI_TLV_SERVICE_MAWC_SUPPORT = 134,
2076 	WMI_TLV_SERVICE_VDEV_LATENCY_CONFIG = 135,
2077 	WMI_TLV_SERVICE_PDEV_UPDATE_CTLTABLE_SUPPORT = 136,
2078 	WMI_TLV_SERVICE_PKTLOG_SUPPORT_OVER_HTT = 137,
2079 	WMI_TLV_SERVICE_VDEV_MULTI_GROUP_KEY_SUPPORT = 138,
2080 	WMI_TLV_SERVICE_SCAN_PHYMODE_SUPPORT = 139,
2081 	WMI_TLV_SERVICE_THERM_THROT = 140,
2082 	WMI_TLV_SERVICE_BCN_OFFLOAD_START_STOP_SUPPORT = 141,
2083 	WMI_TLV_SERVICE_WOW_WAKEUP_BY_TIMER_PATTERN = 142,
2084 	WMI_TLV_SERVICE_PEER_MAP_UNMAP_V2_SUPPORT = 143,
2085 	WMI_TLV_SERVICE_OFFCHAN_DATA_TID_SUPPORT = 144,
2086 	WMI_TLV_SERVICE_RX_PROMISC_ENABLE_SUPPORT = 145,
2087 	WMI_TLV_SERVICE_SUPPORT_DIRECT_DMA = 146,
2088 	WMI_TLV_SERVICE_AP_OBSS_DETECTION_OFFLOAD = 147,
2089 	WMI_TLV_SERVICE_11K_NEIGHBOUR_REPORT_SUPPORT = 148,
2090 	WMI_TLV_SERVICE_LISTEN_INTERVAL_OFFLOAD_SUPPORT = 149,
2091 	WMI_TLV_SERVICE_BSS_COLOR_OFFLOAD = 150,
2092 	WMI_TLV_SERVICE_RUNTIME_DPD_RECAL = 151,
2093 	WMI_TLV_SERVICE_STA_TWT = 152,
2094 	WMI_TLV_SERVICE_AP_TWT = 153,
2095 	WMI_TLV_SERVICE_GMAC_OFFLOAD_SUPPORT = 154,
2096 	WMI_TLV_SERVICE_SPOOF_MAC_SUPPORT = 155,
2097 	WMI_TLV_SERVICE_PEER_TID_CONFIGS_SUPPORT = 156,
2098 	WMI_TLV_SERVICE_VDEV_SWRETRY_PER_AC_CONFIG_SUPPORT = 157,
2099 	WMI_TLV_SERVICE_DUAL_BEACON_ON_SINGLE_MAC_SCC_SUPPORT = 158,
2100 	WMI_TLV_SERVICE_DUAL_BEACON_ON_SINGLE_MAC_MCC_SUPPORT = 159,
2101 	WMI_TLV_SERVICE_MOTION_DET = 160,
2102 	WMI_TLV_SERVICE_INFRA_MBSSID = 161,
2103 	WMI_TLV_SERVICE_OBSS_SPATIAL_REUSE = 162,
2104 	WMI_TLV_SERVICE_VDEV_DIFFERENT_BEACON_INTERVAL_SUPPORT = 163,
2105 	WMI_TLV_SERVICE_NAN_DBS_SUPPORT = 164,
2106 	WMI_TLV_SERVICE_NDI_DBS_SUPPORT = 165,
2107 	WMI_TLV_SERVICE_NAN_SAP_SUPPORT = 166,
2108 	WMI_TLV_SERVICE_NDI_SAP_SUPPORT = 167,
2109 	WMI_TLV_SERVICE_CFR_CAPTURE_SUPPORT = 168,
2110 	WMI_TLV_SERVICE_CFR_CAPTURE_IND_MSG_TYPE_1 = 169,
2111 	WMI_TLV_SERVICE_ESP_SUPPORT = 170,
2112 	WMI_TLV_SERVICE_PEER_CHWIDTH_CHANGE = 171,
2113 	WMI_TLV_SERVICE_WLAN_HPCS_PULSE = 172,
2114 	WMI_TLV_SERVICE_PER_VDEV_CHAINMASK_CONFIG_SUPPORT = 173,
2115 	WMI_TLV_SERVICE_TX_DATA_MGMT_ACK_RSSI = 174,
2116 	WMI_TLV_SERVICE_NAN_DISABLE_SUPPORT = 175,
2117 	WMI_TLV_SERVICE_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN = 176,
2118 	WMI_TLV_SERVICE_COEX_SUPPORT_UNEQUAL_ISOLATION = 177,
2119 	WMI_TLV_SERVICE_HW_DB2DBM_CONVERSION_SUPPORT = 178,
2120 	WMI_TLV_SERVICE_SUPPORT_EXTEND_ADDRESS = 179,
2121 	WMI_TLV_SERVICE_BEACON_RECEPTION_STATS = 180,
2122 	WMI_TLV_SERVICE_FETCH_TX_PN = 181,
2123 	WMI_TLV_SERVICE_PEER_UNMAP_RESPONSE_SUPPORT = 182,
2124 	WMI_TLV_SERVICE_TX_PER_PEER_AMPDU_SIZE = 183,
2125 	WMI_TLV_SERVICE_BSS_COLOR_SWITCH_COUNT = 184,
2126 	WMI_TLV_SERVICE_HTT_PEER_STATS_SUPPORT = 185,
2127 	WMI_TLV_SERVICE_UL_RU26_ALLOWED = 186,
2128 	WMI_TLV_SERVICE_GET_MWS_COEX_STATE = 187,
2129 	WMI_TLV_SERVICE_GET_MWS_DPWB_STATE = 188,
2130 	WMI_TLV_SERVICE_GET_MWS_TDM_STATE = 189,
2131 	WMI_TLV_SERVICE_GET_MWS_IDRX_STATE = 190,
2132 	WMI_TLV_SERVICE_GET_MWS_ANTENNA_SHARING_STATE = 191,
2133 	WMI_TLV_SERVICE_ENHANCED_TPC_CONFIG_EVENT = 192,
2134 	WMI_TLV_SERVICE_WLM_STATS_REQUEST = 193,
2135 	WMI_TLV_SERVICE_EXT_PEER_TID_CONFIGS_SUPPORT = 194,
2136 	WMI_TLV_SERVICE_WPA3_FT_SAE_SUPPORT = 195,
2137 	WMI_TLV_SERVICE_WPA3_FT_SUITE_B_SUPPORT = 196,
2138 	WMI_TLV_SERVICE_VOW_ENABLE = 197,
2139 	WMI_TLV_SERVICE_CFR_CAPTURE_IND_EVT_TYPE_1 = 198,
2140 	WMI_TLV_SERVICE_BROADCAST_TWT = 199,
2141 	WMI_TLV_SERVICE_RAP_DETECTION_SUPPORT = 200,
2142 	WMI_TLV_SERVICE_PS_TDCC = 201,
2143 	WMI_TLV_SERVICE_THREE_WAY_COEX_CONFIG_LEGACY   = 202,
2144 	WMI_TLV_SERVICE_THREE_WAY_COEX_CONFIG_OVERRIDE = 203,
2145 	WMI_TLV_SERVICE_TX_PWR_PER_PEER = 204,
2146 	WMI_TLV_SERVICE_STA_PLUS_STA_SUPPORT = 205,
2147 	WMI_TLV_SERVICE_WPA3_FT_FILS = 206,
2148 	WMI_TLV_SERVICE_ADAPTIVE_11R_ROAM = 207,
2149 	WMI_TLV_SERVICE_CHAN_RF_CHARACTERIZATION_INFO = 208,
2150 	WMI_TLV_SERVICE_FW_IFACE_COMBINATION_SUPPORT = 209,
2151 	WMI_TLV_SERVICE_TX_COMPL_TSF64 = 210,
2152 	WMI_TLV_SERVICE_DSM_ROAM_FILTER = 211,
2153 	WMI_TLV_SERVICE_PACKET_CAPTURE_SUPPORT = 212,
2154 	WMI_TLV_SERVICE_PER_PEER_HTT_STATS_RESET = 213,
2155 	WMI_TLV_SERVICE_FREQINFO_IN_METADATA = 219,
2156 	WMI_TLV_SERVICE_EXT2_MSG = 220,
2157 
2158 	WMI_MAX_EXT_SERVICE = 256,
2159 
2160 	WMI_TLV_SERVICE_REG_CC_EXT_EVENT_SUPPORT = 281,
2161 
2162 	WMI_TLV_SERVICE_11BE = 289,
2163 
2164 	WMI_TLV_SERVICE_WMSK_COMPACTION_RX_TLVS = 361,
2165 
2166 	WMI_TLV_SERVICE_PEER_METADATA_V1A_V1B_SUPPORT = 365,
2167 
2168 	WMI_MAX_EXT2_SERVICE,
2169 };
2170 
2171 enum {
2172 	WMI_SMPS_FORCED_MODE_NONE = 0,
2173 	WMI_SMPS_FORCED_MODE_DISABLED,
2174 	WMI_SMPS_FORCED_MODE_STATIC,
2175 	WMI_SMPS_FORCED_MODE_DYNAMIC
2176 };
2177 
2178 enum wmi_tpc_chainmask {
2179 	WMI_TPC_CHAINMASK_CONFIG_BAND_2G = 0,
2180 	WMI_TPC_CHAINMASK_CONFIG_BAND_5G = 1,
2181 	WMI_NUM_SUPPORTED_BAND_MAX = 2,
2182 };
2183 
2184 enum wmi_peer_param {
2185 	WMI_PEER_MIMO_PS_STATE = 1,
2186 	WMI_PEER_AMPDU = 2,
2187 	WMI_PEER_AUTHORIZE = 3,
2188 	WMI_PEER_CHWIDTH = 4,
2189 	WMI_PEER_NSS = 5,
2190 	WMI_PEER_USE_4ADDR = 6,
2191 	WMI_PEER_MEMBERSHIP = 7,
2192 	WMI_PEER_USERPOS = 8,
2193 	WMI_PEER_CRIT_PROTO_HINT_ENABLED = 9,
2194 	WMI_PEER_TX_FAIL_CNT_THR = 10,
2195 	WMI_PEER_SET_HW_RETRY_CTS2S = 11,
2196 	WMI_PEER_IBSS_ATIM_WINDOW_LENGTH = 12,
2197 	WMI_PEER_PHYMODE = 13,
2198 	WMI_PEER_USE_FIXED_PWR = 14,
2199 	WMI_PEER_PARAM_FIXED_RATE = 15,
2200 	WMI_PEER_SET_MU_WHITELIST = 16,
2201 	WMI_PEER_SET_MAX_TX_RATE = 17,
2202 	WMI_PEER_SET_MIN_TX_RATE = 18,
2203 	WMI_PEER_SET_DEFAULT_ROUTING = 19,
2204 	WMI_PEER_CHWIDTH_PUNCTURE_20MHZ_BITMAP = 39,
2205 };
2206 
2207 #define WMI_PEER_PUNCTURE_BITMAP		GENMASK(23, 8)
2208 
2209 enum wmi_slot_time {
2210 	WMI_VDEV_SLOT_TIME_LONG = 1,
2211 	WMI_VDEV_SLOT_TIME_SHORT = 2,
2212 };
2213 
2214 enum wmi_preamble {
2215 	WMI_VDEV_PREAMBLE_LONG = 1,
2216 	WMI_VDEV_PREAMBLE_SHORT = 2,
2217 };
2218 
2219 enum wmi_peer_smps_state {
2220 	WMI_PEER_SMPS_PS_NONE =	0,
2221 	WMI_PEER_SMPS_STATIC  = 1,
2222 	WMI_PEER_SMPS_DYNAMIC = 2
2223 };
2224 
2225 enum wmi_peer_chwidth {
2226 	WMI_PEER_CHWIDTH_20MHZ = 0,
2227 	WMI_PEER_CHWIDTH_40MHZ = 1,
2228 	WMI_PEER_CHWIDTH_80MHZ = 2,
2229 	WMI_PEER_CHWIDTH_160MHZ = 3,
2230 	WMI_PEER_CHWIDTH_320MHZ = 4,
2231 };
2232 
2233 enum wmi_beacon_gen_mode {
2234 	WMI_BEACON_STAGGERED_MODE = 0,
2235 	WMI_BEACON_BURST_MODE = 1
2236 };
2237 
2238 enum wmi_direct_buffer_module {
2239 	WMI_DIRECT_BUF_SPECTRAL = 0,
2240 	WMI_DIRECT_BUF_CFR = 1,
2241 
2242 	/* keep it last */
2243 	WMI_DIRECT_BUF_MAX
2244 };
2245 
2246 struct ath12k_wmi_pdev_band_arg {
2247 	u32 pdev_id;
2248 	u32 start_freq;
2249 	u32 end_freq;
2250 };
2251 
2252 struct ath12k_wmi_ppe_threshold_arg {
2253 	u32 numss_m1;
2254 	u32 ru_bit_mask;
2255 	u32 ppet16_ppet8_ru3_ru0[WMI_MAX_NUM_SS];
2256 };
2257 
2258 #define PSOC_HOST_MAX_PHY_SIZE (3)
2259 #define ATH12K_11B_SUPPORT                 BIT(0)
2260 #define ATH12K_11G_SUPPORT                 BIT(1)
2261 #define ATH12K_11A_SUPPORT                 BIT(2)
2262 #define ATH12K_11N_SUPPORT                 BIT(3)
2263 #define ATH12K_11AC_SUPPORT                BIT(4)
2264 #define ATH12K_11AX_SUPPORT                BIT(5)
2265 
2266 struct ath12k_wmi_hal_reg_capabilities_ext_arg {
2267 	u32 phy_id;
2268 	u32 eeprom_reg_domain;
2269 	u32 eeprom_reg_domain_ext;
2270 	u32 regcap1;
2271 	u32 regcap2;
2272 	u32 wireless_modes;
2273 	u32 low_2ghz_chan;
2274 	u32 high_2ghz_chan;
2275 	u32 low_5ghz_chan;
2276 	u32 high_5ghz_chan;
2277 };
2278 
2279 #define WMI_HOST_MAX_PDEV 3
2280 
2281 struct ath12k_wmi_host_mem_chunk_params {
2282 	__le32 tlv_header;
2283 	__le32 req_id;
2284 	__le32 ptr;
2285 	__le32 size;
2286 } __packed;
2287 
2288 struct ath12k_wmi_host_mem_chunk_arg {
2289 	void *vaddr;
2290 	dma_addr_t paddr;
2291 	u32 len;
2292 	u32 req_id;
2293 };
2294 
2295 struct ath12k_wmi_resource_config_arg {
2296 	u32 num_vdevs;
2297 	u32 num_peers;
2298 	u32 num_active_peers;
2299 	u32 num_offload_peers;
2300 	u32 num_offload_reorder_buffs;
2301 	u32 num_peer_keys;
2302 	u32 num_tids;
2303 	u32 ast_skid_limit;
2304 	u32 tx_chain_mask;
2305 	u32 rx_chain_mask;
2306 	u32 rx_timeout_pri[4];
2307 	u32 rx_decap_mode;
2308 	u32 scan_max_pending_req;
2309 	u32 bmiss_offload_max_vdev;
2310 	u32 roam_offload_max_vdev;
2311 	u32 roam_offload_max_ap_profiles;
2312 	u32 num_mcast_groups;
2313 	u32 num_mcast_table_elems;
2314 	u32 mcast2ucast_mode;
2315 	u32 tx_dbg_log_size;
2316 	u32 num_wds_entries;
2317 	u32 dma_burst_size;
2318 	u32 mac_aggr_delim;
2319 	u32 rx_skip_defrag_timeout_dup_detection_check;
2320 	u32 vow_config;
2321 	u32 gtk_offload_max_vdev;
2322 	u32 num_msdu_desc;
2323 	u32 max_frag_entries;
2324 	u32 max_peer_ext_stats;
2325 	u32 smart_ant_cap;
2326 	u32 bk_minfree;
2327 	u32 be_minfree;
2328 	u32 vi_minfree;
2329 	u32 vo_minfree;
2330 	u32 rx_batchmode;
2331 	u32 tt_support;
2332 	u32 atf_config;
2333 	u32 iphdr_pad_config;
2334 	u32 qwrap_config:16,
2335 	    alloc_frag_desc_for_data_pkt:16;
2336 	u32 num_tdls_vdevs;
2337 	u32 num_tdls_conn_table_entries;
2338 	u32 beacon_tx_offload_max_vdev;
2339 	u32 num_multicast_filter_entries;
2340 	u32 num_wow_filters;
2341 	u32 num_keep_alive_pattern;
2342 	u32 keep_alive_pattern_size;
2343 	u32 max_tdls_concurrent_sleep_sta;
2344 	u32 max_tdls_concurrent_buffer_sta;
2345 	u32 wmi_send_separate;
2346 	u32 num_ocb_vdevs;
2347 	u32 num_ocb_channels;
2348 	u32 num_ocb_schedules;
2349 	u32 num_ns_ext_tuples_cfg;
2350 	u32 bpf_instruction_size;
2351 	u32 max_bssid_rx_filters;
2352 	u32 use_pdev_id;
2353 	u32 peer_map_unmap_version;
2354 	u32 sched_params;
2355 	u32 twt_ap_pdev_count;
2356 	u32 twt_ap_sta_count;
2357 	bool is_reg_cc_ext_event_supported;
2358 	u8  dp_peer_meta_data_ver;
2359 };
2360 
2361 struct ath12k_wmi_init_cmd_arg {
2362 	struct ath12k_wmi_resource_config_arg res_cfg;
2363 	u8 num_mem_chunks;
2364 	struct ath12k_wmi_host_mem_chunk_arg *mem_chunks;
2365 	u32 hw_mode_id;
2366 	u32 num_band_to_mac;
2367 	struct ath12k_wmi_pdev_band_arg band_to_mac[WMI_HOST_MAX_PDEV];
2368 };
2369 
2370 struct ath12k_wmi_pdev_band_to_mac_params {
2371 	__le32 tlv_header;
2372 	__le32 pdev_id;
2373 	__le32 start_freq;
2374 	__le32 end_freq;
2375 } __packed;
2376 
2377 /* This is both individual command WMI_PDEV_SET_HW_MODE_CMDID and also part
2378  * of WMI_TAG_INIT_CMD.
2379  */
2380 struct ath12k_wmi_pdev_set_hw_mode_cmd {
2381 	__le32 tlv_header;
2382 	__le32 pdev_id;
2383 	__le32 hw_mode_index;
2384 	__le32 num_band_to_mac;
2385 } __packed;
2386 
2387 struct ath12k_wmi_ppe_threshold_params {
2388 	__le32 numss_m1; /** NSS - 1*/
2389 	__le32 ru_info;
2390 	__le32 ppet16_ppet8_ru3_ru0[WMI_MAX_NUM_SS];
2391 } __packed;
2392 
2393 #define HW_BD_INFO_SIZE       5
2394 
2395 struct ath12k_wmi_abi_version_params {
2396 	__le32 abi_version_0;
2397 	__le32 abi_version_1;
2398 	__le32 abi_version_ns_0;
2399 	__le32 abi_version_ns_1;
2400 	__le32 abi_version_ns_2;
2401 	__le32 abi_version_ns_3;
2402 } __packed;
2403 
2404 struct wmi_init_cmd {
2405 	__le32 tlv_header;
2406 	struct ath12k_wmi_abi_version_params host_abi_vers;
2407 	__le32 num_host_mem_chunks;
2408 } __packed;
2409 
2410 #define WMI_RSRC_CFG_HOST_SVC_FLAG_REG_CC_EXT_SUPPORT_BIT 4
2411 #define WMI_RSRC_CFG_FLAGS2_RX_PEER_METADATA_VERSION		GENMASK(5, 4)
2412 #define WMI_RSRC_CFG_FLAG1_BSS_CHANNEL_INFO_64	BIT(5)
2413 
2414 struct ath12k_wmi_resource_config_params {
2415 	__le32 tlv_header;
2416 	__le32 num_vdevs;
2417 	__le32 num_peers;
2418 	__le32 num_offload_peers;
2419 	__le32 num_offload_reorder_buffs;
2420 	__le32 num_peer_keys;
2421 	__le32 num_tids;
2422 	__le32 ast_skid_limit;
2423 	__le32 tx_chain_mask;
2424 	__le32 rx_chain_mask;
2425 	__le32 rx_timeout_pri[4];
2426 	__le32 rx_decap_mode;
2427 	__le32 scan_max_pending_req;
2428 	__le32 bmiss_offload_max_vdev;
2429 	__le32 roam_offload_max_vdev;
2430 	__le32 roam_offload_max_ap_profiles;
2431 	__le32 num_mcast_groups;
2432 	__le32 num_mcast_table_elems;
2433 	__le32 mcast2ucast_mode;
2434 	__le32 tx_dbg_log_size;
2435 	__le32 num_wds_entries;
2436 	__le32 dma_burst_size;
2437 	__le32 mac_aggr_delim;
2438 	__le32 rx_skip_defrag_timeout_dup_detection_check;
2439 	__le32 vow_config;
2440 	__le32 gtk_offload_max_vdev;
2441 	__le32 num_msdu_desc;
2442 	__le32 max_frag_entries;
2443 	__le32 num_tdls_vdevs;
2444 	__le32 num_tdls_conn_table_entries;
2445 	__le32 beacon_tx_offload_max_vdev;
2446 	__le32 num_multicast_filter_entries;
2447 	__le32 num_wow_filters;
2448 	__le32 num_keep_alive_pattern;
2449 	__le32 keep_alive_pattern_size;
2450 	__le32 max_tdls_concurrent_sleep_sta;
2451 	__le32 max_tdls_concurrent_buffer_sta;
2452 	__le32 wmi_send_separate;
2453 	__le32 num_ocb_vdevs;
2454 	__le32 num_ocb_channels;
2455 	__le32 num_ocb_schedules;
2456 	__le32 flag1;
2457 	__le32 smart_ant_cap;
2458 	__le32 bk_minfree;
2459 	__le32 be_minfree;
2460 	__le32 vi_minfree;
2461 	__le32 vo_minfree;
2462 	__le32 alloc_frag_desc_for_data_pkt;
2463 	__le32 num_ns_ext_tuples_cfg;
2464 	__le32 bpf_instruction_size;
2465 	__le32 max_bssid_rx_filters;
2466 	__le32 use_pdev_id;
2467 	__le32 max_num_dbs_scan_duty_cycle;
2468 	__le32 max_num_group_keys;
2469 	__le32 peer_map_unmap_version;
2470 	__le32 sched_params;
2471 	__le32 twt_ap_pdev_count;
2472 	__le32 twt_ap_sta_count;
2473 	__le32 max_nlo_ssids;
2474 	__le32 num_pkt_filters;
2475 	__le32 num_max_sta_vdevs;
2476 	__le32 max_bssid_indicator;
2477 	__le32 ul_resp_config;
2478 	__le32 msdu_flow_override_config0;
2479 	__le32 msdu_flow_override_config1;
2480 	__le32 flags2;
2481 	__le32 host_service_flags;
2482 	__le32 max_rnr_neighbours;
2483 	__le32 ema_max_vap_cnt;
2484 	__le32 ema_max_profile_period;
2485 } __packed;
2486 
2487 struct wmi_service_ready_event {
2488 	__le32 fw_build_vers;
2489 	struct ath12k_wmi_abi_version_params fw_abi_vers;
2490 	__le32 phy_capability;
2491 	__le32 max_frag_entry;
2492 	__le32 num_rf_chains;
2493 	__le32 ht_cap_info;
2494 	__le32 vht_cap_info;
2495 	__le32 vht_supp_mcs;
2496 	__le32 hw_min_tx_power;
2497 	__le32 hw_max_tx_power;
2498 	__le32 sys_cap_info;
2499 	__le32 min_pkt_size_enable;
2500 	__le32 max_bcn_ie_size;
2501 	__le32 num_mem_reqs;
2502 	__le32 max_num_scan_channels;
2503 	__le32 hw_bd_id;
2504 	__le32 hw_bd_info[HW_BD_INFO_SIZE];
2505 	__le32 max_supported_macs;
2506 	__le32 wmi_fw_sub_feat_caps;
2507 	__le32 num_dbs_hw_modes;
2508 	/* txrx_chainmask
2509 	 *    [7:0]   - 2G band tx chain mask
2510 	 *    [15:8]  - 2G band rx chain mask
2511 	 *    [23:16] - 5G band tx chain mask
2512 	 *    [31:24] - 5G band rx chain mask
2513 	 */
2514 	__le32 txrx_chainmask;
2515 	__le32 default_dbs_hw_mode_index;
2516 	__le32 num_msdu_desc;
2517 } __packed;
2518 
2519 #define WMI_SERVICE_BM_SIZE	((WMI_MAX_SERVICE + sizeof(u32) - 1) / sizeof(u32))
2520 
2521 #define WMI_SERVICE_SEGMENT_BM_SIZE32 4 /* 4x u32 = 128 bits */
2522 #define WMI_SERVICE_EXT_BM_SIZE (WMI_SERVICE_SEGMENT_BM_SIZE32 * sizeof(u32))
2523 #define WMI_AVAIL_SERVICE_BITS_IN_SIZE32 32
2524 #define WMI_SERVICE_BITS_IN_SIZE32 4
2525 
2526 struct wmi_service_ready_ext_event {
2527 	__le32 default_conc_scan_config_bits;
2528 	__le32 default_fw_config_bits;
2529 	struct ath12k_wmi_ppe_threshold_params ppet;
2530 	__le32 he_cap_info;
2531 	__le32 mpdu_density;
2532 	__le32 max_bssid_rx_filters;
2533 	__le32 fw_build_vers_ext;
2534 	__le32 max_nlo_ssids;
2535 	__le32 max_bssid_indicator;
2536 	__le32 he_cap_info_ext;
2537 } __packed;
2538 
2539 struct ath12k_wmi_soc_mac_phy_hw_mode_caps_params {
2540 	__le32 num_hw_modes;
2541 	__le32 num_chainmask_tables;
2542 } __packed;
2543 
2544 struct ath12k_wmi_hw_mode_cap_params {
2545 	__le32 tlv_header;
2546 	__le32 hw_mode_id;
2547 	__le32 phy_id_map;
2548 	__le32 hw_mode_config_type;
2549 } __packed;
2550 
2551 #define WMI_MAX_HECAP_PHY_SIZE                 (3)
2552 
2553 /* pdev_id is present in lower 16 bits of pdev_and_hw_link_ids in
2554  * ath12k_wmi_mac_phy_caps_params & ath12k_wmi_caps_ext_params.
2555  *
2556  * hw_link_id is present in higher 16 bits of pdev_and_hw_link_ids.
2557  */
2558 #define WMI_CAPS_PARAMS_PDEV_ID		GENMASK(15, 0)
2559 #define WMI_CAPS_PARAMS_HW_LINK_ID	GENMASK(31, 16)
2560 
2561 struct ath12k_wmi_mac_phy_caps_params {
2562 	__le32 hw_mode_id;
2563 	__le32 pdev_and_hw_link_ids;
2564 	__le32 phy_id;
2565 	__le32 supported_flags;
2566 	__le32 supported_bands;
2567 	__le32 ampdu_density;
2568 	__le32 max_bw_supported_2g;
2569 	__le32 ht_cap_info_2g;
2570 	__le32 vht_cap_info_2g;
2571 	__le32 vht_supp_mcs_2g;
2572 	__le32 he_cap_info_2g;
2573 	__le32 he_supp_mcs_2g;
2574 	__le32 tx_chain_mask_2g;
2575 	__le32 rx_chain_mask_2g;
2576 	__le32 max_bw_supported_5g;
2577 	__le32 ht_cap_info_5g;
2578 	__le32 vht_cap_info_5g;
2579 	__le32 vht_supp_mcs_5g;
2580 	__le32 he_cap_info_5g;
2581 	__le32 he_supp_mcs_5g;
2582 	__le32 tx_chain_mask_5g;
2583 	__le32 rx_chain_mask_5g;
2584 	__le32 he_cap_phy_info_2g[WMI_MAX_HECAP_PHY_SIZE];
2585 	__le32 he_cap_phy_info_5g[WMI_MAX_HECAP_PHY_SIZE];
2586 	struct ath12k_wmi_ppe_threshold_params he_ppet2g;
2587 	struct ath12k_wmi_ppe_threshold_params he_ppet5g;
2588 	__le32 chainmask_table_id;
2589 	__le32 lmac_id;
2590 	__le32 he_cap_info_2g_ext;
2591 	__le32 he_cap_info_5g_ext;
2592 	__le32 he_cap_info_internal;
2593 } __packed;
2594 
2595 struct ath12k_wmi_hal_reg_caps_ext_params {
2596 	__le32 tlv_header;
2597 	__le32 phy_id;
2598 	__le32 eeprom_reg_domain;
2599 	__le32 eeprom_reg_domain_ext;
2600 	__le32 regcap1;
2601 	__le32 regcap2;
2602 	__le32 wireless_modes;
2603 	__le32 low_2ghz_chan;
2604 	__le32 high_2ghz_chan;
2605 	__le32 low_5ghz_chan;
2606 	__le32 high_5ghz_chan;
2607 } __packed;
2608 
2609 struct ath12k_wmi_soc_hal_reg_caps_params {
2610 	__le32 num_phy;
2611 } __packed;
2612 
2613 enum wmi_channel_width {
2614 	WMI_CHAN_WIDTH_20 = 0,
2615 	WMI_CHAN_WIDTH_40 = 1,
2616 	WMI_CHAN_WIDTH_80 = 2,
2617 	WMI_CHAN_WIDTH_160 = 3,
2618 	WMI_CHAN_WIDTH_80P80 = 4,
2619 	WMI_CHAN_WIDTH_5 = 5,
2620 	WMI_CHAN_WIDTH_10 = 6,
2621 	WMI_CHAN_WIDTH_165 = 7,
2622 	WMI_CHAN_WIDTH_160P160 = 8,
2623 	WMI_CHAN_WIDTH_320 = 9,
2624 };
2625 
2626 #define WMI_MAX_EHTCAP_MAC_SIZE  2
2627 #define WMI_MAX_EHTCAP_PHY_SIZE  3
2628 #define WMI_MAX_EHTCAP_RATE_SET  3
2629 
2630 /* Used for EHT MCS-NSS array. Data at each array index follows the format given
2631  * in IEEE P802.11be/D2.0, May 20229.4.2.313.4.
2632  *
2633  * Index interpretation:
2634  * 0 - 20 MHz only sta, all 4 bytes valid
2635  * 1 - index for bandwidths <= 80 MHz except 20 MHz-only, first 3 bytes valid
2636  * 2 - index for 160 MHz, first 3 bytes valid
2637  * 3 - index for 320 MHz, first 3 bytes valid
2638  */
2639 #define WMI_MAX_EHT_SUPP_MCS_2G_SIZE  2
2640 #define WMI_MAX_EHT_SUPP_MCS_5G_SIZE  4
2641 
2642 #define WMI_EHTCAP_TXRX_MCS_NSS_IDX_80    0
2643 #define WMI_EHTCAP_TXRX_MCS_NSS_IDX_160   1
2644 #define WMI_EHTCAP_TXRX_MCS_NSS_IDX_320   2
2645 
2646 #define WMI_EHT_MCS_NSS_0_7    GENMASK(3, 0)
2647 #define WMI_EHT_MCS_NSS_8_9    GENMASK(7, 4)
2648 #define WMI_EHT_MCS_NSS_10_11  GENMASK(11, 8)
2649 #define WMI_EHT_MCS_NSS_12_13  GENMASK(15, 12)
2650 
2651 struct wmi_service_ready_ext2_event {
2652 	__le32 reg_db_version;
2653 	__le32 hw_min_max_tx_power_2ghz;
2654 	__le32 hw_min_max_tx_power_5ghz;
2655 	__le32 chwidth_num_peer_caps;
2656 	__le32 preamble_puncture_bw;
2657 	__le32 max_user_per_ppdu_ofdma;
2658 	__le32 max_user_per_ppdu_mumimo;
2659 	__le32 target_cap_flags;
2660 	__le32 eht_cap_mac_info[WMI_MAX_EHTCAP_MAC_SIZE];
2661 	__le32 max_num_linkview_peers;
2662 	__le32 max_num_msduq_supported_per_tid;
2663 	__le32 default_num_msduq_supported_per_tid;
2664 } __packed;
2665 
2666 struct ath12k_wmi_caps_ext_params {
2667 	__le32 hw_mode_id;
2668 	__le32 pdev_and_hw_link_ids;
2669 	__le32 phy_id;
2670 	__le32 wireless_modes_ext;
2671 	__le32 eht_cap_mac_info_2ghz[WMI_MAX_EHTCAP_MAC_SIZE];
2672 	__le32 eht_cap_mac_info_5ghz[WMI_MAX_EHTCAP_MAC_SIZE];
2673 	__le32 rsvd0[2];
2674 	__le32 eht_cap_phy_info_2ghz[WMI_MAX_EHTCAP_PHY_SIZE];
2675 	__le32 eht_cap_phy_info_5ghz[WMI_MAX_EHTCAP_PHY_SIZE];
2676 	struct ath12k_wmi_ppe_threshold_params eht_ppet_2ghz;
2677 	struct ath12k_wmi_ppe_threshold_params eht_ppet_5ghz;
2678 	__le32 eht_cap_info_internal;
2679 	__le32 eht_supp_mcs_ext_2ghz[WMI_MAX_EHT_SUPP_MCS_2G_SIZE];
2680 	__le32 eht_supp_mcs_ext_5ghz[WMI_MAX_EHT_SUPP_MCS_5G_SIZE];
2681 } __packed;
2682 
2683 /* 2 word representation of MAC addr */
2684 struct ath12k_wmi_mac_addr_params {
2685 	u8 addr[ETH_ALEN];
2686 	u8 padding[2];
2687 } __packed;
2688 
2689 struct ath12k_wmi_dma_ring_caps_params {
2690 	__le32 tlv_header;
2691 	__le32 pdev_id;
2692 	__le32 module_id;
2693 	__le32 min_elem;
2694 	__le32 min_buf_sz;
2695 	__le32 min_buf_align;
2696 } __packed;
2697 
2698 struct ath12k_wmi_ready_event_min_params {
2699 	struct ath12k_wmi_abi_version_params fw_abi_vers;
2700 	struct ath12k_wmi_mac_addr_params mac_addr;
2701 	__le32 status;
2702 	__le32 num_dscp_table;
2703 	__le32 num_extra_mac_addr;
2704 	__le32 num_total_peers;
2705 	__le32 num_extra_peers;
2706 } __packed;
2707 
2708 struct wmi_ready_event {
2709 	struct ath12k_wmi_ready_event_min_params ready_event_min;
2710 	__le32 max_ast_index;
2711 	__le32 pktlog_defs_checksum;
2712 } __packed;
2713 
2714 struct wmi_service_available_event {
2715 	__le32 wmi_service_segment_offset;
2716 	__le32 wmi_service_segment_bitmap[WMI_SERVICE_SEGMENT_BM_SIZE32];
2717 } __packed;
2718 
2719 struct ath12k_wmi_vdev_create_arg {
2720 	u8 if_id;
2721 	u32 type;
2722 	u32 subtype;
2723 	struct {
2724 		u8 tx;
2725 		u8 rx;
2726 	} chains[NUM_NL80211_BANDS];
2727 	u32 pdev_id;
2728 	u8 if_stats_id;
2729 };
2730 
2731 #define ATH12K_MAX_VDEV_STATS_ID	0x30
2732 #define ATH12K_INVAL_VDEV_STATS_ID	0xFF
2733 
2734 struct wmi_vdev_create_cmd {
2735 	__le32 tlv_header;
2736 	__le32 vdev_id;
2737 	__le32 vdev_type;
2738 	__le32 vdev_subtype;
2739 	struct ath12k_wmi_mac_addr_params vdev_macaddr;
2740 	__le32 num_cfg_txrx_streams;
2741 	__le32 pdev_id;
2742 	__le32 mbssid_flags;
2743 	__le32 mbssid_tx_vdev_id;
2744 	__le32 vdev_stats_id_valid;
2745 	__le32 vdev_stats_id;
2746 } __packed;
2747 
2748 struct ath12k_wmi_vdev_txrx_streams_params {
2749 	__le32 tlv_header;
2750 	__le32 band;
2751 	__le32 supported_tx_streams;
2752 	__le32 supported_rx_streams;
2753 } __packed;
2754 
2755 struct wmi_vdev_delete_cmd {
2756 	__le32 tlv_header;
2757 	__le32 vdev_id;
2758 } __packed;
2759 
2760 struct wmi_vdev_up_cmd {
2761 	__le32 tlv_header;
2762 	__le32 vdev_id;
2763 	__le32 vdev_assoc_id;
2764 	struct ath12k_wmi_mac_addr_params vdev_bssid;
2765 	struct ath12k_wmi_mac_addr_params trans_bssid;
2766 	__le32 profile_idx;
2767 	__le32 profile_num;
2768 } __packed;
2769 
2770 struct wmi_vdev_stop_cmd {
2771 	__le32 tlv_header;
2772 	__le32 vdev_id;
2773 } __packed;
2774 
2775 struct wmi_vdev_down_cmd {
2776 	__le32 tlv_header;
2777 	__le32 vdev_id;
2778 } __packed;
2779 
2780 #define WMI_VDEV_START_HIDDEN_SSID  BIT(0)
2781 #define WMI_VDEV_START_PMF_ENABLED  BIT(1)
2782 #define WMI_VDEV_START_LDPC_RX_ENABLED BIT(3)
2783 
2784 #define ATH12K_WMI_SSID_LEN 32
2785 
2786 struct ath12k_wmi_ssid_params {
2787 	__le32 ssid_len;
2788 	u8 ssid[ATH12K_WMI_SSID_LEN];
2789 } __packed;
2790 
2791 #define ATH12K_VDEV_SETUP_TIMEOUT_HZ (5 * HZ)
2792 
2793 enum wmi_vdev_mbssid_flags {
2794 	WMI_VDEV_MBSSID_FLAGS_NON_MBSSID_AP	= BIT(0),
2795 };
2796 
2797 struct wmi_vdev_start_request_cmd {
2798 	__le32 tlv_header;
2799 	__le32 vdev_id;
2800 	__le32 requestor_id;
2801 	__le32 beacon_interval;
2802 	__le32 dtim_period;
2803 	__le32 flags;
2804 	struct ath12k_wmi_ssid_params ssid;
2805 	__le32 bcn_tx_rate;
2806 	__le32 bcn_txpower;
2807 	__le32 num_noa_descriptors;
2808 	__le32 disable_hw_ack;
2809 	__le32 preferred_tx_streams;
2810 	__le32 preferred_rx_streams;
2811 	__le32 he_ops;
2812 	__le32 cac_duration_ms;
2813 	__le32 regdomain;
2814 	__le32 min_data_rate;
2815 	__le32 mbssid_flags; /* uses enum wmi_vdev_mbssid_flags */
2816 	__le32 mbssid_tx_vdev_id;
2817 	__le32 eht_ops;
2818 	__le32 punct_bitmap;
2819 } __packed;
2820 
2821 #define MGMT_TX_DL_FRM_LEN		     64
2822 
2823 struct ath12k_wmi_channel_arg {
2824 	u8 chan_id;
2825 	u8 pwr;
2826 	u32 mhz;
2827 	u32 half_rate:1,
2828 	    quarter_rate:1,
2829 	    dfs_set:1,
2830 	    dfs_set_cfreq2:1,
2831 	    is_chan_passive:1,
2832 	    allow_ht:1,
2833 	    allow_vht:1,
2834 	    allow_he:1,
2835 	    set_agile:1,
2836 	    psc_channel:1;
2837 	u32 phy_mode;
2838 	u32 cfreq1;
2839 	u32 cfreq2;
2840 	char   maxpower;
2841 	char   minpower;
2842 	char   maxregpower;
2843 	u8  antennamax;
2844 	u8  reg_class_id;
2845 };
2846 
2847 enum wmi_phy_mode {
2848 	MODE_11A        = 0,
2849 	MODE_11G        = 1,   /* 11b/g Mode */
2850 	MODE_11B        = 2,   /* 11b Mode */
2851 	MODE_11GONLY    = 3,   /* 11g only Mode */
2852 	MODE_11NA_HT20   = 4,
2853 	MODE_11NG_HT20   = 5,
2854 	MODE_11NA_HT40   = 6,
2855 	MODE_11NG_HT40   = 7,
2856 	MODE_11AC_VHT20 = 8,
2857 	MODE_11AC_VHT40 = 9,
2858 	MODE_11AC_VHT80 = 10,
2859 	MODE_11AC_VHT20_2G = 11,
2860 	MODE_11AC_VHT40_2G = 12,
2861 	MODE_11AC_VHT80_2G = 13,
2862 	MODE_11AC_VHT80_80 = 14,
2863 	MODE_11AC_VHT160 = 15,
2864 	MODE_11AX_HE20 = 16,
2865 	MODE_11AX_HE40 = 17,
2866 	MODE_11AX_HE80 = 18,
2867 	MODE_11AX_HE80_80 = 19,
2868 	MODE_11AX_HE160 = 20,
2869 	MODE_11AX_HE20_2G = 21,
2870 	MODE_11AX_HE40_2G = 22,
2871 	MODE_11AX_HE80_2G = 23,
2872 	MODE_11BE_EHT20 = 24,
2873 	MODE_11BE_EHT40 = 25,
2874 	MODE_11BE_EHT80 = 26,
2875 	MODE_11BE_EHT80_80 = 27,
2876 	MODE_11BE_EHT160 = 28,
2877 	MODE_11BE_EHT160_160 = 29,
2878 	MODE_11BE_EHT320 = 30,
2879 	MODE_11BE_EHT20_2G = 31,
2880 	MODE_11BE_EHT40_2G = 32,
2881 	MODE_UNKNOWN = 33,
2882 	MODE_MAX = 33,
2883 };
2884 
2885 struct wmi_vdev_start_req_arg {
2886 	u32 vdev_id;
2887 	u32 freq;
2888 	u32 band_center_freq1;
2889 	u32 band_center_freq2;
2890 	bool passive;
2891 	bool allow_ibss;
2892 	bool allow_ht;
2893 	bool allow_vht;
2894 	bool ht40plus;
2895 	bool chan_radar;
2896 	bool freq2_radar;
2897 	bool allow_he;
2898 	u32 min_power;
2899 	u32 max_power;
2900 	u32 max_reg_power;
2901 	u32 max_antenna_gain;
2902 	enum wmi_phy_mode mode;
2903 	u32 bcn_intval;
2904 	u32 dtim_period;
2905 	u8 *ssid;
2906 	u32 ssid_len;
2907 	u32 bcn_tx_rate;
2908 	u32 bcn_tx_power;
2909 	bool disable_hw_ack;
2910 	bool hidden_ssid;
2911 	bool pmf_enabled;
2912 	u32 he_ops;
2913 	u32 cac_duration_ms;
2914 	u32 regdomain;
2915 	u32 pref_rx_streams;
2916 	u32 pref_tx_streams;
2917 	u32 num_noa_descriptors;
2918 	u32 min_data_rate;
2919 	u32 mbssid_flags;
2920 	u32 mbssid_tx_vdev_id;
2921 	u32 punct_bitmap;
2922 };
2923 
2924 struct ath12k_wmi_peer_create_arg {
2925 	const u8 *peer_addr;
2926 	u32 peer_type;
2927 	u32 vdev_id;
2928 };
2929 
2930 struct ath12k_wmi_pdev_set_regdomain_arg {
2931 	u16 current_rd_in_use;
2932 	u16 current_rd_2g;
2933 	u16 current_rd_5g;
2934 	u32 ctl_2g;
2935 	u32 ctl_5g;
2936 	u8 dfs_domain;
2937 	u32 pdev_id;
2938 };
2939 
2940 struct ath12k_wmi_rx_reorder_queue_remove_arg {
2941 	u8 *peer_macaddr;
2942 	u16 vdev_id;
2943 	u32 peer_tid_bitmap;
2944 };
2945 
2946 #define WMI_HOST_PDEV_ID_SOC 0xFF
2947 #define WMI_HOST_PDEV_ID_0   0
2948 #define WMI_HOST_PDEV_ID_1   1
2949 #define WMI_HOST_PDEV_ID_2   2
2950 
2951 #define WMI_PDEV_ID_SOC         0
2952 #define WMI_PDEV_ID_1ST         1
2953 #define WMI_PDEV_ID_2ND         2
2954 #define WMI_PDEV_ID_3RD         3
2955 
2956 /* Freq units in MHz */
2957 #define REG_RULE_START_FREQ			0x0000ffff
2958 #define REG_RULE_END_FREQ			0xffff0000
2959 #define REG_RULE_FLAGS				0x0000ffff
2960 #define REG_RULE_MAX_BW				0x0000ffff
2961 #define REG_RULE_REG_PWR			0x00ff0000
2962 #define REG_RULE_ANT_GAIN			0xff000000
2963 #define REG_RULE_PSD_INFO			BIT(2)
2964 #define REG_RULE_PSD_EIRP			0xffff0000
2965 
2966 #define WMI_VDEV_PARAM_TXBF_SU_TX_BFEE BIT(0)
2967 #define WMI_VDEV_PARAM_TXBF_MU_TX_BFEE BIT(1)
2968 #define WMI_VDEV_PARAM_TXBF_SU_TX_BFER BIT(2)
2969 #define WMI_VDEV_PARAM_TXBF_MU_TX_BFER BIT(3)
2970 
2971 #define HECAP_PHYDWORD_0	0
2972 #define HECAP_PHYDWORD_1	1
2973 #define HECAP_PHYDWORD_2	2
2974 
2975 #define HECAP_PHY_SU_BFER		BIT(31)
2976 #define HECAP_PHY_SU_BFEE		BIT(0)
2977 #define HECAP_PHY_MU_BFER		BIT(1)
2978 #define HECAP_PHY_UL_MUMIMO		BIT(22)
2979 #define HECAP_PHY_UL_MUOFDMA		BIT(23)
2980 
2981 #define HECAP_PHY_SUBFMR_GET(hecap_phy) \
2982 	u32_get_bits(hecap_phy[HECAP_PHYDWORD_0], HECAP_PHY_SU_BFER)
2983 
2984 #define HECAP_PHY_SUBFME_GET(hecap_phy) \
2985 	u32_get_bits(hecap_phy[HECAP_PHYDWORD_1], HECAP_PHY_SU_BFEE)
2986 
2987 #define HECAP_PHY_MUBFMR_GET(hecap_phy) \
2988 	u32_get_bits(hecap_phy[HECAP_PHYDWORD_1], HECAP_PHY_MU_BFER)
2989 
2990 #define HECAP_PHY_ULMUMIMO_GET(hecap_phy) \
2991 	u32_get_bits(hecap_phy[HECAP_PHYDWORD_0], HECAP_PHY_UL_MUMIMO)
2992 
2993 #define HECAP_PHY_ULOFDMA_GET(hecap_phy) \
2994 	u32_get_bits(hecap_phy[HECAP_PHYDWORD_0], HECAP_PHY_UL_MUOFDMA)
2995 
2996 #define HE_MODE_SU_TX_BFEE	BIT(0)
2997 #define HE_MODE_SU_TX_BFER	BIT(1)
2998 #define HE_MODE_MU_TX_BFEE	BIT(2)
2999 #define HE_MODE_MU_TX_BFER	BIT(3)
3000 #define HE_MODE_DL_OFDMA	BIT(4)
3001 #define HE_MODE_UL_OFDMA	BIT(5)
3002 #define HE_MODE_UL_MUMIMO	BIT(6)
3003 
3004 #define HE_DL_MUOFDMA_ENABLE	1
3005 #define HE_UL_MUOFDMA_ENABLE	1
3006 #define HE_DL_MUMIMO_ENABLE	1
3007 #define HE_MU_BFEE_ENABLE	1
3008 #define HE_SU_BFEE_ENABLE	1
3009 
3010 #define HE_VHT_SOUNDING_MODE_ENABLE		1
3011 #define HE_SU_MU_SOUNDING_MODE_ENABLE		1
3012 #define HE_TRIG_NONTRIG_SOUNDING_MODE_ENABLE	1
3013 
3014 /* HE or VHT Sounding */
3015 #define HE_VHT_SOUNDING_MODE		BIT(0)
3016 /* SU or MU Sounding */
3017 #define HE_SU_MU_SOUNDING_MODE		BIT(2)
3018 /* Trig or Non-Trig Sounding */
3019 #define HE_TRIG_NONTRIG_SOUNDING_MODE	BIT(3)
3020 
3021 #define WMI_TXBF_STS_CAP_OFFSET_LSB	4
3022 #define WMI_TXBF_STS_CAP_OFFSET_MASK	0x70
3023 #define WMI_BF_SOUND_DIM_OFFSET_LSB	8
3024 #define WMI_BF_SOUND_DIM_OFFSET_MASK	0x700
3025 
3026 enum wmi_peer_type {
3027 	WMI_PEER_TYPE_DEFAULT = 0,
3028 	WMI_PEER_TYPE_BSS = 1,
3029 	WMI_PEER_TYPE_TDLS = 2,
3030 };
3031 
3032 struct wmi_peer_create_cmd {
3033 	__le32 tlv_header;
3034 	__le32 vdev_id;
3035 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3036 	__le32 peer_type;
3037 } __packed;
3038 
3039 struct wmi_peer_delete_cmd {
3040 	__le32 tlv_header;
3041 	__le32 vdev_id;
3042 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3043 } __packed;
3044 
3045 struct wmi_peer_reorder_queue_setup_cmd {
3046 	__le32 tlv_header;
3047 	__le32 vdev_id;
3048 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3049 	__le32 tid;
3050 	__le32 queue_ptr_lo;
3051 	__le32 queue_ptr_hi;
3052 	__le32 queue_no;
3053 	__le32 ba_window_size_valid;
3054 	__le32 ba_window_size;
3055 } __packed;
3056 
3057 struct wmi_peer_reorder_queue_remove_cmd {
3058 	__le32 tlv_header;
3059 	__le32 vdev_id;
3060 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3061 	__le32 tid_mask;
3062 } __packed;
3063 
3064 enum wmi_bss_chan_info_req_type {
3065 	WMI_BSS_SURVEY_REQ_TYPE_READ = 1,
3066 	WMI_BSS_SURVEY_REQ_TYPE_READ_CLEAR,
3067 };
3068 
3069 struct wmi_pdev_set_param_cmd {
3070 	__le32 tlv_header;
3071 	__le32 pdev_id;
3072 	__le32 param_id;
3073 	__le32 param_value;
3074 } __packed;
3075 
3076 struct wmi_pdev_set_ps_mode_cmd {
3077 	__le32 tlv_header;
3078 	__le32 vdev_id;
3079 	__le32 sta_ps_mode;
3080 } __packed;
3081 
3082 struct wmi_pdev_suspend_cmd {
3083 	__le32 tlv_header;
3084 	__le32 pdev_id;
3085 	__le32 suspend_opt;
3086 } __packed;
3087 
3088 struct wmi_pdev_resume_cmd {
3089 	__le32 tlv_header;
3090 	__le32 pdev_id;
3091 } __packed;
3092 
3093 struct wmi_pdev_bss_chan_info_req_cmd {
3094 	__le32 tlv_header;
3095 	/* ref wmi_bss_chan_info_req_type */
3096 	__le32 req_type;
3097 } __packed;
3098 
3099 struct wmi_ap_ps_peer_cmd {
3100 	__le32 tlv_header;
3101 	__le32 vdev_id;
3102 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3103 	__le32 param;
3104 	__le32 value;
3105 } __packed;
3106 
3107 struct wmi_sta_powersave_param_cmd {
3108 	__le32 tlv_header;
3109 	__le32 vdev_id;
3110 	__le32 param;
3111 	__le32 value;
3112 } __packed;
3113 
3114 struct wmi_pdev_set_regdomain_cmd {
3115 	__le32 tlv_header;
3116 	__le32 pdev_id;
3117 	__le32 reg_domain;
3118 	__le32 reg_domain_2g;
3119 	__le32 reg_domain_5g;
3120 	__le32 conformance_test_limit_2g;
3121 	__le32 conformance_test_limit_5g;
3122 	__le32 dfs_domain;
3123 } __packed;
3124 
3125 struct wmi_peer_set_param_cmd {
3126 	__le32 tlv_header;
3127 	__le32 vdev_id;
3128 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3129 	__le32 param_id;
3130 	__le32 param_value;
3131 } __packed;
3132 
3133 struct wmi_peer_flush_tids_cmd {
3134 	__le32 tlv_header;
3135 	__le32 vdev_id;
3136 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3137 	__le32 peer_tid_bitmap;
3138 } __packed;
3139 
3140 struct wmi_dfs_phyerr_offload_cmd {
3141 	__le32 tlv_header;
3142 	__le32 pdev_id;
3143 } __packed;
3144 
3145 struct wmi_bcn_offload_ctrl_cmd {
3146 	__le32 tlv_header;
3147 	__le32 vdev_id;
3148 	__le32 bcn_ctrl_op;
3149 } __packed;
3150 
3151 enum scan_dwelltime_adaptive_mode {
3152 	SCAN_DWELL_MODE_DEFAULT = 0,
3153 	SCAN_DWELL_MODE_CONSERVATIVE = 1,
3154 	SCAN_DWELL_MODE_MODERATE = 2,
3155 	SCAN_DWELL_MODE_AGGRESSIVE = 3,
3156 	SCAN_DWELL_MODE_STATIC = 4
3157 };
3158 
3159 #define WLAN_SCAN_MAX_NUM_SSID          10
3160 #define WLAN_SCAN_MAX_NUM_BSSID         10
3161 
3162 struct ath12k_wmi_element_info_arg {
3163 	u32 len;
3164 	u8 *ptr;
3165 };
3166 
3167 #define WMI_IE_BITMAP_SIZE             8
3168 
3169 #define WMI_SCAN_MAX_NUM_SSID                0x0A
3170 /* prefix used by scan requestor ids on the host */
3171 #define WMI_HOST_SCAN_REQUESTOR_ID_PREFIX 0xA000
3172 
3173 /* prefix used by scan request ids generated on the host */
3174 /* host cycles through the lower 12 bits to generate ids */
3175 #define WMI_HOST_SCAN_REQ_ID_PREFIX 0xA000
3176 
3177 #define WLAN_SCAN_PARAMS_MAX_SSID    16
3178 #define WLAN_SCAN_PARAMS_MAX_BSSID   4
3179 #define WLAN_SCAN_PARAMS_MAX_IE_LEN  512
3180 
3181 /* Values lower than this may be refused by some firmware revisions with a scan
3182  * completion with a timedout reason.
3183  */
3184 #define WMI_SCAN_CHAN_MIN_TIME_MSEC 40
3185 
3186 /* Scan priority numbers must be sequential, starting with 0 */
3187 enum wmi_scan_priority {
3188 	WMI_SCAN_PRIORITY_VERY_LOW = 0,
3189 	WMI_SCAN_PRIORITY_LOW,
3190 	WMI_SCAN_PRIORITY_MEDIUM,
3191 	WMI_SCAN_PRIORITY_HIGH,
3192 	WMI_SCAN_PRIORITY_VERY_HIGH,
3193 	WMI_SCAN_PRIORITY_COUNT   /* number of priorities supported */
3194 };
3195 
3196 enum wmi_scan_event_type {
3197 	WMI_SCAN_EVENT_STARTED              = BIT(0),
3198 	WMI_SCAN_EVENT_COMPLETED            = BIT(1),
3199 	WMI_SCAN_EVENT_BSS_CHANNEL          = BIT(2),
3200 	WMI_SCAN_EVENT_FOREIGN_CHAN         = BIT(3),
3201 	WMI_SCAN_EVENT_DEQUEUED             = BIT(4),
3202 	/* possibly by high-prio scan */
3203 	WMI_SCAN_EVENT_PREEMPTED            = BIT(5),
3204 	WMI_SCAN_EVENT_START_FAILED         = BIT(6),
3205 	WMI_SCAN_EVENT_RESTARTED            = BIT(7),
3206 	WMI_SCAN_EVENT_FOREIGN_CHAN_EXIT    = BIT(8),
3207 	WMI_SCAN_EVENT_SUSPENDED            = BIT(9),
3208 	WMI_SCAN_EVENT_RESUMED              = BIT(10),
3209 	WMI_SCAN_EVENT_MAX                  = BIT(15),
3210 };
3211 
3212 enum wmi_scan_completion_reason {
3213 	WMI_SCAN_REASON_COMPLETED,
3214 	WMI_SCAN_REASON_CANCELLED,
3215 	WMI_SCAN_REASON_PREEMPTED,
3216 	WMI_SCAN_REASON_TIMEDOUT,
3217 	WMI_SCAN_REASON_INTERNAL_FAILURE,
3218 	WMI_SCAN_REASON_MAX,
3219 };
3220 
3221 struct  wmi_start_scan_cmd {
3222 	__le32 tlv_header;
3223 	__le32 scan_id;
3224 	__le32 scan_req_id;
3225 	__le32 vdev_id;
3226 	__le32 scan_priority;
3227 	__le32 notify_scan_events;
3228 	__le32 dwell_time_active;
3229 	__le32 dwell_time_passive;
3230 	__le32 min_rest_time;
3231 	__le32 max_rest_time;
3232 	__le32 repeat_probe_time;
3233 	__le32 probe_spacing_time;
3234 	__le32 idle_time;
3235 	__le32 max_scan_time;
3236 	__le32 probe_delay;
3237 	__le32 scan_ctrl_flags;
3238 	__le32 burst_duration;
3239 	__le32 num_chan;
3240 	__le32 num_bssid;
3241 	__le32 num_ssids;
3242 	__le32 ie_len;
3243 	__le32 n_probes;
3244 	struct ath12k_wmi_mac_addr_params mac_addr;
3245 	struct ath12k_wmi_mac_addr_params mac_mask;
3246 	u32 ie_bitmap[WMI_IE_BITMAP_SIZE];
3247 	__le32 num_vendor_oui;
3248 	__le32 scan_ctrl_flags_ext;
3249 	__le32 dwell_time_active_2g;
3250 	__le32 dwell_time_active_6g;
3251 	__le32 dwell_time_passive_6g;
3252 	__le32 scan_start_offset;
3253 } __packed;
3254 
3255 #define WMI_SCAN_FLAG_PASSIVE        0x1
3256 #define WMI_SCAN_ADD_BCAST_PROBE_REQ 0x2
3257 #define WMI_SCAN_ADD_CCK_RATES       0x4
3258 #define WMI_SCAN_ADD_OFDM_RATES      0x8
3259 #define WMI_SCAN_CHAN_STAT_EVENT     0x10
3260 #define WMI_SCAN_FILTER_PROBE_REQ    0x20
3261 #define WMI_SCAN_BYPASS_DFS_CHN      0x40
3262 #define WMI_SCAN_CONTINUE_ON_ERROR   0x80
3263 #define WMI_SCAN_FILTER_PROMISCUOS   0x100
3264 #define WMI_SCAN_FLAG_FORCE_ACTIVE_ON_DFS 0x200
3265 #define WMI_SCAN_ADD_TPC_IE_IN_PROBE_REQ  0x400
3266 #define WMI_SCAN_ADD_DS_IE_IN_PROBE_REQ   0x800
3267 #define WMI_SCAN_ADD_SPOOF_MAC_IN_PROBE_REQ   0x1000
3268 #define WMI_SCAN_OFFCHAN_MGMT_TX    0x2000
3269 #define WMI_SCAN_OFFCHAN_DATA_TX    0x4000
3270 #define WMI_SCAN_CAPTURE_PHY_ERROR  0x8000
3271 #define WMI_SCAN_FLAG_STRICT_PASSIVE_ON_PCHN 0x10000
3272 #define WMI_SCAN_FLAG_HALF_RATE_SUPPORT      0x20000
3273 #define WMI_SCAN_FLAG_QUARTER_RATE_SUPPORT   0x40000
3274 #define WMI_SCAN_RANDOM_SEQ_NO_IN_PROBE_REQ 0x80000
3275 #define WMI_SCAN_ENABLE_IE_WHTELIST_IN_PROBE_REQ 0x100000
3276 
3277 #define WMI_SCAN_DWELL_MODE_MASK GENMASK(23, 21)
3278 
3279 enum {
3280 	WMI_SCAN_DWELL_MODE_DEFAULT      = 0,
3281 	WMI_SCAN_DWELL_MODE_CONSERVATIVE = 1,
3282 	WMI_SCAN_DWELL_MODE_MODERATE     = 2,
3283 	WMI_SCAN_DWELL_MODE_AGGRESSIVE   = 3,
3284 	WMI_SCAN_DWELL_MODE_STATIC       = 4,
3285 };
3286 
3287 struct ath12k_wmi_hint_short_ssid_arg {
3288 	u32 freq_flags;
3289 	u32 short_ssid;
3290 };
3291 
3292 struct ath12k_wmi_hint_bssid_arg {
3293 	u32 freq_flags;
3294 	struct ath12k_wmi_mac_addr_params bssid;
3295 };
3296 
3297 struct ath12k_wmi_scan_req_arg {
3298 	u32 scan_id;
3299 	u32 scan_req_id;
3300 	u32 vdev_id;
3301 	u32 pdev_id;
3302 	enum wmi_scan_priority scan_priority;
3303 	u32 scan_ev_started:1,
3304 	    scan_ev_completed:1,
3305 	    scan_ev_bss_chan:1,
3306 	    scan_ev_foreign_chan:1,
3307 	    scan_ev_dequeued:1,
3308 	    scan_ev_preempted:1,
3309 	    scan_ev_start_failed:1,
3310 	    scan_ev_restarted:1,
3311 	    scan_ev_foreign_chn_exit:1,
3312 	    scan_ev_invalid:1,
3313 	    scan_ev_gpio_timeout:1,
3314 	    scan_ev_suspended:1,
3315 	    scan_ev_resumed:1;
3316 	u32 dwell_time_active;
3317 	u32 dwell_time_active_2g;
3318 	u32 dwell_time_passive;
3319 	u32 dwell_time_active_6g;
3320 	u32 dwell_time_passive_6g;
3321 	u32 min_rest_time;
3322 	u32 max_rest_time;
3323 	u32 repeat_probe_time;
3324 	u32 probe_spacing_time;
3325 	u32 idle_time;
3326 	u32 max_scan_time;
3327 	u32 probe_delay;
3328 	u32 scan_f_passive:1,
3329 	    scan_f_bcast_probe:1,
3330 	    scan_f_cck_rates:1,
3331 	    scan_f_ofdm_rates:1,
3332 	    scan_f_chan_stat_evnt:1,
3333 	    scan_f_filter_prb_req:1,
3334 	    scan_f_bypass_dfs_chn:1,
3335 	    scan_f_continue_on_err:1,
3336 	    scan_f_offchan_mgmt_tx:1,
3337 	    scan_f_offchan_data_tx:1,
3338 	    scan_f_promisc_mode:1,
3339 	    scan_f_capture_phy_err:1,
3340 	    scan_f_strict_passive_pch:1,
3341 	    scan_f_half_rate:1,
3342 	    scan_f_quarter_rate:1,
3343 	    scan_f_force_active_dfs_chn:1,
3344 	    scan_f_add_tpc_ie_in_probe:1,
3345 	    scan_f_add_ds_ie_in_probe:1,
3346 	    scan_f_add_spoofed_mac_in_probe:1,
3347 	    scan_f_add_rand_seq_in_probe:1,
3348 	    scan_f_en_ie_whitelist_in_probe:1,
3349 	    scan_f_forced:1,
3350 	    scan_f_2ghz:1,
3351 	    scan_f_5ghz:1,
3352 	    scan_f_80mhz:1;
3353 	enum scan_dwelltime_adaptive_mode adaptive_dwell_time_mode;
3354 	u32 burst_duration;
3355 	u32 num_chan;
3356 	u32 num_bssid;
3357 	u32 num_ssids;
3358 	u32 n_probes;
3359 	u32 *chan_list;
3360 	u32 notify_scan_events;
3361 	struct cfg80211_ssid ssid[WLAN_SCAN_MAX_NUM_SSID];
3362 	struct ath12k_wmi_mac_addr_params bssid_list[WLAN_SCAN_MAX_NUM_BSSID];
3363 	struct ath12k_wmi_element_info_arg extraie;
3364 	u32 num_hint_s_ssid;
3365 	u32 num_hint_bssid;
3366 	struct ath12k_wmi_hint_short_ssid_arg hint_s_ssid[WLAN_SCAN_MAX_HINT_S_SSID];
3367 	struct ath12k_wmi_hint_bssid_arg hint_bssid[WLAN_SCAN_MAX_HINT_BSSID];
3368 };
3369 
3370 struct wmi_ssid_arg {
3371 	int len;
3372 	const u8 *ssid;
3373 };
3374 
3375 struct wmi_bssid_arg {
3376 	const u8 *bssid;
3377 };
3378 
3379 #define WMI_SCAN_STOP_ONE       0x00000000
3380 #define WMI_SCAN_STOP_VAP_ALL   0x01000000
3381 #define WMI_SCAN_STOP_ALL       0x04000000
3382 
3383 /* Prefix 0xA000 indicates that the scan request
3384  * is trigger by HOST
3385  */
3386 #define ATH12K_SCAN_ID          0xA000
3387 
3388 enum scan_cancel_req_type {
3389 	WLAN_SCAN_CANCEL_SINGLE = 1,
3390 	WLAN_SCAN_CANCEL_VDEV_ALL,
3391 	WLAN_SCAN_CANCEL_PDEV_ALL,
3392 };
3393 
3394 struct ath12k_wmi_scan_cancel_arg {
3395 	u32 requester;
3396 	u32 scan_id;
3397 	enum scan_cancel_req_type req_type;
3398 	u32 vdev_id;
3399 	u32 pdev_id;
3400 };
3401 
3402 struct wmi_bcn_send_from_host_cmd {
3403 	__le32 tlv_header;
3404 	__le32 vdev_id;
3405 	__le32 data_len;
3406 	union {
3407 		__le32 frag_ptr;
3408 		__le32 frag_ptr_lo;
3409 	};
3410 	__le32 frame_ctrl;
3411 	__le32 dtim_flag;
3412 	__le32 bcn_antenna;
3413 	__le32 frag_ptr_hi;
3414 };
3415 
3416 #define WMI_CHAN_INFO_MODE		GENMASK(5, 0)
3417 #define WMI_CHAN_INFO_HT40_PLUS		BIT(6)
3418 #define WMI_CHAN_INFO_PASSIVE		BIT(7)
3419 #define WMI_CHAN_INFO_ADHOC_ALLOWED	BIT(8)
3420 #define WMI_CHAN_INFO_AP_DISABLED	BIT(9)
3421 #define WMI_CHAN_INFO_DFS		BIT(10)
3422 #define WMI_CHAN_INFO_ALLOW_HT		BIT(11)
3423 #define WMI_CHAN_INFO_ALLOW_VHT		BIT(12)
3424 #define WMI_CHAN_INFO_CHAN_CHANGE_CAUSE_CSA	BIT(13)
3425 #define WMI_CHAN_INFO_HALF_RATE		BIT(14)
3426 #define WMI_CHAN_INFO_QUARTER_RATE	BIT(15)
3427 #define WMI_CHAN_INFO_DFS_FREQ2		BIT(16)
3428 #define WMI_CHAN_INFO_ALLOW_HE		BIT(17)
3429 #define WMI_CHAN_INFO_PSC		BIT(18)
3430 
3431 #define WMI_CHAN_REG_INFO1_MIN_PWR	GENMASK(7, 0)
3432 #define WMI_CHAN_REG_INFO1_MAX_PWR	GENMASK(15, 8)
3433 #define WMI_CHAN_REG_INFO1_MAX_REG_PWR	GENMASK(23, 16)
3434 #define WMI_CHAN_REG_INFO1_REG_CLS	GENMASK(31, 24)
3435 
3436 #define WMI_CHAN_REG_INFO2_ANT_MAX	GENMASK(7, 0)
3437 #define WMI_CHAN_REG_INFO2_MAX_TX_PWR	GENMASK(15, 8)
3438 
3439 struct ath12k_wmi_channel_params {
3440 	__le32 tlv_header;
3441 	__le32 mhz;
3442 	__le32 band_center_freq1;
3443 	__le32 band_center_freq2;
3444 	__le32 info;
3445 	__le32 reg_info_1;
3446 	__le32 reg_info_2;
3447 } __packed;
3448 
3449 enum wmi_sta_ps_mode {
3450 	WMI_STA_PS_MODE_DISABLED = 0,
3451 	WMI_STA_PS_MODE_ENABLED = 1,
3452 };
3453 
3454 #define WMI_SMPS_MASK_LOWER_16BITS 0xFF
3455 #define WMI_SMPS_MASK_UPPER_3BITS 0x7
3456 #define WMI_SMPS_PARAM_VALUE_SHIFT 29
3457 
3458 #define ATH12K_WMI_FW_HANG_ASSERT_TYPE 1
3459 #define ATH12K_WMI_FW_HANG_DELAY 0
3460 
3461 /* type, 0:unused 1: ASSERT 2: not respond detect command
3462  * delay_time_ms, the simulate will delay time
3463  */
3464 
3465 struct wmi_force_fw_hang_cmd {
3466 	__le32 tlv_header;
3467 	__le32 type;
3468 	__le32 delay_time_ms;
3469 } __packed;
3470 
3471 struct wmi_vdev_set_param_cmd {
3472 	__le32 tlv_header;
3473 	__le32 vdev_id;
3474 	__le32 param_id;
3475 	__le32 param_value;
3476 } __packed;
3477 
3478 struct wmi_get_pdev_temperature_cmd {
3479 	__le32 tlv_header;
3480 	__le32 param;
3481 	__le32 pdev_id;
3482 } __packed;
3483 
3484 #define WMI_P2P_MAX_NOA_DESCRIPTORS		4
3485 
3486 struct wmi_p2p_noa_event {
3487 	__le32 vdev_id;
3488 } __packed;
3489 
3490 struct ath12k_wmi_p2p_noa_descriptor {
3491 	__le32 type_count; /* 255: continuous schedule, 0: reserved */
3492 	__le32 duration;  /* Absent period duration in micro seconds */
3493 	__le32 interval;   /* Absent period interval in micro seconds */
3494 	__le32 start_time; /* 32 bit tsf time when in starts */
3495 } __packed;
3496 
3497 #define WMI_P2P_NOA_INFO_CHANGED_FLAG		BIT(0)
3498 #define WMI_P2P_NOA_INFO_INDEX			GENMASK(15, 8)
3499 #define WMI_P2P_NOA_INFO_OPP_PS			BIT(16)
3500 #define WMI_P2P_NOA_INFO_CTWIN_TU		GENMASK(23, 17)
3501 #define WMI_P2P_NOA_INFO_DESC_NUM		GENMASK(31, 24)
3502 
3503 struct ath12k_wmi_p2p_noa_info {
3504 	/* Bit 0 - Flag to indicate an update in NOA schedule
3505 	 * Bits 7-1 - Reserved
3506 	 * Bits 15-8 - Index (identifies the instance of NOA sub element)
3507 	 * Bit  16 - Opp PS state of the AP
3508 	 * Bits 23-17 -  Ctwindow in TUs
3509 	 * Bits 31-24 -  Number of NOA descriptors
3510 	 */
3511 	__le32 noa_attr;
3512 	struct ath12k_wmi_p2p_noa_descriptor descriptors[WMI_P2P_MAX_NOA_DESCRIPTORS];
3513 } __packed;
3514 
3515 #define WMI_BEACON_TX_BUFFER_SIZE	512
3516 
3517 struct wmi_bcn_tmpl_cmd {
3518 	__le32 tlv_header;
3519 	__le32 vdev_id;
3520 	__le32 tim_ie_offset;
3521 	__le32 buf_len;
3522 	__le32 csa_switch_count_offset;
3523 	__le32 ext_csa_switch_count_offset;
3524 	__le32 csa_event_bitmap;
3525 	__le32 mbssid_ie_offset;
3526 	__le32 esp_ie_offset;
3527 } __packed;
3528 
3529 struct wmi_p2p_go_set_beacon_ie_cmd {
3530 	__le32 tlv_header;
3531 	__le32 vdev_id;
3532 	__le32 ie_buf_len;
3533 } __packed;
3534 
3535 struct wmi_vdev_install_key_cmd {
3536 	__le32 tlv_header;
3537 	__le32 vdev_id;
3538 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3539 	__le32 key_idx;
3540 	__le32 key_flags;
3541 	__le32 key_cipher;
3542 	__le64 key_rsc_counter;
3543 	__le64 key_global_rsc_counter;
3544 	__le64 key_tsc_counter;
3545 	u8 wpi_key_rsc_counter[16];
3546 	u8 wpi_key_tsc_counter[16];
3547 	__le32 key_len;
3548 	__le32 key_txmic_len;
3549 	__le32 key_rxmic_len;
3550 	__le32 is_group_key_id_valid;
3551 	__le32 group_key_id;
3552 
3553 	/* Followed by key_data containing key followed by
3554 	 * tx mic and then rx mic
3555 	 */
3556 } __packed;
3557 
3558 struct wmi_vdev_install_key_arg {
3559 	u32 vdev_id;
3560 	const u8 *macaddr;
3561 	u32 key_idx;
3562 	u32 key_flags;
3563 	u32 key_cipher;
3564 	u32 key_len;
3565 	u32 key_txmic_len;
3566 	u32 key_rxmic_len;
3567 	u64 key_rsc_counter;
3568 	const void *key_data;
3569 };
3570 
3571 #define WMI_MAX_SUPPORTED_RATES			128
3572 #define WMI_HOST_MAX_HECAP_PHY_SIZE		3
3573 #define WMI_HOST_MAX_HE_RATE_SET		3
3574 #define WMI_HECAP_TXRX_MCS_NSS_IDX_80		0
3575 #define WMI_HECAP_TXRX_MCS_NSS_IDX_160		1
3576 #define WMI_HECAP_TXRX_MCS_NSS_IDX_80_80	2
3577 
3578 struct wmi_rate_set_arg {
3579 	u32 num_rates;
3580 	u8 rates[WMI_MAX_SUPPORTED_RATES];
3581 };
3582 
3583 struct ath12k_wmi_peer_assoc_arg {
3584 	u32 vdev_id;
3585 	u32 peer_new_assoc;
3586 	u32 peer_associd;
3587 	u32 peer_flags;
3588 	u32 peer_caps;
3589 	u32 peer_listen_intval;
3590 	u32 peer_ht_caps;
3591 	u32 peer_max_mpdu;
3592 	u32 peer_mpdu_density;
3593 	u32 peer_rate_caps;
3594 	u32 peer_nss;
3595 	u32 peer_vht_caps;
3596 	u32 peer_phymode;
3597 	u32 peer_ht_info[2];
3598 	struct wmi_rate_set_arg peer_legacy_rates;
3599 	struct wmi_rate_set_arg peer_ht_rates;
3600 	u32 rx_max_rate;
3601 	u32 rx_mcs_set;
3602 	u32 tx_max_rate;
3603 	u32 tx_mcs_set;
3604 	u8 vht_capable;
3605 	u8 min_data_rate;
3606 	u32 tx_max_mcs_nss;
3607 	u32 peer_bw_rxnss_override;
3608 	bool is_pmf_enabled;
3609 	bool is_wme_set;
3610 	bool qos_flag;
3611 	bool apsd_flag;
3612 	bool ht_flag;
3613 	bool bw_40;
3614 	bool bw_80;
3615 	bool bw_160;
3616 	bool bw_320;
3617 	bool stbc_flag;
3618 	bool ldpc_flag;
3619 	bool static_mimops_flag;
3620 	bool dynamic_mimops_flag;
3621 	bool spatial_mux_flag;
3622 	bool vht_flag;
3623 	bool vht_ng_flag;
3624 	bool need_ptk_4_way;
3625 	bool need_gtk_2_way;
3626 	bool auth_flag;
3627 	bool safe_mode_enabled;
3628 	bool amsdu_disable;
3629 	/* Use common structure */
3630 	u8 peer_mac[ETH_ALEN];
3631 
3632 	bool he_flag;
3633 	u32 peer_he_cap_macinfo[2];
3634 	u32 peer_he_cap_macinfo_internal;
3635 	u32 peer_he_caps_6ghz;
3636 	u32 peer_he_ops;
3637 	u32 peer_he_cap_phyinfo[WMI_HOST_MAX_HECAP_PHY_SIZE];
3638 	u32 peer_he_mcs_count;
3639 	u32 peer_he_rx_mcs_set[WMI_HOST_MAX_HE_RATE_SET];
3640 	u32 peer_he_tx_mcs_set[WMI_HOST_MAX_HE_RATE_SET];
3641 	bool twt_responder;
3642 	bool twt_requester;
3643 	struct ath12k_wmi_ppe_threshold_arg peer_ppet;
3644 	bool eht_flag;
3645 	u32 peer_eht_cap_mac[WMI_MAX_EHTCAP_MAC_SIZE];
3646 	u32 peer_eht_cap_phy[WMI_MAX_EHTCAP_PHY_SIZE];
3647 	u32 peer_eht_mcs_count;
3648 	u32 peer_eht_rx_mcs_set[WMI_MAX_EHTCAP_RATE_SET];
3649 	u32 peer_eht_tx_mcs_set[WMI_MAX_EHTCAP_RATE_SET];
3650 	struct ath12k_wmi_ppe_threshold_arg peer_eht_ppet;
3651 	u32 punct_bitmap;
3652 };
3653 
3654 struct wmi_peer_assoc_complete_cmd {
3655 	__le32 tlv_header;
3656 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3657 	__le32 vdev_id;
3658 	__le32 peer_new_assoc;
3659 	__le32 peer_associd;
3660 	__le32 peer_flags;
3661 	__le32 peer_caps;
3662 	__le32 peer_listen_intval;
3663 	__le32 peer_ht_caps;
3664 	__le32 peer_max_mpdu;
3665 	__le32 peer_mpdu_density;
3666 	__le32 peer_rate_caps;
3667 	__le32 peer_nss;
3668 	__le32 peer_vht_caps;
3669 	__le32 peer_phymode;
3670 	__le32 peer_ht_info[2];
3671 	__le32 num_peer_legacy_rates;
3672 	__le32 num_peer_ht_rates;
3673 	__le32 peer_bw_rxnss_override;
3674 	struct ath12k_wmi_ppe_threshold_params peer_ppet;
3675 	__le32 peer_he_cap_info;
3676 	__le32 peer_he_ops;
3677 	__le32 peer_he_cap_phy[WMI_MAX_HECAP_PHY_SIZE];
3678 	__le32 peer_he_mcs;
3679 	__le32 peer_he_cap_info_ext;
3680 	__le32 peer_he_cap_info_internal;
3681 	__le32 min_data_rate;
3682 	__le32 peer_he_caps_6ghz;
3683 	__le32 sta_type;
3684 	__le32 bss_max_idle_option;
3685 	__le32 auth_mode;
3686 	__le32 peer_flags_ext;
3687 	__le32 punct_bitmap;
3688 	__le32 peer_eht_cap_mac[WMI_MAX_EHTCAP_MAC_SIZE];
3689 	__le32 peer_eht_cap_phy[WMI_MAX_EHTCAP_PHY_SIZE];
3690 	__le32 peer_eht_ops;
3691 	struct ath12k_wmi_ppe_threshold_params peer_eht_ppet;
3692 } __packed;
3693 
3694 struct wmi_stop_scan_cmd {
3695 	__le32 tlv_header;
3696 	__le32 requestor;
3697 	__le32 scan_id;
3698 	__le32 req_type;
3699 	__le32 vdev_id;
3700 	__le32 pdev_id;
3701 } __packed;
3702 
3703 struct ath12k_wmi_scan_chan_list_arg {
3704 	u32 pdev_id;
3705 	u16 nallchans;
3706 	struct ath12k_wmi_channel_arg channel[];
3707 };
3708 
3709 struct wmi_scan_chan_list_cmd {
3710 	__le32 tlv_header;
3711 	__le32 num_scan_chans;
3712 	__le32 flags;
3713 	__le32 pdev_id;
3714 } __packed;
3715 
3716 #define WMI_MGMT_SEND_DOWNLD_LEN	64
3717 
3718 #define WMI_TX_PARAMS_DWORD0_POWER		GENMASK(7, 0)
3719 #define WMI_TX_PARAMS_DWORD0_MCS_MASK		GENMASK(19, 8)
3720 #define WMI_TX_PARAMS_DWORD0_NSS_MASK		GENMASK(27, 20)
3721 #define WMI_TX_PARAMS_DWORD0_RETRY_LIMIT	GENMASK(31, 28)
3722 
3723 #define WMI_TX_PARAMS_DWORD1_CHAIN_MASK		GENMASK(7, 0)
3724 #define WMI_TX_PARAMS_DWORD1_BW_MASK		GENMASK(14, 8)
3725 #define WMI_TX_PARAMS_DWORD1_PREAMBLE_TYPE	GENMASK(19, 15)
3726 #define WMI_TX_PARAMS_DWORD1_FRAME_TYPE		BIT(20)
3727 #define WMI_TX_PARAMS_DWORD1_RSVD		GENMASK(31, 21)
3728 
3729 struct wmi_mgmt_send_cmd {
3730 	__le32 tlv_header;
3731 	__le32 vdev_id;
3732 	__le32 desc_id;
3733 	__le32 chanfreq;
3734 	__le32 paddr_lo;
3735 	__le32 paddr_hi;
3736 	__le32 frame_len;
3737 	__le32 buf_len;
3738 	__le32 tx_params_valid;
3739 
3740 	/* This TLV is followed by struct wmi_mgmt_frame */
3741 
3742 	/* Followed by struct wmi_mgmt_send_params */
3743 } __packed;
3744 
3745 struct wmi_sta_powersave_mode_cmd {
3746 	__le32 tlv_header;
3747 	__le32 vdev_id;
3748 	__le32 sta_ps_mode;
3749 } __packed;
3750 
3751 struct wmi_sta_smps_force_mode_cmd {
3752 	__le32 tlv_header;
3753 	__le32 vdev_id;
3754 	__le32 forced_mode;
3755 } __packed;
3756 
3757 struct wmi_sta_smps_param_cmd {
3758 	__le32 tlv_header;
3759 	__le32 vdev_id;
3760 	__le32 param;
3761 	__le32 value;
3762 } __packed;
3763 
3764 struct ath12k_wmi_bcn_prb_info_params {
3765 	__le32 tlv_header;
3766 	__le32 caps;
3767 	__le32 erp;
3768 } __packed;
3769 
3770 enum {
3771 	WMI_PDEV_SUSPEND,
3772 	WMI_PDEV_SUSPEND_AND_DISABLE_INTR,
3773 };
3774 
3775 struct wmi_pdev_green_ap_ps_enable_cmd_param {
3776 	__le32 tlv_header;
3777 	__le32 pdev_id;
3778 	__le32 enable;
3779 } __packed;
3780 
3781 struct ath12k_wmi_ap_ps_arg {
3782 	u32 vdev_id;
3783 	u32 param;
3784 	u32 value;
3785 };
3786 
3787 enum set_init_cc_type {
3788 	WMI_COUNTRY_INFO_TYPE_ALPHA,
3789 	WMI_COUNTRY_INFO_TYPE_COUNTRY_CODE,
3790 	WMI_COUNTRY_INFO_TYPE_REGDOMAIN,
3791 };
3792 
3793 enum set_init_cc_flags {
3794 	INVALID_CC,
3795 	CC_IS_SET,
3796 	REGDMN_IS_SET,
3797 	ALPHA_IS_SET,
3798 };
3799 
3800 struct ath12k_wmi_init_country_arg {
3801 	union {
3802 		u16 country_code;
3803 		u16 regdom_id;
3804 		u8 alpha2[3];
3805 	} cc_info;
3806 	enum set_init_cc_flags flags;
3807 };
3808 
3809 struct wmi_init_country_cmd {
3810 	__le32 tlv_header;
3811 	__le32 pdev_id;
3812 	__le32 init_cc_type;
3813 	union {
3814 		__le32 country_code;
3815 		__le32 regdom_id;
3816 		__le32 alpha2;
3817 	} cc_info;
3818 } __packed;
3819 
3820 struct wmi_delba_send_cmd {
3821 	__le32 tlv_header;
3822 	__le32 vdev_id;
3823 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3824 	__le32 tid;
3825 	__le32 initiator;
3826 	__le32 reasoncode;
3827 } __packed;
3828 
3829 struct wmi_addba_setresponse_cmd {
3830 	__le32 tlv_header;
3831 	__le32 vdev_id;
3832 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3833 	__le32 tid;
3834 	__le32 statuscode;
3835 } __packed;
3836 
3837 struct wmi_addba_send_cmd {
3838 	__le32 tlv_header;
3839 	__le32 vdev_id;
3840 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3841 	__le32 tid;
3842 	__le32 buffersize;
3843 } __packed;
3844 
3845 struct wmi_addba_clear_resp_cmd {
3846 	__le32 tlv_header;
3847 	__le32 vdev_id;
3848 	struct ath12k_wmi_mac_addr_params peer_macaddr;
3849 } __packed;
3850 
3851 #define DFS_PHYERR_UNIT_TEST_CMD 0
3852 #define DFS_UNIT_TEST_MODULE	0x2b
3853 #define DFS_UNIT_TEST_TOKEN	0xAA
3854 
3855 enum dfs_test_args_idx {
3856 	DFS_TEST_CMDID = 0,
3857 	DFS_TEST_PDEV_ID,
3858 	DFS_TEST_RADAR_PARAM,
3859 	DFS_MAX_TEST_ARGS,
3860 };
3861 
3862 struct wmi_dfs_unit_test_arg {
3863 	u32 cmd_id;
3864 	u32 pdev_id;
3865 	u32 radar_param;
3866 };
3867 
3868 struct wmi_unit_test_cmd {
3869 	__le32 tlv_header;
3870 	__le32 vdev_id;
3871 	__le32 module_id;
3872 	__le32 num_args;
3873 	__le32 diag_token;
3874 	/* Followed by test args*/
3875 } __packed;
3876 
3877 #define MAX_SUPPORTED_RATES 128
3878 
3879 struct ath12k_wmi_vht_rate_set_params {
3880 	__le32 tlv_header;
3881 	__le32 rx_max_rate;
3882 	__le32 rx_mcs_set;
3883 	__le32 tx_max_rate;
3884 	__le32 tx_mcs_set;
3885 	__le32 tx_max_mcs_nss;
3886 } __packed;
3887 
3888 struct ath12k_wmi_he_rate_set_params {
3889 	__le32 tlv_header;
3890 	__le32 rx_mcs_set;
3891 	__le32 tx_mcs_set;
3892 } __packed;
3893 
3894 struct ath12k_wmi_eht_rate_set_params {
3895 	__le32 tlv_header;
3896 	__le32 rx_mcs_set;
3897 	__le32 tx_mcs_set;
3898 } __packed;
3899 
3900 #define MAX_REG_RULES 10
3901 #define REG_ALPHA2_LEN 2
3902 #define MAX_6G_REG_RULES 5
3903 #define REG_US_5G_NUM_REG_RULES 4
3904 
3905 enum wmi_start_event_param {
3906 	WMI_VDEV_START_RESP_EVENT = 0,
3907 	WMI_VDEV_RESTART_RESP_EVENT,
3908 };
3909 
3910 struct wmi_vdev_start_resp_event {
3911 	__le32 vdev_id;
3912 	__le32 requestor_id;
3913 	/* enum wmi_start_event_param */
3914 	__le32 resp_type;
3915 	__le32 status;
3916 	__le32 chain_mask;
3917 	__le32 smps_mode;
3918 	union {
3919 		__le32 mac_id;
3920 		__le32 pdev_id;
3921 	};
3922 	__le32 cfgd_tx_streams;
3923 	__le32 cfgd_rx_streams;
3924 } __packed;
3925 
3926 /* VDEV start response status codes */
3927 enum wmi_vdev_start_resp_status_code {
3928 	WMI_VDEV_START_RESPONSE_STATUS_SUCCESS = 0,
3929 	WMI_VDEV_START_RESPONSE_INVALID_VDEVID = 1,
3930 	WMI_VDEV_START_RESPONSE_NOT_SUPPORTED = 2,
3931 	WMI_VDEV_START_RESPONSE_DFS_VIOLATION = 3,
3932 	WMI_VDEV_START_RESPONSE_INVALID_REGDOMAIN = 4,
3933 };
3934 
3935 enum wmi_reg_6g_ap_type {
3936 	WMI_REG_INDOOR_AP = 0,
3937 	WMI_REG_STD_POWER_AP = 1,
3938 	WMI_REG_VLP_AP = 2,
3939 	WMI_REG_CURRENT_MAX_AP_TYPE,
3940 	WMI_REG_MAX_SUPP_AP_TYPE = WMI_REG_VLP_AP,
3941 	WMI_REG_MAX_AP_TYPE = 7,
3942 };
3943 
3944 enum wmi_reg_6g_client_type {
3945 	WMI_REG_DEFAULT_CLIENT = 0,
3946 	WMI_REG_SUBORDINATE_CLIENT = 1,
3947 	WMI_REG_MAX_CLIENT_TYPE = 2,
3948 };
3949 
3950 /* Regulatory Rule Flags Passed by FW */
3951 #define REGULATORY_CHAN_DISABLED     BIT(0)
3952 #define REGULATORY_CHAN_NO_IR        BIT(1)
3953 #define REGULATORY_CHAN_RADAR        BIT(3)
3954 #define REGULATORY_CHAN_NO_OFDM      BIT(6)
3955 #define REGULATORY_CHAN_INDOOR_ONLY  BIT(9)
3956 
3957 #define REGULATORY_CHAN_NO_HT40      BIT(4)
3958 #define REGULATORY_CHAN_NO_80MHZ     BIT(7)
3959 #define REGULATORY_CHAN_NO_160MHZ    BIT(8)
3960 #define REGULATORY_CHAN_NO_20MHZ     BIT(11)
3961 #define REGULATORY_CHAN_NO_10MHZ     BIT(12)
3962 
3963 enum {
3964 	WMI_REG_SET_CC_STATUS_PASS = 0,
3965 	WMI_REG_CURRENT_ALPHA2_NOT_FOUND = 1,
3966 	WMI_REG_INIT_ALPHA2_NOT_FOUND = 2,
3967 	WMI_REG_SET_CC_CHANGE_NOT_ALLOWED = 3,
3968 	WMI_REG_SET_CC_STATUS_NO_MEMORY = 4,
3969 	WMI_REG_SET_CC_STATUS_FAIL = 5,
3970 };
3971 
3972 #define WMI_REG_CLIENT_MAX 4
3973 
3974 struct wmi_reg_chan_list_cc_ext_event {
3975 	__le32 status_code;
3976 	__le32 phy_id;
3977 	__le32 alpha2;
3978 	__le32 num_phy;
3979 	__le32 country_id;
3980 	__le32 domain_code;
3981 	__le32 dfs_region;
3982 	__le32 phybitmap;
3983 	__le32 min_bw_2g;
3984 	__le32 max_bw_2g;
3985 	__le32 min_bw_5g;
3986 	__le32 max_bw_5g;
3987 	__le32 num_2g_reg_rules;
3988 	__le32 num_5g_reg_rules;
3989 	__le32 client_type;
3990 	__le32 rnr_tpe_usable;
3991 	__le32 unspecified_ap_usable;
3992 	__le32 domain_code_6g_ap_lpi;
3993 	__le32 domain_code_6g_ap_sp;
3994 	__le32 domain_code_6g_ap_vlp;
3995 	__le32 domain_code_6g_client_lpi[WMI_REG_CLIENT_MAX];
3996 	__le32 domain_code_6g_client_sp[WMI_REG_CLIENT_MAX];
3997 	__le32 domain_code_6g_client_vlp[WMI_REG_CLIENT_MAX];
3998 	__le32 domain_code_6g_super_id;
3999 	__le32 min_bw_6g_ap_sp;
4000 	__le32 max_bw_6g_ap_sp;
4001 	__le32 min_bw_6g_ap_lpi;
4002 	__le32 max_bw_6g_ap_lpi;
4003 	__le32 min_bw_6g_ap_vlp;
4004 	__le32 max_bw_6g_ap_vlp;
4005 	__le32 min_bw_6g_client_sp[WMI_REG_CLIENT_MAX];
4006 	__le32 max_bw_6g_client_sp[WMI_REG_CLIENT_MAX];
4007 	__le32 min_bw_6g_client_lpi[WMI_REG_CLIENT_MAX];
4008 	__le32 max_bw_6g_client_lpi[WMI_REG_CLIENT_MAX];
4009 	__le32 min_bw_6g_client_vlp[WMI_REG_CLIENT_MAX];
4010 	__le32 max_bw_6g_client_vlp[WMI_REG_CLIENT_MAX];
4011 	__le32 num_6g_reg_rules_ap_sp;
4012 	__le32 num_6g_reg_rules_ap_lpi;
4013 	__le32 num_6g_reg_rules_ap_vlp;
4014 	__le32 num_6g_reg_rules_cl_sp[WMI_REG_CLIENT_MAX];
4015 	__le32 num_6g_reg_rules_cl_lpi[WMI_REG_CLIENT_MAX];
4016 	__le32 num_6g_reg_rules_cl_vlp[WMI_REG_CLIENT_MAX];
4017 } __packed;
4018 
4019 struct ath12k_wmi_reg_rule_ext_params {
4020 	__le32 tlv_header;
4021 	__le32 freq_info;
4022 	__le32 bw_pwr_info;
4023 	__le32 flag_info;
4024 	__le32 psd_power_info;
4025 } __packed;
4026 
4027 struct wmi_vdev_delete_resp_event {
4028 	__le32 vdev_id;
4029 } __packed;
4030 
4031 struct wmi_peer_delete_resp_event {
4032 	__le32 vdev_id;
4033 	struct ath12k_wmi_mac_addr_params peer_macaddr;
4034 } __packed;
4035 
4036 struct wmi_bcn_tx_status_event {
4037 	__le32 vdev_id;
4038 	__le32 tx_status;
4039 } __packed;
4040 
4041 struct wmi_vdev_stopped_event {
4042 	__le32 vdev_id;
4043 } __packed;
4044 
4045 struct wmi_pdev_bss_chan_info_event {
4046 	__le32 pdev_id;
4047 	__le32 freq;	/* Units in MHz */
4048 	__le32 noise_floor;	/* units are dBm */
4049 	/* rx clear - how often the channel was unused */
4050 	__le32 rx_clear_count_low;
4051 	__le32 rx_clear_count_high;
4052 	/* cycle count - elapsed time during measured period, in clock ticks */
4053 	__le32 cycle_count_low;
4054 	__le32 cycle_count_high;
4055 	/* tx cycle count - elapsed time spent in tx, in clock ticks */
4056 	__le32 tx_cycle_count_low;
4057 	__le32 tx_cycle_count_high;
4058 	/* rx cycle count - elapsed time spent in rx, in clock ticks */
4059 	__le32 rx_cycle_count_low;
4060 	__le32 rx_cycle_count_high;
4061 	/*rx_cycle cnt for my bss in 64bits format */
4062 	__le32 rx_bss_cycle_count_low;
4063 	__le32 rx_bss_cycle_count_high;
4064 } __packed;
4065 
4066 #define WMI_VDEV_INSTALL_KEY_COMPL_STATUS_SUCCESS 0
4067 
4068 struct wmi_vdev_install_key_compl_event {
4069 	__le32 vdev_id;
4070 	struct ath12k_wmi_mac_addr_params peer_macaddr;
4071 	__le32 key_idx;
4072 	__le32 key_flags;
4073 	__le32 status;
4074 } __packed;
4075 
4076 struct wmi_vdev_install_key_complete_arg {
4077 	u32 vdev_id;
4078 	const u8 *macaddr;
4079 	u32 key_idx;
4080 	u32 key_flags;
4081 	u32 status;
4082 };
4083 
4084 struct wmi_peer_assoc_conf_event {
4085 	__le32 vdev_id;
4086 	struct ath12k_wmi_mac_addr_params peer_macaddr;
4087 } __packed;
4088 
4089 struct wmi_peer_assoc_conf_arg {
4090 	u32 vdev_id;
4091 	const u8 *macaddr;
4092 };
4093 
4094 struct wmi_fils_discovery_event {
4095 	__le32 vdev_id;
4096 	__le32 fils_tt;
4097 	__le32 tbtt;
4098 } __packed;
4099 
4100 struct wmi_probe_resp_tx_status_event {
4101 	__le32 vdev_id;
4102 	__le32 tx_status;
4103 } __packed;
4104 
4105 struct wmi_pdev_ctl_failsafe_chk_event {
4106 	__le32 pdev_id;
4107 	__le32 ctl_failsafe_status;
4108 } __packed;
4109 
4110 struct ath12k_wmi_pdev_csa_event {
4111 	__le32 pdev_id;
4112 	__le32 current_switch_count;
4113 	__le32 num_vdevs;
4114 } __packed;
4115 
4116 struct ath12k_wmi_pdev_radar_event {
4117 	__le32 pdev_id;
4118 	__le32 detection_mode;
4119 	__le32 chan_freq;
4120 	__le32 chan_width;
4121 	__le32 detector_id;
4122 	__le32 segment_id;
4123 	__le32 timestamp;
4124 	__le32 is_chirp;
4125 	a_sle32 freq_offset;
4126 	a_sle32 sidx;
4127 } __packed;
4128 
4129 struct wmi_pdev_temperature_event {
4130 	/* temperature value in Celsius degree */
4131 	a_sle32 temp;
4132 	__le32 pdev_id;
4133 } __packed;
4134 
4135 #define WMI_RX_STATUS_OK			0x00
4136 #define WMI_RX_STATUS_ERR_CRC			0x01
4137 #define WMI_RX_STATUS_ERR_DECRYPT		0x08
4138 #define WMI_RX_STATUS_ERR_MIC			0x10
4139 #define WMI_RX_STATUS_ERR_KEY_CACHE_MISS	0x20
4140 
4141 #define WLAN_MGMT_TXRX_HOST_MAX_ANTENNA 4
4142 
4143 struct ath12k_wmi_mgmt_rx_arg {
4144 	u32 chan_freq;
4145 	u32 channel;
4146 	u32 snr;
4147 	u8 rssi_ctl[WLAN_MGMT_TXRX_HOST_MAX_ANTENNA];
4148 	u32 rate;
4149 	enum wmi_phy_mode phy_mode;
4150 	u32 buf_len;
4151 	int status;
4152 	u32 flags;
4153 	int rssi;
4154 	u32 tsf_delta;
4155 	u8 pdev_id;
4156 };
4157 
4158 #define ATH_MAX_ANTENNA 4
4159 
4160 struct ath12k_wmi_mgmt_rx_params {
4161 	__le32 channel;
4162 	__le32 snr;
4163 	__le32 rate;
4164 	__le32 phy_mode;
4165 	__le32 buf_len;
4166 	__le32 status;
4167 	__le32 rssi_ctl[ATH_MAX_ANTENNA];
4168 	__le32 flags;
4169 	a_sle32 rssi;
4170 	__le32 tsf_delta;
4171 	__le32 rx_tsf_l32;
4172 	__le32 rx_tsf_u32;
4173 	__le32 pdev_id;
4174 	__le32 chan_freq;
4175 } __packed;
4176 
4177 #define MAX_ANTENNA_EIGHT 8
4178 
4179 struct wmi_mgmt_tx_compl_event {
4180 	__le32 desc_id;
4181 	__le32 status;
4182 	__le32 pdev_id;
4183 } __packed;
4184 
4185 struct wmi_scan_event {
4186 	__le32 event_type; /* %WMI_SCAN_EVENT_ */
4187 	__le32 reason; /* %WMI_SCAN_REASON_ */
4188 	__le32 channel_freq; /* only valid for WMI_SCAN_EVENT_FOREIGN_CHANNEL */
4189 	__le32 scan_req_id;
4190 	__le32 scan_id;
4191 	__le32 vdev_id;
4192 	/* TSF Timestamp when the scan event (%WMI_SCAN_EVENT_) is completed
4193 	 * In case of AP it is TSF of the AP vdev
4194 	 * In case of STA connected state, this is the TSF of the AP
4195 	 * In case of STA not connected, it will be the free running HW timer
4196 	 */
4197 	__le32 tsf_timestamp;
4198 } __packed;
4199 
4200 struct wmi_peer_sta_kickout_arg {
4201 	const u8 *mac_addr;
4202 };
4203 
4204 struct wmi_peer_sta_kickout_event {
4205 	struct ath12k_wmi_mac_addr_params peer_macaddr;
4206 } __packed;
4207 
4208 #define WMI_ROAM_REASON_MASK		GENMASK(3, 0)
4209 #define WMI_ROAM_SUBNET_STATUS_MASK	GENMASK(5, 4)
4210 
4211 enum wmi_roam_reason {
4212 	WMI_ROAM_REASON_BETTER_AP = 1,
4213 	WMI_ROAM_REASON_BEACON_MISS = 2,
4214 	WMI_ROAM_REASON_LOW_RSSI = 3,
4215 	WMI_ROAM_REASON_SUITABLE_AP_FOUND = 4,
4216 	WMI_ROAM_REASON_HO_FAILED = 5,
4217 
4218 	/* keep last */
4219 	WMI_ROAM_REASON_MAX,
4220 };
4221 
4222 struct wmi_roam_event {
4223 	__le32 vdev_id;
4224 	__le32 reason;
4225 	__le32 rssi;
4226 } __packed;
4227 
4228 #define WMI_CHAN_INFO_START_RESP 0
4229 #define WMI_CHAN_INFO_END_RESP 1
4230 
4231 struct wmi_chan_info_event {
4232 	__le32 err_code;
4233 	__le32 freq;
4234 	__le32 cmd_flags;
4235 	__le32 noise_floor;
4236 	__le32 rx_clear_count;
4237 	__le32 cycle_count;
4238 	__le32 chan_tx_pwr_range;
4239 	__le32 chan_tx_pwr_tp;
4240 	__le32 rx_frame_count;
4241 	__le32 my_bss_rx_cycle_count;
4242 	__le32 rx_11b_mode_data_duration;
4243 	__le32 tx_frame_cnt;
4244 	__le32 mac_clk_mhz;
4245 	__le32 vdev_id;
4246 } __packed;
4247 
4248 struct ath12k_wmi_target_cap_arg {
4249 	u32 phy_capability;
4250 	u32 max_frag_entry;
4251 	u32 num_rf_chains;
4252 	u32 ht_cap_info;
4253 	u32 vht_cap_info;
4254 	u32 vht_supp_mcs;
4255 	u32 hw_min_tx_power;
4256 	u32 hw_max_tx_power;
4257 	u32 sys_cap_info;
4258 	u32 min_pkt_size_enable;
4259 	u32 max_bcn_ie_size;
4260 	u32 max_num_scan_channels;
4261 	u32 max_supported_macs;
4262 	u32 wmi_fw_sub_feat_caps;
4263 	u32 txrx_chainmask;
4264 	u32 default_dbs_hw_mode_index;
4265 	u32 num_msdu_desc;
4266 };
4267 
4268 enum wmi_vdev_type {
4269 	WMI_VDEV_TYPE_AP      = 1,
4270 	WMI_VDEV_TYPE_STA     = 2,
4271 	WMI_VDEV_TYPE_IBSS    = 3,
4272 	WMI_VDEV_TYPE_MONITOR = 4,
4273 };
4274 
4275 enum wmi_vdev_subtype {
4276 	WMI_VDEV_SUBTYPE_NONE,
4277 	WMI_VDEV_SUBTYPE_P2P_DEVICE,
4278 	WMI_VDEV_SUBTYPE_P2P_CLIENT,
4279 	WMI_VDEV_SUBTYPE_P2P_GO,
4280 	WMI_VDEV_SUBTYPE_PROXY_STA,
4281 	WMI_VDEV_SUBTYPE_MESH_NON_11S,
4282 	WMI_VDEV_SUBTYPE_MESH_11S,
4283 };
4284 
4285 enum wmi_sta_powersave_param {
4286 	WMI_STA_PS_PARAM_RX_WAKE_POLICY = 0,
4287 	WMI_STA_PS_PARAM_TX_WAKE_THRESHOLD = 1,
4288 	WMI_STA_PS_PARAM_PSPOLL_COUNT = 2,
4289 	WMI_STA_PS_PARAM_INACTIVITY_TIME = 3,
4290 	WMI_STA_PS_PARAM_UAPSD = 4,
4291 };
4292 
4293 enum wmi_sta_ps_param_uapsd {
4294 	WMI_STA_PS_UAPSD_AC0_DELIVERY_EN = (1 << 0),
4295 	WMI_STA_PS_UAPSD_AC0_TRIGGER_EN  = (1 << 1),
4296 	WMI_STA_PS_UAPSD_AC1_DELIVERY_EN = (1 << 2),
4297 	WMI_STA_PS_UAPSD_AC1_TRIGGER_EN  = (1 << 3),
4298 	WMI_STA_PS_UAPSD_AC2_DELIVERY_EN = (1 << 4),
4299 	WMI_STA_PS_UAPSD_AC2_TRIGGER_EN  = (1 << 5),
4300 	WMI_STA_PS_UAPSD_AC3_DELIVERY_EN = (1 << 6),
4301 	WMI_STA_PS_UAPSD_AC3_TRIGGER_EN  = (1 << 7),
4302 };
4303 
4304 enum wmi_sta_ps_param_tx_wake_threshold {
4305 	WMI_STA_PS_TX_WAKE_THRESHOLD_NEVER = 0,
4306 	WMI_STA_PS_TX_WAKE_THRESHOLD_ALWAYS = 1,
4307 
4308 	/* Values greater than one indicate that many TX attempts per beacon
4309 	 * interval before the STA will wake up
4310 	 */
4311 };
4312 
4313 /* The maximum number of PS-Poll frames the FW will send in response to
4314  * traffic advertised in TIM before waking up (by sending a null frame with PS
4315  * = 0). Value 0 has a special meaning: there is no maximum count and the FW
4316  * will send as many PS-Poll as are necessary to retrieve buffered BU. This
4317  * parameter is used when the RX wake policy is
4318  * WMI_STA_PS_RX_WAKE_POLICY_POLL_UAPSD and ignored when the RX wake
4319  * policy is WMI_STA_PS_RX_WAKE_POLICY_WAKE.
4320  */
4321 enum wmi_sta_ps_param_pspoll_count {
4322 	WMI_STA_PS_PSPOLL_COUNT_NO_MAX = 0,
4323 	/* Values greater than 0 indicate the maximum number of PS-Poll frames
4324 	 * FW will send before waking up.
4325 	 */
4326 };
4327 
4328 /* U-APSD configuration of peer station from (re)assoc request and TSPECs */
4329 enum wmi_ap_ps_param_uapsd {
4330 	WMI_AP_PS_UAPSD_AC0_DELIVERY_EN = (1 << 0),
4331 	WMI_AP_PS_UAPSD_AC0_TRIGGER_EN  = (1 << 1),
4332 	WMI_AP_PS_UAPSD_AC1_DELIVERY_EN = (1 << 2),
4333 	WMI_AP_PS_UAPSD_AC1_TRIGGER_EN  = (1 << 3),
4334 	WMI_AP_PS_UAPSD_AC2_DELIVERY_EN = (1 << 4),
4335 	WMI_AP_PS_UAPSD_AC2_TRIGGER_EN  = (1 << 5),
4336 	WMI_AP_PS_UAPSD_AC3_DELIVERY_EN = (1 << 6),
4337 	WMI_AP_PS_UAPSD_AC3_TRIGGER_EN  = (1 << 7),
4338 };
4339 
4340 /* U-APSD maximum service period of peer station */
4341 enum wmi_ap_ps_peer_param_max_sp {
4342 	WMI_AP_PS_PEER_PARAM_MAX_SP_UNLIMITED = 0,
4343 	WMI_AP_PS_PEER_PARAM_MAX_SP_2 = 1,
4344 	WMI_AP_PS_PEER_PARAM_MAX_SP_4 = 2,
4345 	WMI_AP_PS_PEER_PARAM_MAX_SP_6 = 3,
4346 	MAX_WMI_AP_PS_PEER_PARAM_MAX_SP,
4347 };
4348 
4349 enum wmi_ap_ps_peer_param {
4350 	/** Set uapsd configuration for a given peer.
4351 	 *
4352 	 * This include the delivery and trigger enabled state for each AC.
4353 	 * The host MLME needs to set this based on AP capability and stations
4354 	 * request Set in the association request  received from the station.
4355 	 *
4356 	 * Lower 8 bits of the value specify the UAPSD configuration.
4357 	 *
4358 	 * (see enum wmi_ap_ps_param_uapsd)
4359 	 * The default value is 0.
4360 	 */
4361 	WMI_AP_PS_PEER_PARAM_UAPSD = 0,
4362 
4363 	/**
4364 	 * Set the service period for a UAPSD capable station
4365 	 *
4366 	 * The service period from wme ie in the (re)assoc request frame.
4367 	 *
4368 	 * (see enum wmi_ap_ps_peer_param_max_sp)
4369 	 */
4370 	WMI_AP_PS_PEER_PARAM_MAX_SP = 1,
4371 
4372 	/** Time in seconds for aging out buffered frames
4373 	 * for STA in power save
4374 	 */
4375 	WMI_AP_PS_PEER_PARAM_AGEOUT_TIME = 2,
4376 
4377 	/** Specify frame types that are considered SIFS
4378 	 * RESP trigger frame
4379 	 */
4380 	WMI_AP_PS_PEER_PARAM_SIFS_RESP_FRMTYPE = 3,
4381 
4382 	/** Specifies the trigger state of TID.
4383 	 * Valid only for UAPSD frame type
4384 	 */
4385 	WMI_AP_PS_PEER_PARAM_SIFS_RESP_UAPSD = 4,
4386 
4387 	/* Specifies the WNM sleep state of a STA */
4388 	WMI_AP_PS_PEER_PARAM_WNM_SLEEP = 5,
4389 };
4390 
4391 #define DISABLE_SIFS_RESPONSE_TRIGGER 0
4392 
4393 #define WMI_MAX_KEY_INDEX   3
4394 #define WMI_MAX_KEY_LEN     32
4395 
4396 enum wmi_key_type {
4397 	WMI_KEY_PAIRWISE = 0,
4398 	WMI_KEY_GROUP = 1,
4399 };
4400 
4401 enum wmi_cipher_type {
4402 	WMI_CIPHER_NONE = 0, /* clear key */
4403 	WMI_CIPHER_WEP = 1,
4404 	WMI_CIPHER_TKIP = 2,
4405 	WMI_CIPHER_AES_OCB = 3,
4406 	WMI_CIPHER_AES_CCM = 4,
4407 	WMI_CIPHER_WAPI = 5,
4408 	WMI_CIPHER_CKIP = 6,
4409 	WMI_CIPHER_AES_CMAC = 7,
4410 	WMI_CIPHER_ANY = 8,
4411 	WMI_CIPHER_AES_GCM = 9,
4412 	WMI_CIPHER_AES_GMAC = 10,
4413 };
4414 
4415 /* Value to disable fixed rate setting */
4416 #define WMI_FIXED_RATE_NONE	(0xffff)
4417 
4418 #define ATH12K_RC_VERSION_OFFSET	28
4419 #define ATH12K_RC_PREAMBLE_OFFSET	8
4420 #define ATH12K_RC_NSS_OFFSET		5
4421 
4422 #define ATH12K_HW_RATE_CODE(rate, nss, preamble)	\
4423 	((1 << ATH12K_RC_VERSION_OFFSET) |		\
4424 	 ((nss) << ATH12K_RC_NSS_OFFSET) |		\
4425 	 ((preamble) << ATH12K_RC_PREAMBLE_OFFSET) |	\
4426 	 (rate))
4427 
4428 /* Preamble types to be used with VDEV fixed rate configuration */
4429 enum wmi_rate_preamble {
4430 	WMI_RATE_PREAMBLE_OFDM,
4431 	WMI_RATE_PREAMBLE_CCK,
4432 	WMI_RATE_PREAMBLE_HT,
4433 	WMI_RATE_PREAMBLE_VHT,
4434 	WMI_RATE_PREAMBLE_HE,
4435 };
4436 
4437 /**
4438  * enum wmi_rtscts_prot_mode - Enable/Disable RTS/CTS and CTS2Self Protection.
4439  * @WMI_RTS_CTS_DISABLED: RTS/CTS protection is disabled.
4440  * @WMI_USE_RTS_CTS: RTS/CTS Enabled.
4441  * @WMI_USE_CTS2SELF: CTS to self protection Enabled.
4442  */
4443 enum wmi_rtscts_prot_mode {
4444 	WMI_RTS_CTS_DISABLED = 0,
4445 	WMI_USE_RTS_CTS = 1,
4446 	WMI_USE_CTS2SELF = 2,
4447 };
4448 
4449 /**
4450  * enum wmi_rtscts_profile - Selection of RTS CTS profile along with enabling
4451  *                           protection mode.
4452  * @WMI_RTSCTS_FOR_NO_RATESERIES: Neither of rate-series should use RTS-CTS
4453  * @WMI_RTSCTS_FOR_SECOND_RATESERIES: Only second rate-series will use RTS-CTS
4454  * @WMI_RTSCTS_ACROSS_SW_RETRIES: Only the second rate-series will use RTS-CTS,
4455  *                                but if there's a sw retry, both the rate
4456  *                                series will use RTS-CTS.
4457  * @WMI_RTSCTS_ERP: RTS/CTS used for ERP protection for every PPDU.
4458  * @WMI_RTSCTS_FOR_ALL_RATESERIES: Enable RTS-CTS for all rate series.
4459  */
4460 enum wmi_rtscts_profile {
4461 	WMI_RTSCTS_FOR_NO_RATESERIES = 0,
4462 	WMI_RTSCTS_FOR_SECOND_RATESERIES = 1,
4463 	WMI_RTSCTS_ACROSS_SW_RETRIES = 2,
4464 	WMI_RTSCTS_ERP = 3,
4465 	WMI_RTSCTS_FOR_ALL_RATESERIES = 4,
4466 };
4467 
4468 #define WMI_SKB_HEADROOM sizeof(struct wmi_cmd_hdr)
4469 
4470 enum wmi_sta_ps_param_rx_wake_policy {
4471 	WMI_STA_PS_RX_WAKE_POLICY_WAKE = 0,
4472 	WMI_STA_PS_RX_WAKE_POLICY_POLL_UAPSD = 1,
4473 };
4474 
4475 /* Do not change existing values! Used by ath12k_frame_mode parameter
4476  * module parameter.
4477  */
4478 enum ath12k_hw_txrx_mode {
4479 	ATH12K_HW_TXRX_RAW = 0,
4480 	ATH12K_HW_TXRX_NATIVE_WIFI = 1,
4481 	ATH12K_HW_TXRX_ETHERNET = 2,
4482 };
4483 
4484 struct wmi_wmm_params {
4485 	__le32 tlv_header;
4486 	__le32 cwmin;
4487 	__le32 cwmax;
4488 	__le32 aifs;
4489 	__le32 txoplimit;
4490 	__le32 acm;
4491 	__le32 no_ack;
4492 } __packed;
4493 
4494 struct wmi_wmm_params_arg {
4495 	u8 acm;
4496 	u8 aifs;
4497 	u16 cwmin;
4498 	u16 cwmax;
4499 	u16 txop;
4500 	u8 no_ack;
4501 };
4502 
4503 struct wmi_vdev_set_wmm_params_cmd {
4504 	__le32 tlv_header;
4505 	__le32 vdev_id;
4506 	struct wmi_wmm_params wmm_params[4];
4507 	__le32 wmm_param_type;
4508 } __packed;
4509 
4510 struct wmi_wmm_params_all_arg {
4511 	struct wmi_wmm_params_arg ac_be;
4512 	struct wmi_wmm_params_arg ac_bk;
4513 	struct wmi_wmm_params_arg ac_vi;
4514 	struct wmi_wmm_params_arg ac_vo;
4515 };
4516 
4517 #define ATH12K_TWT_DEF_STA_CONG_TIMER_MS		5000
4518 #define ATH12K_TWT_DEF_DEFAULT_SLOT_SIZE		10
4519 #define ATH12K_TWT_DEF_CONGESTION_THRESH_SETUP		50
4520 #define ATH12K_TWT_DEF_CONGESTION_THRESH_TEARDOWN	20
4521 #define ATH12K_TWT_DEF_CONGESTION_THRESH_CRITICAL	100
4522 #define ATH12K_TWT_DEF_INTERFERENCE_THRESH_TEARDOWN	80
4523 #define ATH12K_TWT_DEF_INTERFERENCE_THRESH_SETUP	50
4524 #define ATH12K_TWT_DEF_MIN_NO_STA_SETUP			10
4525 #define ATH12K_TWT_DEF_MIN_NO_STA_TEARDOWN		2
4526 #define ATH12K_TWT_DEF_NO_OF_BCAST_MCAST_SLOTS		2
4527 #define ATH12K_TWT_DEF_MIN_NO_TWT_SLOTS			2
4528 #define ATH12K_TWT_DEF_MAX_NO_STA_TWT			500
4529 #define ATH12K_TWT_DEF_MODE_CHECK_INTERVAL		10000
4530 #define ATH12K_TWT_DEF_ADD_STA_SLOT_INTERVAL		1000
4531 #define ATH12K_TWT_DEF_REMOVE_STA_SLOT_INTERVAL		5000
4532 
4533 struct wmi_twt_enable_params_cmd {
4534 	__le32 tlv_header;
4535 	__le32 pdev_id;
4536 	__le32 sta_cong_timer_ms;
4537 	__le32 mbss_support;
4538 	__le32 default_slot_size;
4539 	__le32 congestion_thresh_setup;
4540 	__le32 congestion_thresh_teardown;
4541 	__le32 congestion_thresh_critical;
4542 	__le32 interference_thresh_teardown;
4543 	__le32 interference_thresh_setup;
4544 	__le32 min_no_sta_setup;
4545 	__le32 min_no_sta_teardown;
4546 	__le32 no_of_bcast_mcast_slots;
4547 	__le32 min_no_twt_slots;
4548 	__le32 max_no_sta_twt;
4549 	__le32 mode_check_interval;
4550 	__le32 add_sta_slot_interval;
4551 	__le32 remove_sta_slot_interval;
4552 } __packed;
4553 
4554 struct wmi_twt_disable_params_cmd {
4555 	__le32 tlv_header;
4556 	__le32 pdev_id;
4557 } __packed;
4558 
4559 struct wmi_obss_spatial_reuse_params_cmd {
4560 	__le32 tlv_header;
4561 	__le32 pdev_id;
4562 	__le32 enable;
4563 	a_sle32 obss_min;
4564 	a_sle32 obss_max;
4565 	__le32 vdev_id;
4566 } __packed;
4567 
4568 #define ATH12K_BSS_COLOR_COLLISION_SCAN_PERIOD_MS		200
4569 #define ATH12K_OBSS_COLOR_COLLISION_DETECTION_DISABLE		0
4570 #define ATH12K_OBSS_COLOR_COLLISION_DETECTION			1
4571 
4572 #define ATH12K_BSS_COLOR_STA_PERIODS				10000
4573 #define ATH12K_BSS_COLOR_AP_PERIODS				5000
4574 
4575 struct wmi_obss_color_collision_cfg_params_cmd {
4576 	__le32 tlv_header;
4577 	__le32 vdev_id;
4578 	__le32 flags;
4579 	__le32 evt_type;
4580 	__le32 current_bss_color;
4581 	__le32 detection_period_ms;
4582 	__le32 scan_period_ms;
4583 	__le32 free_slot_expiry_time_ms;
4584 } __packed;
4585 
4586 struct wmi_bss_color_change_enable_params_cmd {
4587 	__le32 tlv_header;
4588 	__le32 vdev_id;
4589 	__le32 enable;
4590 } __packed;
4591 
4592 #define ATH12K_IPV4_TH_SEED_SIZE 5
4593 #define ATH12K_IPV6_TH_SEED_SIZE 11
4594 
4595 struct ath12k_wmi_pdev_lro_config_cmd {
4596 	__le32 tlv_header;
4597 	__le32 lro_enable;
4598 	__le32 res;
4599 	u32 th_4[ATH12K_IPV4_TH_SEED_SIZE];
4600 	u32 th_6[ATH12K_IPV6_TH_SEED_SIZE];
4601 	__le32 pdev_id;
4602 } __packed;
4603 
4604 #define ATH12K_WMI_SPECTRAL_COUNT_DEFAULT                 0
4605 #define ATH12K_WMI_SPECTRAL_PERIOD_DEFAULT              224
4606 #define ATH12K_WMI_SPECTRAL_PRIORITY_DEFAULT              1
4607 #define ATH12K_WMI_SPECTRAL_FFT_SIZE_DEFAULT              7
4608 #define ATH12K_WMI_SPECTRAL_GC_ENA_DEFAULT                1
4609 #define ATH12K_WMI_SPECTRAL_RESTART_ENA_DEFAULT           0
4610 #define ATH12K_WMI_SPECTRAL_NOISE_FLOOR_REF_DEFAULT     -96
4611 #define ATH12K_WMI_SPECTRAL_INIT_DELAY_DEFAULT           80
4612 #define ATH12K_WMI_SPECTRAL_NB_TONE_THR_DEFAULT          12
4613 #define ATH12K_WMI_SPECTRAL_STR_BIN_THR_DEFAULT           8
4614 #define ATH12K_WMI_SPECTRAL_WB_RPT_MODE_DEFAULT           0
4615 #define ATH12K_WMI_SPECTRAL_RSSI_RPT_MODE_DEFAULT         0
4616 #define ATH12K_WMI_SPECTRAL_RSSI_THR_DEFAULT           0xf0
4617 #define ATH12K_WMI_SPECTRAL_PWR_FORMAT_DEFAULT            0
4618 #define ATH12K_WMI_SPECTRAL_RPT_MODE_DEFAULT              2
4619 #define ATH12K_WMI_SPECTRAL_BIN_SCALE_DEFAULT             1
4620 #define ATH12K_WMI_SPECTRAL_DBM_ADJ_DEFAULT               1
4621 #define ATH12K_WMI_SPECTRAL_CHN_MASK_DEFAULT              1
4622 
4623 struct ath12k_wmi_vdev_spectral_conf_arg {
4624 	u32 vdev_id;
4625 	u32 scan_count;
4626 	u32 scan_period;
4627 	u32 scan_priority;
4628 	u32 scan_fft_size;
4629 	u32 scan_gc_ena;
4630 	u32 scan_restart_ena;
4631 	u32 scan_noise_floor_ref;
4632 	u32 scan_init_delay;
4633 	u32 scan_nb_tone_thr;
4634 	u32 scan_str_bin_thr;
4635 	u32 scan_wb_rpt_mode;
4636 	u32 scan_rssi_rpt_mode;
4637 	u32 scan_rssi_thr;
4638 	u32 scan_pwr_format;
4639 	u32 scan_rpt_mode;
4640 	u32 scan_bin_scale;
4641 	u32 scan_dbm_adj;
4642 	u32 scan_chn_mask;
4643 };
4644 
4645 struct ath12k_wmi_vdev_spectral_conf_cmd {
4646 	__le32 tlv_header;
4647 	__le32 vdev_id;
4648 	__le32 scan_count;
4649 	__le32 scan_period;
4650 	__le32 scan_priority;
4651 	__le32 scan_fft_size;
4652 	__le32 scan_gc_ena;
4653 	__le32 scan_restart_ena;
4654 	__le32 scan_noise_floor_ref;
4655 	__le32 scan_init_delay;
4656 	__le32 scan_nb_tone_thr;
4657 	__le32 scan_str_bin_thr;
4658 	__le32 scan_wb_rpt_mode;
4659 	__le32 scan_rssi_rpt_mode;
4660 	__le32 scan_rssi_thr;
4661 	__le32 scan_pwr_format;
4662 	__le32 scan_rpt_mode;
4663 	__le32 scan_bin_scale;
4664 	__le32 scan_dbm_adj;
4665 	__le32 scan_chn_mask;
4666 } __packed;
4667 
4668 #define ATH12K_WMI_SPECTRAL_TRIGGER_CMD_TRIGGER  1
4669 #define ATH12K_WMI_SPECTRAL_TRIGGER_CMD_CLEAR    2
4670 #define ATH12K_WMI_SPECTRAL_ENABLE_CMD_ENABLE    1
4671 #define ATH12K_WMI_SPECTRAL_ENABLE_CMD_DISABLE   2
4672 
4673 struct ath12k_wmi_vdev_spectral_enable_cmd {
4674 	__le32 tlv_header;
4675 	__le32 vdev_id;
4676 	__le32 trigger_cmd;
4677 	__le32 enable_cmd;
4678 } __packed;
4679 
4680 struct ath12k_wmi_pdev_dma_ring_cfg_arg {
4681 	u32 tlv_header;
4682 	u32 pdev_id;
4683 	u32 module_id;
4684 	u32 base_paddr_lo;
4685 	u32 base_paddr_hi;
4686 	u32 head_idx_paddr_lo;
4687 	u32 head_idx_paddr_hi;
4688 	u32 tail_idx_paddr_lo;
4689 	u32 tail_idx_paddr_hi;
4690 	u32 num_elems;
4691 	u32 buf_size;
4692 	u32 num_resp_per_event;
4693 	u32 event_timeout_ms;
4694 };
4695 
4696 struct ath12k_wmi_pdev_dma_ring_cfg_req_cmd {
4697 	__le32 tlv_header;
4698 	__le32 pdev_id;
4699 	__le32 module_id;		/* see enum wmi_direct_buffer_module */
4700 	__le32 base_paddr_lo;
4701 	__le32 base_paddr_hi;
4702 	__le32 head_idx_paddr_lo;
4703 	__le32 head_idx_paddr_hi;
4704 	__le32 tail_idx_paddr_lo;
4705 	__le32 tail_idx_paddr_hi;
4706 	__le32 num_elems;		/* Number of elems in the ring */
4707 	__le32 buf_size;		/* size of allocated buffer in bytes */
4708 
4709 	/* Number of wmi_dma_buf_release_entry packed together */
4710 	__le32 num_resp_per_event;
4711 
4712 	/* Target should timeout and send whatever resp
4713 	 * it has if this time expires, units in milliseconds
4714 	 */
4715 	__le32 event_timeout_ms;
4716 } __packed;
4717 
4718 struct ath12k_wmi_dma_buf_release_fixed_params {
4719 	__le32 pdev_id;
4720 	__le32 module_id;
4721 	__le32 num_buf_release_entry;
4722 	__le32 num_meta_data_entry;
4723 } __packed;
4724 
4725 struct ath12k_wmi_dma_buf_release_entry_params {
4726 	__le32 tlv_header;
4727 	__le32 paddr_lo;
4728 
4729 	/* Bits 11:0:   address of data
4730 	 * Bits 31:12:  host context data
4731 	 */
4732 	__le32 paddr_hi;
4733 } __packed;
4734 
4735 #define WMI_SPECTRAL_META_INFO1_FREQ1		GENMASK(15, 0)
4736 #define WMI_SPECTRAL_META_INFO1_FREQ2		GENMASK(31, 16)
4737 
4738 #define WMI_SPECTRAL_META_INFO2_CHN_WIDTH	GENMASK(7, 0)
4739 
4740 struct ath12k_wmi_dma_buf_release_meta_data_params {
4741 	__le32 tlv_header;
4742 	a_sle32 noise_floor[WMI_MAX_CHAINS];
4743 	__le32 reset_delay;
4744 	__le32 freq1;
4745 	__le32 freq2;
4746 	__le32 ch_width;
4747 } __packed;
4748 
4749 enum wmi_fils_discovery_cmd_type {
4750 	WMI_FILS_DISCOVERY_CMD,
4751 	WMI_UNSOL_BCAST_PROBE_RESP,
4752 };
4753 
4754 struct wmi_fils_discovery_cmd {
4755 	__le32 tlv_header;
4756 	__le32 vdev_id;
4757 	__le32 interval;
4758 	__le32 config; /* enum wmi_fils_discovery_cmd_type */
4759 } __packed;
4760 
4761 struct wmi_fils_discovery_tmpl_cmd {
4762 	__le32 tlv_header;
4763 	__le32 vdev_id;
4764 	__le32 buf_len;
4765 } __packed;
4766 
4767 struct wmi_probe_tmpl_cmd {
4768 	__le32 tlv_header;
4769 	__le32 vdev_id;
4770 	__le32 buf_len;
4771 } __packed;
4772 
4773 #define MAX_RADIOS 3
4774 
4775 #define WMI_SERVICE_READY_TIMEOUT_HZ (5 * HZ)
4776 #define WMI_SEND_TIMEOUT_HZ (3 * HZ)
4777 
4778 struct ath12k_wmi_pdev {
4779 	struct ath12k_wmi_base *wmi_ab;
4780 	enum ath12k_htc_ep_id eid;
4781 	u32 rx_decap_mode;
4782 };
4783 
4784 struct ath12k_wmi_base {
4785 	struct ath12k_base *ab;
4786 	struct ath12k_wmi_pdev wmi[MAX_RADIOS];
4787 	enum ath12k_htc_ep_id wmi_endpoint_id[MAX_RADIOS];
4788 	u32 max_msg_len[MAX_RADIOS];
4789 
4790 	struct completion service_ready;
4791 	struct completion unified_ready;
4792 	DECLARE_BITMAP(svc_map, WMI_MAX_EXT2_SERVICE);
4793 	wait_queue_head_t tx_credits_wq;
4794 	u32 num_mem_chunks;
4795 	u32 rx_decap_mode;
4796 	struct ath12k_wmi_host_mem_chunk_arg mem_chunks[WMI_MAX_MEM_REQS];
4797 
4798 	enum wmi_host_hw_mode_config_type preferred_hw_mode;
4799 
4800 	struct ath12k_wmi_target_cap_arg *targ_cap;
4801 };
4802 
4803 struct wmi_pdev_set_bios_interface_cmd {
4804 	__le32 tlv_header;
4805 	__le32 pdev_id;
4806 	__le32 param_type_id;
4807 	__le32 length;
4808 } __packed;
4809 
4810 enum wmi_bios_param_type {
4811 	WMI_BIOS_PARAM_CCA_THRESHOLD_TYPE	= 0,
4812 	WMI_BIOS_PARAM_TAS_CONFIG_TYPE		= 1,
4813 	WMI_BIOS_PARAM_TAS_DATA_TYPE		= 2,
4814 
4815 	/* bandedge control power */
4816 	WMI_BIOS_PARAM_TYPE_BANDEDGE		= 3,
4817 
4818 	WMI_BIOS_PARAM_TYPE_MAX,
4819 };
4820 
4821 struct wmi_pdev_set_bios_sar_table_cmd {
4822 	__le32 tlv_header;
4823 	__le32 pdev_id;
4824 	__le32 sar_len;
4825 	__le32 dbs_backoff_len;
4826 } __packed;
4827 
4828 struct wmi_pdev_set_bios_geo_table_cmd {
4829 	__le32 tlv_header;
4830 	__le32 pdev_id;
4831 	__le32 geo_len;
4832 } __packed;
4833 
4834 #define ATH12K_FW_STATS_BUF_SIZE (1024 * 1024)
4835 
4836 enum wmi_sys_cap_info_flags {
4837 	WMI_SYS_CAP_INFO_RXTX_LED	= BIT(0),
4838 	WMI_SYS_CAP_INFO_RFKILL		= BIT(1),
4839 };
4840 
4841 #define WMI_RFKILL_CFG_GPIO_PIN_NUM		GENMASK(5, 0)
4842 #define WMI_RFKILL_CFG_RADIO_LEVEL		BIT(6)
4843 #define WMI_RFKILL_CFG_PIN_AS_GPIO		GENMASK(10, 7)
4844 
4845 enum wmi_rfkill_enable_radio {
4846 	WMI_RFKILL_ENABLE_RADIO_ON	= 0,
4847 	WMI_RFKILL_ENABLE_RADIO_OFF	= 1,
4848 };
4849 
4850 enum wmi_rfkill_radio_state {
4851 	WMI_RFKILL_RADIO_STATE_OFF	= 1,
4852 	WMI_RFKILL_RADIO_STATE_ON	= 2,
4853 };
4854 
4855 struct wmi_rfkill_state_change_event {
4856 	__le32 gpio_pin_num;
4857 	__le32 int_type;
4858 	__le32 radio_state;
4859 } __packed;
4860 
4861 struct wmi_twt_enable_event {
4862 	__le32 pdev_id;
4863 	__le32 status;
4864 } __packed;
4865 
4866 struct wmi_twt_disable_event {
4867 	__le32 pdev_id;
4868 	__le32 status;
4869 } __packed;
4870 
4871 void ath12k_wmi_init_qcn9274(struct ath12k_base *ab,
4872 			     struct ath12k_wmi_resource_config_arg *config);
4873 void ath12k_wmi_init_wcn7850(struct ath12k_base *ab,
4874 			     struct ath12k_wmi_resource_config_arg *config);
4875 int ath12k_wmi_cmd_send(struct ath12k_wmi_pdev *wmi, struct sk_buff *skb,
4876 			u32 cmd_id);
4877 struct sk_buff *ath12k_wmi_alloc_skb(struct ath12k_wmi_base *wmi_sc, u32 len);
4878 int ath12k_wmi_mgmt_send(struct ath12k *ar, u32 vdev_id, u32 buf_id,
4879 			 struct sk_buff *frame);
4880 int ath12k_wmi_p2p_go_bcn_ie(struct ath12k *ar, u32 vdev_id,
4881 			     const u8 *p2p_ie);
4882 int ath12k_wmi_bcn_tmpl(struct ath12k *ar, u32 vdev_id,
4883 			struct ieee80211_mutable_offsets *offs,
4884 			struct sk_buff *bcn);
4885 int ath12k_wmi_vdev_down(struct ath12k *ar, u8 vdev_id);
4886 int ath12k_wmi_vdev_up(struct ath12k *ar, u32 vdev_id, u32 aid,
4887 		       const u8 *bssid);
4888 int ath12k_wmi_vdev_stop(struct ath12k *ar, u8 vdev_id);
4889 int ath12k_wmi_vdev_start(struct ath12k *ar, struct wmi_vdev_start_req_arg *arg,
4890 			  bool restart);
4891 int ath12k_wmi_set_peer_param(struct ath12k *ar, const u8 *peer_addr,
4892 			      u32 vdev_id, u32 param_id, u32 param_val);
4893 int ath12k_wmi_pdev_set_param(struct ath12k *ar, u32 param_id,
4894 			      u32 param_value, u8 pdev_id);
4895 int ath12k_wmi_pdev_set_ps_mode(struct ath12k *ar, int vdev_id, u32 enable);
4896 int ath12k_wmi_wait_for_unified_ready(struct ath12k_base *ab);
4897 int ath12k_wmi_cmd_init(struct ath12k_base *ab);
4898 int ath12k_wmi_wait_for_service_ready(struct ath12k_base *ab);
4899 int ath12k_wmi_connect(struct ath12k_base *ab);
4900 int ath12k_wmi_pdev_attach(struct ath12k_base *ab,
4901 			   u8 pdev_id);
4902 int ath12k_wmi_attach(struct ath12k_base *ab);
4903 void ath12k_wmi_detach(struct ath12k_base *ab);
4904 int ath12k_wmi_vdev_create(struct ath12k *ar, u8 *macaddr,
4905 			   struct ath12k_wmi_vdev_create_arg *arg);
4906 int ath12k_wmi_send_peer_create_cmd(struct ath12k *ar,
4907 				    struct ath12k_wmi_peer_create_arg *arg);
4908 int ath12k_wmi_vdev_set_param_cmd(struct ath12k *ar, u32 vdev_id,
4909 				  u32 param_id, u32 param_value);
4910 
4911 int ath12k_wmi_set_sta_ps_param(struct ath12k *ar, u32 vdev_id,
4912 				u32 param, u32 param_value);
4913 int ath12k_wmi_force_fw_hang_cmd(struct ath12k *ar, u32 type, u32 delay_time_ms);
4914 int ath12k_wmi_send_peer_delete_cmd(struct ath12k *ar,
4915 				    const u8 *peer_addr, u8 vdev_id);
4916 int ath12k_wmi_vdev_delete(struct ath12k *ar, u8 vdev_id);
4917 void ath12k_wmi_start_scan_init(struct ath12k *ar,
4918 				struct ath12k_wmi_scan_req_arg *arg);
4919 int ath12k_wmi_send_scan_start_cmd(struct ath12k *ar,
4920 				   struct ath12k_wmi_scan_req_arg *arg);
4921 int ath12k_wmi_send_scan_stop_cmd(struct ath12k *ar,
4922 				  struct ath12k_wmi_scan_cancel_arg *arg);
4923 int ath12k_wmi_send_wmm_update_cmd(struct ath12k *ar, u32 vdev_id,
4924 				   struct wmi_wmm_params_all_arg *param);
4925 int ath12k_wmi_pdev_suspend(struct ath12k *ar, u32 suspend_opt,
4926 			    u32 pdev_id);
4927 int ath12k_wmi_pdev_resume(struct ath12k *ar, u32 pdev_id);
4928 
4929 int ath12k_wmi_send_peer_assoc_cmd(struct ath12k *ar,
4930 				   struct ath12k_wmi_peer_assoc_arg *arg);
4931 int ath12k_wmi_vdev_install_key(struct ath12k *ar,
4932 				struct wmi_vdev_install_key_arg *arg);
4933 int ath12k_wmi_pdev_bss_chan_info_request(struct ath12k *ar,
4934 					  enum wmi_bss_chan_info_req_type type);
4935 int ath12k_wmi_send_pdev_temperature_cmd(struct ath12k *ar);
4936 int ath12k_wmi_send_peer_flush_tids_cmd(struct ath12k *ar,
4937 					u8 peer_addr[ETH_ALEN],
4938 					u32 peer_tid_bitmap,
4939 					u8 vdev_id);
4940 int ath12k_wmi_send_set_ap_ps_param_cmd(struct ath12k *ar, u8 *peer_addr,
4941 					struct ath12k_wmi_ap_ps_arg *arg);
4942 int ath12k_wmi_send_scan_chan_list_cmd(struct ath12k *ar,
4943 				       struct ath12k_wmi_scan_chan_list_arg *arg);
4944 int ath12k_wmi_send_dfs_phyerr_offload_enable_cmd(struct ath12k *ar,
4945 						  u32 pdev_id);
4946 int ath12k_wmi_addba_clear_resp(struct ath12k *ar, u32 vdev_id, const u8 *mac);
4947 int ath12k_wmi_addba_send(struct ath12k *ar, u32 vdev_id, const u8 *mac,
4948 			  u32 tid, u32 buf_size);
4949 int ath12k_wmi_addba_set_resp(struct ath12k *ar, u32 vdev_id, const u8 *mac,
4950 			      u32 tid, u32 status);
4951 int ath12k_wmi_delba_send(struct ath12k *ar, u32 vdev_id, const u8 *mac,
4952 			  u32 tid, u32 initiator, u32 reason);
4953 int ath12k_wmi_send_bcn_offload_control_cmd(struct ath12k *ar,
4954 					    u32 vdev_id, u32 bcn_ctrl_op);
4955 int ath12k_wmi_send_init_country_cmd(struct ath12k *ar,
4956 				     struct ath12k_wmi_init_country_arg *arg);
4957 int ath12k_wmi_peer_rx_reorder_queue_setup(struct ath12k *ar,
4958 					   int vdev_id, const u8 *addr,
4959 					   dma_addr_t paddr, u8 tid,
4960 					   u8 ba_window_size_valid,
4961 					   u32 ba_window_size);
4962 int
4963 ath12k_wmi_rx_reord_queue_remove(struct ath12k *ar,
4964 				 struct ath12k_wmi_rx_reorder_queue_remove_arg *arg);
4965 int ath12k_wmi_send_pdev_set_regdomain(struct ath12k *ar,
4966 				       struct ath12k_wmi_pdev_set_regdomain_arg *arg);
4967 int ath12k_wmi_simulate_radar(struct ath12k *ar);
4968 int ath12k_wmi_send_twt_enable_cmd(struct ath12k *ar, u32 pdev_id);
4969 int ath12k_wmi_send_twt_disable_cmd(struct ath12k *ar, u32 pdev_id);
4970 int ath12k_wmi_send_obss_spr_cmd(struct ath12k *ar, u32 vdev_id,
4971 				 struct ieee80211_he_obss_pd *he_obss_pd);
4972 int ath12k_wmi_obss_color_cfg_cmd(struct ath12k *ar, u32 vdev_id,
4973 				  u8 bss_color, u32 period,
4974 				  bool enable);
4975 int ath12k_wmi_send_bss_color_change_enable_cmd(struct ath12k *ar, u32 vdev_id,
4976 						bool enable);
4977 int ath12k_wmi_pdev_lro_cfg(struct ath12k *ar, int pdev_id);
4978 int ath12k_wmi_pdev_dma_ring_cfg(struct ath12k *ar,
4979 				 struct ath12k_wmi_pdev_dma_ring_cfg_arg *arg);
4980 int ath12k_wmi_vdev_spectral_enable(struct ath12k *ar, u32 vdev_id,
4981 				    u32 trigger, u32 enable);
4982 int ath12k_wmi_vdev_spectral_conf(struct ath12k *ar,
4983 				  struct ath12k_wmi_vdev_spectral_conf_arg *arg);
4984 int ath12k_wmi_fils_discovery_tmpl(struct ath12k *ar, u32 vdev_id,
4985 				   struct sk_buff *tmpl);
4986 int ath12k_wmi_fils_discovery(struct ath12k *ar, u32 vdev_id, u32 interval,
4987 			      bool unsol_bcast_probe_resp_enabled);
4988 int ath12k_wmi_probe_resp_tmpl(struct ath12k *ar, u32 vdev_id,
4989 			       struct sk_buff *tmpl);
4990 int ath12k_wmi_set_hw_mode(struct ath12k_base *ab,
4991 			   enum wmi_host_hw_mode_config_type mode);
4992 int ath12k_wmi_set_bios_cmd(struct ath12k_base *ab, u32 param_id,
4993 			    const u8 *buf, size_t buf_len);
4994 int ath12k_wmi_set_bios_sar_cmd(struct ath12k_base *ab, const u8 *psar_table);
4995 int ath12k_wmi_set_bios_geo_cmd(struct ath12k_base *ab, const u8 *pgeo_table);
4996 
4997 static inline u32
4998 ath12k_wmi_caps_ext_get_pdev_id(const struct ath12k_wmi_caps_ext_params *param)
4999 {
5000 	return le32_get_bits(param->pdev_and_hw_link_ids, WMI_CAPS_PARAMS_PDEV_ID);
5001 }
5002 
5003 static inline u32
5004 ath12k_wmi_caps_ext_get_hw_link_id(const struct ath12k_wmi_caps_ext_params *param)
5005 {
5006 	return le32_get_bits(param->pdev_and_hw_link_ids, WMI_CAPS_PARAMS_HW_LINK_ID);
5007 }
5008 
5009 static inline u32
5010 ath12k_wmi_mac_phy_get_pdev_id(const struct ath12k_wmi_mac_phy_caps_params *param)
5011 {
5012 	return le32_get_bits(param->pdev_and_hw_link_ids,
5013 			     WMI_CAPS_PARAMS_PDEV_ID);
5014 }
5015 
5016 static inline u32
5017 ath12k_wmi_mac_phy_get_hw_link_id(const struct ath12k_wmi_mac_phy_caps_params *param)
5018 {
5019 	return le32_get_bits(param->pdev_and_hw_link_ids,
5020 			     WMI_CAPS_PARAMS_HW_LINK_ID);
5021 }
5022 
5023 #endif
5024