Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / net / wireless / ath / ath10k / wmi-tlv.h
blobda89128e8dd63be3c2eb635d8b23a3a0e2f8ed51
1 /*
2 * Copyright (c) 2005-2011 Atheros Communications Inc.
3 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc.
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 #ifndef _WMI_TLV_H
18 #define _WMI_TLV_H
20 #define WMI_TLV_CMD(grp_id) (((grp_id) << 12) | 0x1)
21 #define WMI_TLV_EV(grp_id) (((grp_id) << 12) | 0x1)
22 #define WMI_TLV_CMD_UNSUPPORTED 0
23 #define WMI_TLV_PDEV_PARAM_UNSUPPORTED 0
24 #define WMI_TLV_VDEV_PARAM_UNSUPPORTED 0
25 #define WMI_TLV_MGMT_TX_FRAME_MAX_LEN 64
27 enum wmi_tlv_grp_id {
28 WMI_TLV_GRP_START = 0x3,
29 WMI_TLV_GRP_SCAN = WMI_TLV_GRP_START,
30 WMI_TLV_GRP_PDEV,
31 WMI_TLV_GRP_VDEV,
32 WMI_TLV_GRP_PEER,
33 WMI_TLV_GRP_MGMT,
34 WMI_TLV_GRP_BA_NEG,
35 WMI_TLV_GRP_STA_PS,
36 WMI_TLV_GRP_DFS,
37 WMI_TLV_GRP_ROAM,
38 WMI_TLV_GRP_OFL_SCAN,
39 WMI_TLV_GRP_P2P,
40 WMI_TLV_GRP_AP_PS,
41 WMI_TLV_GRP_RATECTL,
42 WMI_TLV_GRP_PROFILE,
43 WMI_TLV_GRP_SUSPEND,
44 WMI_TLV_GRP_BCN_FILTER,
45 WMI_TLV_GRP_WOW,
46 WMI_TLV_GRP_RTT,
47 WMI_TLV_GRP_SPECTRAL,
48 WMI_TLV_GRP_STATS,
49 WMI_TLV_GRP_ARP_NS_OFL,
50 WMI_TLV_GRP_NLO_OFL,
51 WMI_TLV_GRP_GTK_OFL,
52 WMI_TLV_GRP_CSA_OFL,
53 WMI_TLV_GRP_CHATTER,
54 WMI_TLV_GRP_TID_ADDBA,
55 WMI_TLV_GRP_MISC,
56 WMI_TLV_GRP_GPIO,
57 WMI_TLV_GRP_FWTEST,
58 WMI_TLV_GRP_TDLS,
59 WMI_TLV_GRP_RESMGR,
60 WMI_TLV_GRP_STA_SMPS,
61 WMI_TLV_GRP_WLAN_HB,
62 WMI_TLV_GRP_RMC,
63 WMI_TLV_GRP_MHF_OFL,
64 WMI_TLV_GRP_LOCATION_SCAN,
65 WMI_TLV_GRP_OEM,
66 WMI_TLV_GRP_NAN,
67 WMI_TLV_GRP_COEX,
68 WMI_TLV_GRP_OBSS_OFL,
69 WMI_TLV_GRP_LPI,
70 WMI_TLV_GRP_EXTSCAN,
71 WMI_TLV_GRP_DHCP_OFL,
72 WMI_TLV_GRP_IPA,
73 WMI_TLV_GRP_MDNS_OFL,
74 WMI_TLV_GRP_SAP_OFL,
77 enum wmi_tlv_cmd_id {
78 WMI_TLV_INIT_CMDID = 0x1,
79 WMI_TLV_START_SCAN_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_SCAN),
80 WMI_TLV_STOP_SCAN_CMDID,
81 WMI_TLV_SCAN_CHAN_LIST_CMDID,
82 WMI_TLV_SCAN_SCH_PRIO_TBL_CMDID,
83 WMI_TLV_SCAN_UPDATE_REQUEST_CMDID,
84 WMI_TLV_SCAN_PROB_REQ_OUI_CMDID,
85 WMI_TLV_PDEV_SET_REGDOMAIN_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_PDEV),
86 WMI_TLV_PDEV_SET_CHANNEL_CMDID,
87 WMI_TLV_PDEV_SET_PARAM_CMDID,
88 WMI_TLV_PDEV_PKTLOG_ENABLE_CMDID,
89 WMI_TLV_PDEV_PKTLOG_DISABLE_CMDID,
90 WMI_TLV_PDEV_SET_WMM_PARAMS_CMDID,
91 WMI_TLV_PDEV_SET_HT_CAP_IE_CMDID,
92 WMI_TLV_PDEV_SET_VHT_CAP_IE_CMDID,
93 WMI_TLV_PDEV_SET_DSCP_TID_MAP_CMDID,
94 WMI_TLV_PDEV_SET_QUIET_MODE_CMDID,
95 WMI_TLV_PDEV_GREEN_AP_PS_ENABLE_CMDID,
96 WMI_TLV_PDEV_GET_TPC_CONFIG_CMDID,
97 WMI_TLV_PDEV_SET_BASE_MACADDR_CMDID,
98 WMI_TLV_PDEV_DUMP_CMDID,
99 WMI_TLV_PDEV_SET_LED_CONFIG_CMDID,
100 WMI_TLV_PDEV_GET_TEMPERATURE_CMDID,
101 WMI_TLV_PDEV_SET_LED_FLASHING_CMDID,
102 WMI_TLV_VDEV_CREATE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_VDEV),
103 WMI_TLV_VDEV_DELETE_CMDID,
104 WMI_TLV_VDEV_START_REQUEST_CMDID,
105 WMI_TLV_VDEV_RESTART_REQUEST_CMDID,
106 WMI_TLV_VDEV_UP_CMDID,
107 WMI_TLV_VDEV_STOP_CMDID,
108 WMI_TLV_VDEV_DOWN_CMDID,
109 WMI_TLV_VDEV_SET_PARAM_CMDID,
110 WMI_TLV_VDEV_INSTALL_KEY_CMDID,
111 WMI_TLV_VDEV_WNM_SLEEPMODE_CMDID,
112 WMI_TLV_VDEV_WMM_ADDTS_CMDID,
113 WMI_TLV_VDEV_WMM_DELTS_CMDID,
114 WMI_TLV_VDEV_SET_WMM_PARAMS_CMDID,
115 WMI_TLV_VDEV_SET_GTX_PARAMS_CMDID,
116 WMI_TLV_VDEV_IPSEC_NATKEEPALIVE_FILTER_CMDID,
117 WMI_TLV_VDEV_PLMREQ_START_CMDID,
118 WMI_TLV_VDEV_PLMREQ_STOP_CMDID,
119 WMI_TLV_PEER_CREATE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_PEER),
120 WMI_TLV_PEER_DELETE_CMDID,
121 WMI_TLV_PEER_FLUSH_TIDS_CMDID,
122 WMI_TLV_PEER_SET_PARAM_CMDID,
123 WMI_TLV_PEER_ASSOC_CMDID,
124 WMI_TLV_PEER_ADD_WDS_ENTRY_CMDID,
125 WMI_TLV_PEER_REMOVE_WDS_ENTRY_CMDID,
126 WMI_TLV_PEER_MCAST_GROUP_CMDID,
127 WMI_TLV_PEER_INFO_REQ_CMDID,
128 WMI_TLV_PEER_GET_ESTIMATED_LINKSPEED_CMDID,
129 WMI_TLV_BCN_TX_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_MGMT),
130 WMI_TLV_PDEV_SEND_BCN_CMDID,
131 WMI_TLV_BCN_TMPL_CMDID,
132 WMI_TLV_BCN_FILTER_RX_CMDID,
133 WMI_TLV_PRB_REQ_FILTER_RX_CMDID,
134 WMI_TLV_MGMT_TX_CMDID,
135 WMI_TLV_PRB_TMPL_CMDID,
136 WMI_TLV_MGMT_TX_SEND_CMD,
137 WMI_TLV_ADDBA_CLEAR_RESP_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_BA_NEG),
138 WMI_TLV_ADDBA_SEND_CMDID,
139 WMI_TLV_ADDBA_STATUS_CMDID,
140 WMI_TLV_DELBA_SEND_CMDID,
141 WMI_TLV_ADDBA_SET_RESP_CMDID,
142 WMI_TLV_SEND_SINGLEAMSDU_CMDID,
143 WMI_TLV_STA_POWERSAVE_MODE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_STA_PS),
144 WMI_TLV_STA_POWERSAVE_PARAM_CMDID,
145 WMI_TLV_STA_MIMO_PS_MODE_CMDID,
146 WMI_TLV_PDEV_DFS_ENABLE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_DFS),
147 WMI_TLV_PDEV_DFS_DISABLE_CMDID,
148 WMI_TLV_DFS_PHYERR_FILTER_ENA_CMDID,
149 WMI_TLV_DFS_PHYERR_FILTER_DIS_CMDID,
150 WMI_TLV_ROAM_SCAN_MODE = WMI_TLV_CMD(WMI_TLV_GRP_ROAM),
151 WMI_TLV_ROAM_SCAN_RSSI_THRESHOLD,
152 WMI_TLV_ROAM_SCAN_PERIOD,
153 WMI_TLV_ROAM_SCAN_RSSI_CHANGE_THRESHOLD,
154 WMI_TLV_ROAM_AP_PROFILE,
155 WMI_TLV_ROAM_CHAN_LIST,
156 WMI_TLV_ROAM_SCAN_CMD,
157 WMI_TLV_ROAM_SYNCH_COMPLETE,
158 WMI_TLV_ROAM_SET_RIC_REQUEST_CMDID,
159 WMI_TLV_ROAM_INVOKE_CMDID,
160 WMI_TLV_OFL_SCAN_ADD_AP_PROFILE = WMI_TLV_CMD(WMI_TLV_GRP_OFL_SCAN),
161 WMI_TLV_OFL_SCAN_REMOVE_AP_PROFILE,
162 WMI_TLV_OFL_SCAN_PERIOD,
163 WMI_TLV_P2P_DEV_SET_DEVICE_INFO = WMI_TLV_CMD(WMI_TLV_GRP_P2P),
164 WMI_TLV_P2P_DEV_SET_DISCOVERABILITY,
165 WMI_TLV_P2P_GO_SET_BEACON_IE,
166 WMI_TLV_P2P_GO_SET_PROBE_RESP_IE,
167 WMI_TLV_P2P_SET_VENDOR_IE_DATA_CMDID,
168 WMI_TLV_P2P_DISC_OFFLOAD_CONFIG_CMDID,
169 WMI_TLV_P2P_DISC_OFFLOAD_APPIE_CMDID,
170 WMI_TLV_P2P_DISC_OFFLOAD_PATTERN_CMDID,
171 WMI_TLV_P2P_SET_OPPPS_PARAM_CMDID,
172 WMI_TLV_AP_PS_PEER_PARAM_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_AP_PS),
173 WMI_TLV_AP_PS_PEER_UAPSD_COEX_CMDID,
174 WMI_TLV_PEER_RATE_RETRY_SCHED_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_RATECTL),
175 WMI_TLV_WLAN_PROFILE_TRIGGER_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_PROFILE),
176 WMI_TLV_WLAN_PROFILE_SET_HIST_INTVL_CMDID,
177 WMI_TLV_WLAN_PROFILE_GET_PROFILE_DATA_CMDID,
178 WMI_TLV_WLAN_PROFILE_ENABLE_PROFILE_ID_CMDID,
179 WMI_TLV_WLAN_PROFILE_LIST_PROFILE_ID_CMDID,
180 WMI_TLV_PDEV_SUSPEND_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_SUSPEND),
181 WMI_TLV_PDEV_RESUME_CMDID,
182 WMI_TLV_ADD_BCN_FILTER_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_BCN_FILTER),
183 WMI_TLV_RMV_BCN_FILTER_CMDID,
184 WMI_TLV_WOW_ADD_WAKE_PATTERN_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_WOW),
185 WMI_TLV_WOW_DEL_WAKE_PATTERN_CMDID,
186 WMI_TLV_WOW_ENABLE_DISABLE_WAKE_EVENT_CMDID,
187 WMI_TLV_WOW_ENABLE_CMDID,
188 WMI_TLV_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID,
189 WMI_TLV_WOW_ACER_IOAC_ADD_KEEPALIVE_CMDID,
190 WMI_TLV_WOW_ACER_IOAC_DEL_KEEPALIVE_CMDID,
191 WMI_TLV_WOW_ACER_IOAC_ADD_WAKE_PATTERN_CMDID,
192 WMI_TLV_WOW_ACER_IOAC_DEL_WAKE_PATTERN_CMDID,
193 WMI_TLV_D0_WOW_ENABLE_DISABLE_CMDID,
194 WMI_TLV_EXTWOW_ENABLE_CMDID,
195 WMI_TLV_EXTWOW_SET_APP_TYPE1_PARAMS_CMDID,
196 WMI_TLV_EXTWOW_SET_APP_TYPE2_PARAMS_CMDID,
197 WMI_TLV_RTT_MEASREQ_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_RTT),
198 WMI_TLV_RTT_TSF_CMDID,
199 WMI_TLV_SPECTRAL_SCAN_CONF_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_SPECTRAL),
200 WMI_TLV_SPECTRAL_SCAN_ENABLE_CMDID,
201 WMI_TLV_REQUEST_STATS_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_STATS),
202 WMI_TLV_MCC_SCHED_TRAFFIC_STATS_CMDID,
203 WMI_TLV_REQUEST_STATS_EXT_CMDID,
204 WMI_TLV_REQUEST_LINK_STATS_CMDID,
205 WMI_TLV_START_LINK_STATS_CMDID,
206 WMI_TLV_CLEAR_LINK_STATS_CMDID,
207 WMI_TLV_SET_ARP_NS_OFFLOAD_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_ARP_NS_OFL),
208 WMI_TLV_ADD_PROACTIVE_ARP_RSP_PATTERN_CMDID,
209 WMI_TLV_DEL_PROACTIVE_ARP_RSP_PATTERN_CMDID,
210 WMI_TLV_NETWORK_LIST_OFFLOAD_CONFIG_CMDID =
211 WMI_TLV_CMD(WMI_TLV_GRP_NLO_OFL),
212 WMI_TLV_APFIND_CMDID,
213 WMI_TLV_GTK_OFFLOAD_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_GTK_OFL),
214 WMI_TLV_CSA_OFFLOAD_ENABLE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_CSA_OFL),
215 WMI_TLV_CSA_OFFLOAD_CHANSWITCH_CMDID,
216 WMI_TLV_CHATTER_SET_MODE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_CHATTER),
217 WMI_TLV_CHATTER_ADD_COALESCING_FILTER_CMDID,
218 WMI_TLV_CHATTER_DELETE_COALESCING_FILTER_CMDID,
219 WMI_TLV_CHATTER_COALESCING_QUERY_CMDID,
220 WMI_TLV_PEER_TID_ADDBA_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_TID_ADDBA),
221 WMI_TLV_PEER_TID_DELBA_CMDID,
222 WMI_TLV_STA_DTIM_PS_METHOD_CMDID,
223 WMI_TLV_STA_UAPSD_AUTO_TRIG_CMDID,
224 WMI_TLV_STA_KEEPALIVE_CMDID,
225 WMI_TLV_BA_REQ_SSN_CMDID,
226 WMI_TLV_ECHO_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_MISC),
227 WMI_TLV_PDEV_UTF_CMDID,
228 WMI_TLV_DBGLOG_CFG_CMDID,
229 WMI_TLV_PDEV_QVIT_CMDID,
230 WMI_TLV_PDEV_FTM_INTG_CMDID,
231 WMI_TLV_VDEV_SET_KEEPALIVE_CMDID,
232 WMI_TLV_VDEV_GET_KEEPALIVE_CMDID,
233 WMI_TLV_FORCE_FW_HANG_CMDID,
234 WMI_TLV_SET_MCASTBCAST_FILTER_CMDID,
235 WMI_TLV_THERMAL_MGMT_CMDID,
236 WMI_TLV_HOST_AUTO_SHUTDOWN_CFG_CMDID,
237 WMI_TLV_TPC_CHAINMASK_CONFIG_CMDID,
238 WMI_TLV_SET_ANTENNA_DIVERSITY_CMDID,
239 WMI_TLV_GPIO_CONFIG_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_GPIO),
240 WMI_TLV_GPIO_OUTPUT_CMDID,
241 WMI_TLV_TXBF_CMDID,
242 WMI_TLV_FWTEST_VDEV_MCC_SET_TBTT_MODE_CMDID =
243 WMI_TLV_CMD(WMI_TLV_GRP_FWTEST),
244 WMI_TLV_FWTEST_P2P_SET_NOA_PARAM_CMDID,
245 WMI_TLV_UNIT_TEST_CMDID,
246 WMI_TLV_TDLS_SET_STATE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_TDLS),
247 WMI_TLV_TDLS_PEER_UPDATE_CMDID,
248 WMI_TLV_TDLS_SET_OFFCHAN_MODE_CMDID,
249 WMI_TLV_RESMGR_ADAPTIVE_OCS_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_RESMGR),
250 WMI_TLV_RESMGR_SET_CHAN_TIME_QUOTA_CMDID,
251 WMI_TLV_RESMGR_SET_CHAN_LATENCY_CMDID,
252 WMI_TLV_STA_SMPS_FORCE_MODE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_STA_SMPS),
253 WMI_TLV_STA_SMPS_PARAM_CMDID,
254 WMI_TLV_HB_SET_ENABLE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_WLAN_HB),
255 WMI_TLV_HB_SET_TCP_PARAMS_CMDID,
256 WMI_TLV_HB_SET_TCP_PKT_FILTER_CMDID,
257 WMI_TLV_HB_SET_UDP_PARAMS_CMDID,
258 WMI_TLV_HB_SET_UDP_PKT_FILTER_CMDID,
259 WMI_TLV_RMC_SET_MODE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_RMC),
260 WMI_TLV_RMC_SET_ACTION_PERIOD_CMDID,
261 WMI_TLV_RMC_CONFIG_CMDID,
262 WMI_TLV_MHF_OFFLOAD_SET_MODE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_MHF_OFL),
263 WMI_TLV_MHF_OFFLOAD_PLUMB_ROUTING_TBL_CMDID,
264 WMI_TLV_BATCH_SCAN_ENABLE_CMDID =
265 WMI_TLV_CMD(WMI_TLV_GRP_LOCATION_SCAN),
266 WMI_TLV_BATCH_SCAN_DISABLE_CMDID,
267 WMI_TLV_BATCH_SCAN_TRIGGER_RESULT_CMDID,
268 WMI_TLV_OEM_REQ_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_OEM),
269 WMI_TLV_NAN_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_NAN),
270 WMI_TLV_MODEM_POWER_STATE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_COEX),
271 WMI_TLV_CHAN_AVOID_UPDATE_CMDID,
272 WMI_TLV_OBSS_SCAN_ENABLE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_OBSS_OFL),
273 WMI_TLV_OBSS_SCAN_DISABLE_CMDID,
274 WMI_TLV_LPI_MGMT_SNOOPING_CONFIG_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_LPI),
275 WMI_TLV_LPI_START_SCAN_CMDID,
276 WMI_TLV_LPI_STOP_SCAN_CMDID,
277 WMI_TLV_EXTSCAN_START_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_EXTSCAN),
278 WMI_TLV_EXTSCAN_STOP_CMDID,
279 WMI_TLV_EXTSCAN_CONFIGURE_WLAN_CHANGE_MONITOR_CMDID,
280 WMI_TLV_EXTSCAN_CONFIGURE_HOTLIST_MONITOR_CMDID,
281 WMI_TLV_EXTSCAN_GET_CACHED_RESULTS_CMDID,
282 WMI_TLV_EXTSCAN_GET_WLAN_CHANGE_RESULTS_CMDID,
283 WMI_TLV_EXTSCAN_SET_CAPABILITIES_CMDID,
284 WMI_TLV_EXTSCAN_GET_CAPABILITIES_CMDID,
285 WMI_TLV_SET_DHCP_SERVER_OFFLOAD_CMDID =
286 WMI_TLV_CMD(WMI_TLV_GRP_DHCP_OFL),
287 WMI_TLV_IPA_OFFLOAD_ENABLE_DISABLE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_IPA),
288 WMI_TLV_MDNS_OFFLOAD_ENABLE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_MDNS_OFL),
289 WMI_TLV_MDNS_SET_FQDN_CMDID,
290 WMI_TLV_MDNS_SET_RESPONSE_CMDID,
291 WMI_TLV_MDNS_GET_STATS_CMDID,
292 WMI_TLV_SAP_OFL_ENABLE_CMDID = WMI_TLV_CMD(WMI_TLV_GRP_SAP_OFL),
295 enum wmi_tlv_event_id {
296 WMI_TLV_SERVICE_READY_EVENTID = 0x1,
297 WMI_TLV_READY_EVENTID,
298 WMI_TLV_SCAN_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_SCAN),
299 WMI_TLV_PDEV_TPC_CONFIG_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_PDEV),
300 WMI_TLV_CHAN_INFO_EVENTID,
301 WMI_TLV_PHYERR_EVENTID,
302 WMI_TLV_PDEV_DUMP_EVENTID,
303 WMI_TLV_TX_PAUSE_EVENTID,
304 WMI_TLV_DFS_RADAR_EVENTID,
305 WMI_TLV_PDEV_L1SS_TRACK_EVENTID,
306 WMI_TLV_PDEV_TEMPERATURE_EVENTID,
307 WMI_TLV_VDEV_START_RESP_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_VDEV),
308 WMI_TLV_VDEV_STOPPED_EVENTID,
309 WMI_TLV_VDEV_INSTALL_KEY_COMPLETE_EVENTID,
310 WMI_TLV_VDEV_MCC_BCN_INTERVAL_CHANGE_REQ_EVENTID,
311 WMI_TLV_PEER_STA_KICKOUT_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_PEER),
312 WMI_TLV_PEER_INFO_EVENTID,
313 WMI_TLV_PEER_TX_FAIL_CNT_THR_EVENTID,
314 WMI_TLV_PEER_ESTIMATED_LINKSPEED_EVENTID,
315 WMI_TLV_PEER_STATE_EVENTID,
316 WMI_TLV_MGMT_RX_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_MGMT),
317 WMI_TLV_HOST_SWBA_EVENTID,
318 WMI_TLV_TBTTOFFSET_UPDATE_EVENTID,
319 WMI_TLV_OFFLOAD_BCN_TX_STATUS_EVENTID,
320 WMI_TLV_OFFLOAD_PROB_RESP_TX_STATUS_EVENTID,
321 WMI_TLV_TX_DELBA_COMPLETE_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_BA_NEG),
322 WMI_TLV_TX_ADDBA_COMPLETE_EVENTID,
323 WMI_TLV_BA_RSP_SSN_EVENTID,
324 WMI_TLV_AGGR_STATE_TRIG_EVENTID,
325 WMI_TLV_ROAM_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_ROAM),
326 WMI_TLV_PROFILE_MATCH,
327 WMI_TLV_ROAM_SYNCH_EVENTID,
328 WMI_TLV_P2P_DISC_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_P2P),
329 WMI_TLV_P2P_NOA_EVENTID,
330 WMI_TLV_PDEV_RESUME_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_SUSPEND),
331 WMI_TLV_WOW_WAKEUP_HOST_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_WOW),
332 WMI_TLV_D0_WOW_DISABLE_ACK_EVENTID,
333 WMI_TLV_RTT_MEASUREMENT_REPORT_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_RTT),
334 WMI_TLV_TSF_MEASUREMENT_REPORT_EVENTID,
335 WMI_TLV_RTT_ERROR_REPORT_EVENTID,
336 WMI_TLV_STATS_EXT_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_STATS),
337 WMI_TLV_IFACE_LINK_STATS_EVENTID,
338 WMI_TLV_PEER_LINK_STATS_EVENTID,
339 WMI_TLV_RADIO_LINK_STATS_EVENTID,
340 WMI_TLV_NLO_MATCH_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_NLO_OFL),
341 WMI_TLV_NLO_SCAN_COMPLETE_EVENTID,
342 WMI_TLV_APFIND_EVENTID,
343 WMI_TLV_GTK_OFFLOAD_STATUS_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_GTK_OFL),
344 WMI_TLV_GTK_REKEY_FAIL_EVENTID,
345 WMI_TLV_CSA_HANDLING_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_CSA_OFL),
346 WMI_TLV_CHATTER_PC_QUERY_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_CHATTER),
347 WMI_TLV_ECHO_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_MISC),
348 WMI_TLV_PDEV_UTF_EVENTID,
349 WMI_TLV_DEBUG_MESG_EVENTID,
350 WMI_TLV_UPDATE_STATS_EVENTID,
351 WMI_TLV_DEBUG_PRINT_EVENTID,
352 WMI_TLV_DCS_INTERFERENCE_EVENTID,
353 WMI_TLV_PDEV_QVIT_EVENTID,
354 WMI_TLV_WLAN_PROFILE_DATA_EVENTID,
355 WMI_TLV_PDEV_FTM_INTG_EVENTID,
356 WMI_TLV_WLAN_FREQ_AVOID_EVENTID,
357 WMI_TLV_VDEV_GET_KEEPALIVE_EVENTID,
358 WMI_TLV_THERMAL_MGMT_EVENTID,
359 WMI_TLV_DIAG_DATA_CONTAINER_EVENTID,
360 WMI_TLV_HOST_AUTO_SHUTDOWN_EVENTID,
361 WMI_TLV_UPDATE_WHAL_MIB_STATS_EVENTID,
362 WMI_TLV_UPDATE_VDEV_RATE_STATS_EVENTID,
363 WMI_TLV_DIAG_EVENTID,
364 WMI_TLV_GPIO_INPUT_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_GPIO),
365 WMI_TLV_UPLOADH_EVENTID,
366 WMI_TLV_CAPTUREH_EVENTID,
367 WMI_TLV_RFKILL_STATE_CHANGE_EVENTID,
368 WMI_TLV_TDLS_PEER_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_TDLS),
369 WMI_TLV_BATCH_SCAN_ENABLED_EVENTID =
370 WMI_TLV_EV(WMI_TLV_GRP_LOCATION_SCAN),
371 WMI_TLV_BATCH_SCAN_RESULT_EVENTID,
372 WMI_TLV_OEM_CAPABILITY_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_OEM),
373 WMI_TLV_OEM_MEASUREMENT_REPORT_EVENTID,
374 WMI_TLV_OEM_ERROR_REPORT_EVENTID,
375 WMI_TLV_NAN_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_NAN),
376 WMI_TLV_LPI_RESULT_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_LPI),
377 WMI_TLV_LPI_STATUS_EVENTID,
378 WMI_TLV_LPI_HANDOFF_EVENTID,
379 WMI_TLV_EXTSCAN_START_STOP_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_EXTSCAN),
380 WMI_TLV_EXTSCAN_OPERATION_EVENTID,
381 WMI_TLV_EXTSCAN_TABLE_USAGE_EVENTID,
382 WMI_TLV_EXTSCAN_CACHED_RESULTS_EVENTID,
383 WMI_TLV_EXTSCAN_WLAN_CHANGE_RESULTS_EVENTID,
384 WMI_TLV_EXTSCAN_HOTLIST_MATCH_EVENTID,
385 WMI_TLV_EXTSCAN_CAPABILITIES_EVENTID,
386 WMI_TLV_MDNS_STATS_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_MDNS_OFL),
387 WMI_TLV_SAP_OFL_ADD_STA_EVENTID = WMI_TLV_EV(WMI_TLV_GRP_SAP_OFL),
388 WMI_TLV_SAP_OFL_DEL_STA_EVENTID,
391 enum wmi_tlv_pdev_param {
392 WMI_TLV_PDEV_PARAM_TX_CHAIN_MASK = 0x1,
393 WMI_TLV_PDEV_PARAM_RX_CHAIN_MASK,
394 WMI_TLV_PDEV_PARAM_TXPOWER_LIMIT2G,
395 WMI_TLV_PDEV_PARAM_TXPOWER_LIMIT5G,
396 WMI_TLV_PDEV_PARAM_TXPOWER_SCALE,
397 WMI_TLV_PDEV_PARAM_BEACON_GEN_MODE,
398 WMI_TLV_PDEV_PARAM_BEACON_TX_MODE,
399 WMI_TLV_PDEV_PARAM_RESMGR_OFFCHAN_MODE,
400 WMI_TLV_PDEV_PARAM_PROTECTION_MODE,
401 WMI_TLV_PDEV_PARAM_DYNAMIC_BW,
402 WMI_TLV_PDEV_PARAM_NON_AGG_SW_RETRY_TH,
403 WMI_TLV_PDEV_PARAM_AGG_SW_RETRY_TH,
404 WMI_TLV_PDEV_PARAM_STA_KICKOUT_TH,
405 WMI_TLV_PDEV_PARAM_AC_AGGRSIZE_SCALING,
406 WMI_TLV_PDEV_PARAM_LTR_ENABLE,
407 WMI_TLV_PDEV_PARAM_LTR_AC_LATENCY_BE,
408 WMI_TLV_PDEV_PARAM_LTR_AC_LATENCY_BK,
409 WMI_TLV_PDEV_PARAM_LTR_AC_LATENCY_VI,
410 WMI_TLV_PDEV_PARAM_LTR_AC_LATENCY_VO,
411 WMI_TLV_PDEV_PARAM_LTR_AC_LATENCY_TIMEOUT,
412 WMI_TLV_PDEV_PARAM_LTR_SLEEP_OVERRIDE,
413 WMI_TLV_PDEV_PARAM_LTR_RX_OVERRIDE,
414 WMI_TLV_PDEV_PARAM_LTR_TX_ACTIVITY_TIMEOUT,
415 WMI_TLV_PDEV_PARAM_L1SS_ENABLE,
416 WMI_TLV_PDEV_PARAM_DSLEEP_ENABLE,
417 WMI_TLV_PDEV_PARAM_PCIELP_TXBUF_FLUSH,
418 WMI_TLV_PDEV_PARAM_PCIELP_TXBUF_WATERMARK,
419 WMI_TLV_PDEV_PARAM_PCIELP_TXBUF_TMO_EN,
420 WMI_TLV_PDEV_PARAM_PCIELP_TXBUF_TMO_VALUE,
421 WMI_TLV_PDEV_PARAM_PDEV_STATS_UPDATE_PERIOD,
422 WMI_TLV_PDEV_PARAM_VDEV_STATS_UPDATE_PERIOD,
423 WMI_TLV_PDEV_PARAM_PEER_STATS_UPDATE_PERIOD,
424 WMI_TLV_PDEV_PARAM_BCNFLT_STATS_UPDATE_PERIOD,
425 WMI_TLV_PDEV_PARAM_PMF_QOS,
426 WMI_TLV_PDEV_PARAM_ARP_AC_OVERRIDE,
427 WMI_TLV_PDEV_PARAM_DCS,
428 WMI_TLV_PDEV_PARAM_ANI_ENABLE,
429 WMI_TLV_PDEV_PARAM_ANI_POLL_PERIOD,
430 WMI_TLV_PDEV_PARAM_ANI_LISTEN_PERIOD,
431 WMI_TLV_PDEV_PARAM_ANI_OFDM_LEVEL,
432 WMI_TLV_PDEV_PARAM_ANI_CCK_LEVEL,
433 WMI_TLV_PDEV_PARAM_DYNTXCHAIN,
434 WMI_TLV_PDEV_PARAM_PROXY_STA,
435 WMI_TLV_PDEV_PARAM_IDLE_PS_CONFIG,
436 WMI_TLV_PDEV_PARAM_POWER_GATING_SLEEP,
437 WMI_TLV_PDEV_PARAM_RFKILL_ENABLE,
438 WMI_TLV_PDEV_PARAM_BURST_DUR,
439 WMI_TLV_PDEV_PARAM_BURST_ENABLE,
440 WMI_TLV_PDEV_PARAM_HW_RFKILL_CONFIG,
441 WMI_TLV_PDEV_PARAM_LOW_POWER_RF_ENABLE,
442 WMI_TLV_PDEV_PARAM_L1SS_TRACK,
443 WMI_TLV_PDEV_PARAM_HYST_EN,
444 WMI_TLV_PDEV_PARAM_POWER_COLLAPSE_ENABLE,
445 WMI_TLV_PDEV_PARAM_LED_SYS_STATE,
446 WMI_TLV_PDEV_PARAM_LED_ENABLE,
447 WMI_TLV_PDEV_PARAM_AUDIO_OVER_WLAN_LATENCY,
448 WMI_TLV_PDEV_PARAM_AUDIO_OVER_WLAN_ENABLE,
449 WMI_TLV_PDEV_PARAM_WHAL_MIB_STATS_UPDATE_ENABLE,
450 WMI_TLV_PDEV_PARAM_VDEV_RATE_STATS_UPDATE_PERIOD,
451 WMI_TLV_PDEV_PARAM_TXPOWER_REASON_NONE,
452 WMI_TLV_PDEV_PARAM_TXPOWER_REASON_SAR,
453 WMI_TLV_PDEV_PARAM_TXPOWER_REASON_MAX,
456 enum wmi_tlv_vdev_param {
457 WMI_TLV_VDEV_PARAM_RTS_THRESHOLD = 0x1,
458 WMI_TLV_VDEV_PARAM_FRAGMENTATION_THRESHOLD,
459 WMI_TLV_VDEV_PARAM_BEACON_INTERVAL,
460 WMI_TLV_VDEV_PARAM_LISTEN_INTERVAL,
461 WMI_TLV_VDEV_PARAM_MULTICAST_RATE,
462 WMI_TLV_VDEV_PARAM_MGMT_TX_RATE,
463 WMI_TLV_VDEV_PARAM_SLOT_TIME,
464 WMI_TLV_VDEV_PARAM_PREAMBLE,
465 WMI_TLV_VDEV_PARAM_SWBA_TIME,
466 WMI_TLV_VDEV_STATS_UPDATE_PERIOD,
467 WMI_TLV_VDEV_PWRSAVE_AGEOUT_TIME,
468 WMI_TLV_VDEV_HOST_SWBA_INTERVAL,
469 WMI_TLV_VDEV_PARAM_DTIM_PERIOD,
470 WMI_TLV_VDEV_OC_SCHEDULER_AIR_TIME_LIMIT,
471 WMI_TLV_VDEV_PARAM_WDS,
472 WMI_TLV_VDEV_PARAM_ATIM_WINDOW,
473 WMI_TLV_VDEV_PARAM_BMISS_COUNT_MAX,
474 WMI_TLV_VDEV_PARAM_BMISS_FIRST_BCNT,
475 WMI_TLV_VDEV_PARAM_BMISS_FINAL_BCNT,
476 WMI_TLV_VDEV_PARAM_FEATURE_WMM,
477 WMI_TLV_VDEV_PARAM_CHWIDTH,
478 WMI_TLV_VDEV_PARAM_CHEXTOFFSET,
479 WMI_TLV_VDEV_PARAM_DISABLE_HTPROTECTION,
480 WMI_TLV_VDEV_PARAM_STA_QUICKKICKOUT,
481 WMI_TLV_VDEV_PARAM_MGMT_RATE,
482 WMI_TLV_VDEV_PARAM_PROTECTION_MODE,
483 WMI_TLV_VDEV_PARAM_FIXED_RATE,
484 WMI_TLV_VDEV_PARAM_SGI,
485 WMI_TLV_VDEV_PARAM_LDPC,
486 WMI_TLV_VDEV_PARAM_TX_STBC,
487 WMI_TLV_VDEV_PARAM_RX_STBC,
488 WMI_TLV_VDEV_PARAM_INTRA_BSS_FWD,
489 WMI_TLV_VDEV_PARAM_DEF_KEYID,
490 WMI_TLV_VDEV_PARAM_NSS,
491 WMI_TLV_VDEV_PARAM_BCAST_DATA_RATE,
492 WMI_TLV_VDEV_PARAM_MCAST_DATA_RATE,
493 WMI_TLV_VDEV_PARAM_MCAST_INDICATE,
494 WMI_TLV_VDEV_PARAM_DHCP_INDICATE,
495 WMI_TLV_VDEV_PARAM_UNKNOWN_DEST_INDICATE,
496 WMI_TLV_VDEV_PARAM_AP_KEEPALIVE_MIN_IDLE_INACTIVE_TIME_SECS,
497 WMI_TLV_VDEV_PARAM_AP_KEEPALIVE_MAX_IDLE_INACTIVE_TIME_SECS,
498 WMI_TLV_VDEV_PARAM_AP_KEEPALIVE_MAX_UNRESPONSIVE_TIME_SECS,
499 WMI_TLV_VDEV_PARAM_AP_ENABLE_NAWDS,
500 WMI_TLV_VDEV_PARAM_ENABLE_RTSCTS,
501 WMI_TLV_VDEV_PARAM_TXBF,
502 WMI_TLV_VDEV_PARAM_PACKET_POWERSAVE,
503 WMI_TLV_VDEV_PARAM_DROP_UNENCRY,
504 WMI_TLV_VDEV_PARAM_TX_ENCAP_TYPE,
505 WMI_TLV_VDEV_PARAM_AP_DETECT_OUT_OF_SYNC_SLEEPING_STA_TIME_SECS,
506 WMI_TLV_VDEV_PARAM_EARLY_RX_ADJUST_ENABLE,
507 WMI_TLV_VDEV_PARAM_EARLY_RX_TGT_BMISS_NUM,
508 WMI_TLV_VDEV_PARAM_EARLY_RX_BMISS_SAMPLE_CYCLE,
509 WMI_TLV_VDEV_PARAM_EARLY_RX_SLOP_STEP,
510 WMI_TLV_VDEV_PARAM_EARLY_RX_INIT_SLOP,
511 WMI_TLV_VDEV_PARAM_EARLY_RX_ADJUST_PAUSE,
512 WMI_TLV_VDEV_PARAM_TX_PWRLIMIT,
513 WMI_TLV_VDEV_PARAM_SNR_NUM_FOR_CAL,
514 WMI_TLV_VDEV_PARAM_ROAM_FW_OFFLOAD,
515 WMI_TLV_VDEV_PARAM_ENABLE_RMC,
516 WMI_TLV_VDEV_PARAM_IBSS_MAX_BCN_LOST_MS,
517 WMI_TLV_VDEV_PARAM_MAX_RATE,
518 WMI_TLV_VDEV_PARAM_EARLY_RX_DRIFT_SAMPLE,
519 WMI_TLV_VDEV_PARAM_SET_IBSS_TX_FAIL_CNT_THR,
520 WMI_TLV_VDEV_PARAM_EBT_RESYNC_TIMEOUT,
521 WMI_TLV_VDEV_PARAM_AGGR_TRIG_EVENT_ENABLE,
522 WMI_TLV_VDEV_PARAM_IS_IBSS_POWER_SAVE_ALLOWED,
523 WMI_TLV_VDEV_PARAM_IS_POWER_COLLAPSE_ALLOWED,
524 WMI_TLV_VDEV_PARAM_IS_AWAKE_ON_TXRX_ENABLED,
525 WMI_TLV_VDEV_PARAM_INACTIVITY_CNT,
526 WMI_TLV_VDEV_PARAM_TXSP_END_INACTIVITY_TIME_MS,
527 WMI_TLV_VDEV_PARAM_DTIM_POLICY,
528 WMI_TLV_VDEV_PARAM_IBSS_PS_WARMUP_TIME_SECS,
529 WMI_TLV_VDEV_PARAM_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_ENABLE,
532 enum wmi_tlv_peer_flags {
533 WMI_TLV_PEER_AUTH = 0x00000001,
534 WMI_TLV_PEER_QOS = 0x00000002,
535 WMI_TLV_PEER_NEED_PTK_4_WAY = 0x00000004,
536 WMI_TLV_PEER_NEED_GTK_2_WAY = 0x00000010,
537 WMI_TLV_PEER_APSD = 0x00000800,
538 WMI_TLV_PEER_HT = 0x00001000,
539 WMI_TLV_PEER_40MHZ = 0x00002000,
540 WMI_TLV_PEER_STBC = 0x00008000,
541 WMI_TLV_PEER_LDPC = 0x00010000,
542 WMI_TLV_PEER_DYN_MIMOPS = 0x00020000,
543 WMI_TLV_PEER_STATIC_MIMOPS = 0x00040000,
544 WMI_TLV_PEER_SPATIAL_MUX = 0x00200000,
545 WMI_TLV_PEER_VHT = 0x02000000,
546 WMI_TLV_PEER_80MHZ = 0x04000000,
547 WMI_TLV_PEER_PMF = 0x08000000,
548 WMI_TLV_PEER_160MHZ = 0x20000000,
551 enum wmi_tlv_tag {
552 WMI_TLV_TAG_LAST_RESERVED = 15,
554 WMI_TLV_TAG_FIRST_ARRAY_ENUM,
555 WMI_TLV_TAG_ARRAY_UINT32 = WMI_TLV_TAG_FIRST_ARRAY_ENUM,
556 WMI_TLV_TAG_ARRAY_BYTE,
557 WMI_TLV_TAG_ARRAY_STRUCT,
558 WMI_TLV_TAG_ARRAY_FIXED_STRUCT,
559 WMI_TLV_TAG_LAST_ARRAY_ENUM = 31,
561 WMI_TLV_TAG_STRUCT_SERVICE_READY_EVENT,
562 WMI_TLV_TAG_STRUCT_HAL_REG_CAPABILITIES,
563 WMI_TLV_TAG_STRUCT_WLAN_HOST_MEM_REQ,
564 WMI_TLV_TAG_STRUCT_READY_EVENT,
565 WMI_TLV_TAG_STRUCT_SCAN_EVENT,
566 WMI_TLV_TAG_STRUCT_PDEV_TPC_CONFIG_EVENT,
567 WMI_TLV_TAG_STRUCT_CHAN_INFO_EVENT,
568 WMI_TLV_TAG_STRUCT_COMB_PHYERR_RX_HDR,
569 WMI_TLV_TAG_STRUCT_VDEV_START_RESPONSE_EVENT,
570 WMI_TLV_TAG_STRUCT_VDEV_STOPPED_EVENT,
571 WMI_TLV_TAG_STRUCT_VDEV_INSTALL_KEY_COMPLETE_EVENT,
572 WMI_TLV_TAG_STRUCT_PEER_STA_KICKOUT_EVENT,
573 WMI_TLV_TAG_STRUCT_MGMT_RX_HDR,
574 WMI_TLV_TAG_STRUCT_TBTT_OFFSET_EVENT,
575 WMI_TLV_TAG_STRUCT_TX_DELBA_COMPLETE_EVENT,
576 WMI_TLV_TAG_STRUCT_TX_ADDBA_COMPLETE_EVENT,
577 WMI_TLV_TAG_STRUCT_ROAM_EVENT,
578 WMI_TLV_TAG_STRUCT_WOW_EVENT_INFO,
579 WMI_TLV_TAG_STRUCT_WOW_EVENT_INFO_SECTION_BITMAP,
580 WMI_TLV_TAG_STRUCT_RTT_EVENT_HEADER,
581 WMI_TLV_TAG_STRUCT_RTT_ERROR_REPORT_EVENT,
582 WMI_TLV_TAG_STRUCT_RTT_MEAS_EVENT,
583 WMI_TLV_TAG_STRUCT_ECHO_EVENT,
584 WMI_TLV_TAG_STRUCT_FTM_INTG_EVENT,
585 WMI_TLV_TAG_STRUCT_VDEV_GET_KEEPALIVE_EVENT,
586 WMI_TLV_TAG_STRUCT_GPIO_INPUT_EVENT,
587 WMI_TLV_TAG_STRUCT_CSA_EVENT,
588 WMI_TLV_TAG_STRUCT_GTK_OFFLOAD_STATUS_EVENT,
589 WMI_TLV_TAG_STRUCT_IGTK_INFO,
590 WMI_TLV_TAG_STRUCT_DCS_INTERFERENCE_EVENT,
591 WMI_TLV_TAG_STRUCT_ATH_DCS_CW_INT,
592 WMI_TLV_TAG_STRUCT_ATH_DCS_WLAN_INT_STAT,
593 WMI_TLV_TAG_STRUCT_WLAN_PROFILE_CTX_T,
594 WMI_TLV_TAG_STRUCT_WLAN_PROFILE_T,
595 WMI_TLV_TAG_STRUCT_PDEV_QVIT_EVENT,
596 WMI_TLV_TAG_STRUCT_HOST_SWBA_EVENT,
597 WMI_TLV_TAG_STRUCT_TIM_INFO,
598 WMI_TLV_TAG_STRUCT_P2P_NOA_INFO,
599 WMI_TLV_TAG_STRUCT_STATS_EVENT,
600 WMI_TLV_TAG_STRUCT_AVOID_FREQ_RANGES_EVENT,
601 WMI_TLV_TAG_STRUCT_AVOID_FREQ_RANGE_DESC,
602 WMI_TLV_TAG_STRUCT_GTK_REKEY_FAIL_EVENT,
603 WMI_TLV_TAG_STRUCT_INIT_CMD,
604 WMI_TLV_TAG_STRUCT_RESOURCE_CONFIG,
605 WMI_TLV_TAG_STRUCT_WLAN_HOST_MEMORY_CHUNK,
606 WMI_TLV_TAG_STRUCT_START_SCAN_CMD,
607 WMI_TLV_TAG_STRUCT_STOP_SCAN_CMD,
608 WMI_TLV_TAG_STRUCT_SCAN_CHAN_LIST_CMD,
609 WMI_TLV_TAG_STRUCT_CHANNEL,
610 WMI_TLV_TAG_STRUCT_PDEV_SET_REGDOMAIN_CMD,
611 WMI_TLV_TAG_STRUCT_PDEV_SET_PARAM_CMD,
612 WMI_TLV_TAG_STRUCT_PDEV_SET_WMM_PARAMS_CMD,
613 WMI_TLV_TAG_STRUCT_WMM_PARAMS,
614 WMI_TLV_TAG_STRUCT_PDEV_SET_QUIET_CMD,
615 WMI_TLV_TAG_STRUCT_VDEV_CREATE_CMD,
616 WMI_TLV_TAG_STRUCT_VDEV_DELETE_CMD,
617 WMI_TLV_TAG_STRUCT_VDEV_START_REQUEST_CMD,
618 WMI_TLV_TAG_STRUCT_P2P_NOA_DESCRIPTOR,
619 WMI_TLV_TAG_STRUCT_P2P_GO_SET_BEACON_IE,
620 WMI_TLV_TAG_STRUCT_GTK_OFFLOAD_CMD,
621 WMI_TLV_TAG_STRUCT_VDEV_UP_CMD,
622 WMI_TLV_TAG_STRUCT_VDEV_STOP_CMD,
623 WMI_TLV_TAG_STRUCT_VDEV_DOWN_CMD,
624 WMI_TLV_TAG_STRUCT_VDEV_SET_PARAM_CMD,
625 WMI_TLV_TAG_STRUCT_VDEV_INSTALL_KEY_CMD,
626 WMI_TLV_TAG_STRUCT_PEER_CREATE_CMD,
627 WMI_TLV_TAG_STRUCT_PEER_DELETE_CMD,
628 WMI_TLV_TAG_STRUCT_PEER_FLUSH_TIDS_CMD,
629 WMI_TLV_TAG_STRUCT_PEER_SET_PARAM_CMD,
630 WMI_TLV_TAG_STRUCT_PEER_ASSOC_COMPLETE_CMD,
631 WMI_TLV_TAG_STRUCT_VHT_RATE_SET,
632 WMI_TLV_TAG_STRUCT_BCN_TMPL_CMD,
633 WMI_TLV_TAG_STRUCT_PRB_TMPL_CMD,
634 WMI_TLV_TAG_STRUCT_BCN_PRB_INFO,
635 WMI_TLV_TAG_STRUCT_PEER_TID_ADDBA_CMD,
636 WMI_TLV_TAG_STRUCT_PEER_TID_DELBA_CMD,
637 WMI_TLV_TAG_STRUCT_STA_POWERSAVE_MODE_CMD,
638 WMI_TLV_TAG_STRUCT_STA_POWERSAVE_PARAM_CMD,
639 WMI_TLV_TAG_STRUCT_STA_DTIM_PS_METHOD_CMD,
640 WMI_TLV_TAG_STRUCT_ROAM_SCAN_MODE,
641 WMI_TLV_TAG_STRUCT_ROAM_SCAN_RSSI_THRESHOLD,
642 WMI_TLV_TAG_STRUCT_ROAM_SCAN_PERIOD,
643 WMI_TLV_TAG_STRUCT_ROAM_SCAN_RSSI_CHANGE_THRESHOLD,
644 WMI_TLV_TAG_STRUCT_PDEV_SUSPEND_CMD,
645 WMI_TLV_TAG_STRUCT_PDEV_RESUME_CMD,
646 WMI_TLV_TAG_STRUCT_ADD_BCN_FILTER_CMD,
647 WMI_TLV_TAG_STRUCT_RMV_BCN_FILTER_CMD,
648 WMI_TLV_TAG_STRUCT_WOW_ENABLE_CMD,
649 WMI_TLV_TAG_STRUCT_WOW_HOSTWAKEUP_FROM_SLEEP_CMD,
650 WMI_TLV_TAG_STRUCT_STA_UAPSD_AUTO_TRIG_CMD,
651 WMI_TLV_TAG_STRUCT_STA_UAPSD_AUTO_TRIG_PARAM,
652 WMI_TLV_TAG_STRUCT_SET_ARP_NS_OFFLOAD_CMD,
653 WMI_TLV_TAG_STRUCT_ARP_OFFLOAD_TUPLE,
654 WMI_TLV_TAG_STRUCT_NS_OFFLOAD_TUPLE,
655 WMI_TLV_TAG_STRUCT_FTM_INTG_CMD,
656 WMI_TLV_TAG_STRUCT_STA_KEEPALIVE_CMD,
657 WMI_TLV_TAG_STRUCT_STA_KEEPALVE_ARP_RESPONSE,
658 WMI_TLV_TAG_STRUCT_P2P_SET_VENDOR_IE_DATA_CMD,
659 WMI_TLV_TAG_STRUCT_AP_PS_PEER_CMD,
660 WMI_TLV_TAG_STRUCT_PEER_RATE_RETRY_SCHED_CMD,
661 WMI_TLV_TAG_STRUCT_WLAN_PROFILE_TRIGGER_CMD,
662 WMI_TLV_TAG_STRUCT_WLAN_PROFILE_SET_HIST_INTVL_CMD,
663 WMI_TLV_TAG_STRUCT_WLAN_PROFILE_GET_PROF_DATA_CMD,
664 WMI_TLV_TAG_STRUCT_WLAN_PROFILE_ENABLE_PROFILE_ID_CMD,
665 WMI_TLV_TAG_STRUCT_WOW_DEL_PATTERN_CMD,
666 WMI_TLV_TAG_STRUCT_WOW_ADD_DEL_EVT_CMD,
667 WMI_TLV_TAG_STRUCT_RTT_MEASREQ_HEAD,
668 WMI_TLV_TAG_STRUCT_RTT_MEASREQ_BODY,
669 WMI_TLV_TAG_STRUCT_RTT_TSF_CMD,
670 WMI_TLV_TAG_STRUCT_VDEV_SPECTRAL_CONFIGURE_CMD,
671 WMI_TLV_TAG_STRUCT_VDEV_SPECTRAL_ENABLE_CMD,
672 WMI_TLV_TAG_STRUCT_REQUEST_STATS_CMD,
673 WMI_TLV_TAG_STRUCT_NLO_CONFIG_CMD,
674 WMI_TLV_TAG_STRUCT_NLO_CONFIGURED_PARAMETERS,
675 WMI_TLV_TAG_STRUCT_CSA_OFFLOAD_ENABLE_CMD,
676 WMI_TLV_TAG_STRUCT_CSA_OFFLOAD_CHANSWITCH_CMD,
677 WMI_TLV_TAG_STRUCT_CHATTER_SET_MODE_CMD,
678 WMI_TLV_TAG_STRUCT_ECHO_CMD,
679 WMI_TLV_TAG_STRUCT_VDEV_SET_KEEPALIVE_CMD,
680 WMI_TLV_TAG_STRUCT_VDEV_GET_KEEPALIVE_CMD,
681 WMI_TLV_TAG_STRUCT_FORCE_FW_HANG_CMD,
682 WMI_TLV_TAG_STRUCT_GPIO_CONFIG_CMD,
683 WMI_TLV_TAG_STRUCT_GPIO_OUTPUT_CMD,
684 WMI_TLV_TAG_STRUCT_PEER_ADD_WDS_ENTRY_CMD,
685 WMI_TLV_TAG_STRUCT_PEER_REMOVE_WDS_ENTRY_CMD,
686 WMI_TLV_TAG_STRUCT_BCN_TX_HDR,
687 WMI_TLV_TAG_STRUCT_BCN_SEND_FROM_HOST_CMD,
688 WMI_TLV_TAG_STRUCT_MGMT_TX_HDR,
689 WMI_TLV_TAG_STRUCT_ADDBA_CLEAR_RESP_CMD,
690 WMI_TLV_TAG_STRUCT_ADDBA_SEND_CMD,
691 WMI_TLV_TAG_STRUCT_DELBA_SEND_CMD,
692 WMI_TLV_TAG_STRUCT_ADDBA_SETRESPONSE_CMD,
693 WMI_TLV_TAG_STRUCT_SEND_SINGLEAMSDU_CMD,
694 WMI_TLV_TAG_STRUCT_PDEV_PKTLOG_ENABLE_CMD,
695 WMI_TLV_TAG_STRUCT_PDEV_PKTLOG_DISABLE_CMD,
696 WMI_TLV_TAG_STRUCT_PDEV_SET_HT_IE_CMD,
697 WMI_TLV_TAG_STRUCT_PDEV_SET_VHT_IE_CMD,
698 WMI_TLV_TAG_STRUCT_PDEV_SET_DSCP_TID_MAP_CMD,
699 WMI_TLV_TAG_STRUCT_PDEV_GREEN_AP_PS_ENABLE_CMD,
700 WMI_TLV_TAG_STRUCT_PDEV_GET_TPC_CONFIG_CMD,
701 WMI_TLV_TAG_STRUCT_PDEV_SET_BASE_MACADDR_CMD,
702 WMI_TLV_TAG_STRUCT_PEER_MCAST_GROUP_CMD,
703 WMI_TLV_TAG_STRUCT_ROAM_AP_PROFILE,
704 WMI_TLV_TAG_STRUCT_AP_PROFILE,
705 WMI_TLV_TAG_STRUCT_SCAN_SCH_PRIORITY_TABLE_CMD,
706 WMI_TLV_TAG_STRUCT_PDEV_DFS_ENABLE_CMD,
707 WMI_TLV_TAG_STRUCT_PDEV_DFS_DISABLE_CMD,
708 WMI_TLV_TAG_STRUCT_WOW_ADD_PATTERN_CMD,
709 WMI_TLV_TAG_STRUCT_WOW_BITMAP_PATTERN_T,
710 WMI_TLV_TAG_STRUCT_WOW_IPV4_SYNC_PATTERN_T,
711 WMI_TLV_TAG_STRUCT_WOW_IPV6_SYNC_PATTERN_T,
712 WMI_TLV_TAG_STRUCT_WOW_MAGIC_PATTERN_CMD,
713 WMI_TLV_TAG_STRUCT_SCAN_UPDATE_REQUEST_CMD,
714 WMI_TLV_TAG_STRUCT_CHATTER_PKT_COALESCING_FILTER,
715 WMI_TLV_TAG_STRUCT_CHATTER_COALESCING_ADD_FILTER_CMD,
716 WMI_TLV_TAG_STRUCT_CHATTER_COALESCING_DELETE_FILTER_CMD,
717 WMI_TLV_TAG_STRUCT_CHATTER_COALESCING_QUERY_CMD,
718 WMI_TLV_TAG_STRUCT_TXBF_CMD,
719 WMI_TLV_TAG_STRUCT_DEBUG_LOG_CONFIG_CMD,
720 WMI_TLV_TAG_STRUCT_NLO_EVENT,
721 WMI_TLV_TAG_STRUCT_CHATTER_QUERY_REPLY_EVENT,
722 WMI_TLV_TAG_STRUCT_UPLOAD_H_HDR,
723 WMI_TLV_TAG_STRUCT_CAPTURE_H_EVENT_HDR,
724 WMI_TLV_TAG_STRUCT_VDEV_WNM_SLEEPMODE_CMD,
725 WMI_TLV_TAG_STRUCT_VDEV_IPSEC_NATKEEPALIVE_FILTER_CMD,
726 WMI_TLV_TAG_STRUCT_VDEV_WMM_ADDTS_CMD,
727 WMI_TLV_TAG_STRUCT_VDEV_WMM_DELTS_CMD,
728 WMI_TLV_TAG_STRUCT_VDEV_SET_WMM_PARAMS_CMD,
729 WMI_TLV_TAG_STRUCT_TDLS_SET_STATE_CMD,
730 WMI_TLV_TAG_STRUCT_TDLS_PEER_UPDATE_CMD,
731 WMI_TLV_TAG_STRUCT_TDLS_PEER_EVENT,
732 WMI_TLV_TAG_STRUCT_TDLS_PEER_CAPABILITIES,
733 WMI_TLV_TAG_STRUCT_VDEV_MCC_SET_TBTT_MODE_CMD,
734 WMI_TLV_TAG_STRUCT_ROAM_CHAN_LIST,
735 WMI_TLV_TAG_STRUCT_VDEV_MCC_BCN_INTVL_CHANGE_EVENT,
736 WMI_TLV_TAG_STRUCT_RESMGR_ADAPTIVE_OCS_CMD,
737 WMI_TLV_TAG_STRUCT_RESMGR_SET_CHAN_TIME_QUOTA_CMD,
738 WMI_TLV_TAG_STRUCT_RESMGR_SET_CHAN_LATENCY_CMD,
739 WMI_TLV_TAG_STRUCT_BA_REQ_SSN_CMD,
740 WMI_TLV_TAG_STRUCT_BA_RSP_SSN_EVENT,
741 WMI_TLV_TAG_STRUCT_STA_SMPS_FORCE_MODE_CMD,
742 WMI_TLV_TAG_STRUCT_SET_MCASTBCAST_FILTER_CMD,
743 WMI_TLV_TAG_STRUCT_P2P_SET_OPPPS_CMD,
744 WMI_TLV_TAG_STRUCT_P2P_SET_NOA_CMD,
745 WMI_TLV_TAG_STRUCT_BA_REQ_SSN_CMD_SUB_STRUCT_PARAM,
746 WMI_TLV_TAG_STRUCT_BA_REQ_SSN_EVENT_SUB_STRUCT_PARAM,
747 WMI_TLV_TAG_STRUCT_STA_SMPS_PARAM_CMD,
748 WMI_TLV_TAG_STRUCT_VDEV_SET_GTX_PARAMS_CMD,
749 WMI_TLV_TAG_STRUCT_MCC_SCHED_TRAFFIC_STATS_CMD,
750 WMI_TLV_TAG_STRUCT_MCC_SCHED_STA_TRAFFIC_STATS,
751 WMI_TLV_TAG_STRUCT_OFFLOAD_BCN_TX_STATUS_EVENT,
752 WMI_TLV_TAG_STRUCT_P2P_NOA_EVENT,
753 WMI_TLV_TAG_STRUCT_HB_SET_ENABLE_CMD,
754 WMI_TLV_TAG_STRUCT_HB_SET_TCP_PARAMS_CMD,
755 WMI_TLV_TAG_STRUCT_HB_SET_TCP_PKT_FILTER_CMD,
756 WMI_TLV_TAG_STRUCT_HB_SET_UDP_PARAMS_CMD,
757 WMI_TLV_TAG_STRUCT_HB_SET_UDP_PKT_FILTER_CMD,
758 WMI_TLV_TAG_STRUCT_HB_IND_EVENT,
759 WMI_TLV_TAG_STRUCT_TX_PAUSE_EVENT,
760 WMI_TLV_TAG_STRUCT_RFKILL_EVENT,
761 WMI_TLV_TAG_STRUCT_DFS_RADAR_EVENT,
762 WMI_TLV_TAG_STRUCT_DFS_PHYERR_FILTER_ENA_CMD,
763 WMI_TLV_TAG_STRUCT_DFS_PHYERR_FILTER_DIS_CMD,
764 WMI_TLV_TAG_STRUCT_BATCH_SCAN_RESULT_SCAN_LIST,
765 WMI_TLV_TAG_STRUCT_BATCH_SCAN_RESULT_NETWORK_INFO,
766 WMI_TLV_TAG_STRUCT_BATCH_SCAN_ENABLE_CMD,
767 WMI_TLV_TAG_STRUCT_BATCH_SCAN_DISABLE_CMD,
768 WMI_TLV_TAG_STRUCT_BATCH_SCAN_TRIGGER_RESULT_CMD,
769 WMI_TLV_TAG_STRUCT_BATCH_SCAN_ENABLED_EVENT,
770 WMI_TLV_TAG_STRUCT_BATCH_SCAN_RESULT_EVENT,
771 WMI_TLV_TAG_STRUCT_VDEV_PLMREQ_START_CMD,
772 WMI_TLV_TAG_STRUCT_VDEV_PLMREQ_STOP_CMD,
773 WMI_TLV_TAG_STRUCT_THERMAL_MGMT_CMD,
774 WMI_TLV_TAG_STRUCT_THERMAL_MGMT_EVENT,
775 WMI_TLV_TAG_STRUCT_PEER_INFO_REQ_CMD,
776 WMI_TLV_TAG_STRUCT_PEER_INFO_EVENT,
777 WMI_TLV_TAG_STRUCT_PEER_INFO,
778 WMI_TLV_TAG_STRUCT_PEER_TX_FAIL_CNT_THR_EVENT,
779 WMI_TLV_TAG_STRUCT_RMC_SET_MODE_CMD,
780 WMI_TLV_TAG_STRUCT_RMC_SET_ACTION_PERIOD_CMD,
781 WMI_TLV_TAG_STRUCT_RMC_CONFIG_CMD,
782 WMI_TLV_TAG_STRUCT_MHF_OFFLOAD_SET_MODE_CMD,
783 WMI_TLV_TAG_STRUCT_MHF_OFFLOAD_PLUMB_ROUTING_TABLE_CMD,
784 WMI_TLV_TAG_STRUCT_ADD_PROACTIVE_ARP_RSP_PATTERN_CMD,
785 WMI_TLV_TAG_STRUCT_DEL_PROACTIVE_ARP_RSP_PATTERN_CMD,
786 WMI_TLV_TAG_STRUCT_NAN_CMD_PARAM,
787 WMI_TLV_TAG_STRUCT_NAN_EVENT_HDR,
788 WMI_TLV_TAG_STRUCT_PDEV_L1SS_TRACK_EVENT,
789 WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT,
790 WMI_TLV_TAG_STRUCT_MODEM_POWER_STATE_CMD_PARAM,
791 WMI_TLV_TAG_STRUCT_PEER_GET_ESTIMATED_LINKSPEED_CMD,
792 WMI_TLV_TAG_STRUCT_PEER_ESTIMATED_LINKSPEED_EVENT,
793 WMI_TLV_TAG_STRUCT_AGGR_STATE_TRIG_EVENT,
794 WMI_TLV_TAG_STRUCT_MHF_OFFLOAD_ROUTING_TABLE_ENTRY,
795 WMI_TLV_TAG_STRUCT_ROAM_SCAN_CMD,
796 WMI_TLV_TAG_STRUCT_REQ_STATS_EXT_CMD,
797 WMI_TLV_TAG_STRUCT_STATS_EXT_EVENT,
798 WMI_TLV_TAG_STRUCT_OBSS_SCAN_ENABLE_CMD,
799 WMI_TLV_TAG_STRUCT_OBSS_SCAN_DISABLE_CMD,
800 WMI_TLV_TAG_STRUCT_OFFLOAD_PRB_RSP_TX_STATUS_EVENT,
801 WMI_TLV_TAG_STRUCT_PDEV_SET_LED_CONFIG_CMD,
802 WMI_TLV_TAG_STRUCT_HOST_AUTO_SHUTDOWN_CFG_CMD,
803 WMI_TLV_TAG_STRUCT_HOST_AUTO_SHUTDOWN_EVENT,
804 WMI_TLV_TAG_STRUCT_UPDATE_WHAL_MIB_STATS_EVENT,
805 WMI_TLV_TAG_STRUCT_CHAN_AVOID_UPDATE_CMD_PARAM,
806 WMI_TLV_TAG_STRUCT_WOW_ACER_IOAC_PKT_PATTERN_T,
807 WMI_TLV_TAG_STRUCT_WOW_ACER_IOAC_TMR_PATTERN_T,
808 WMI_TLV_TAG_STRUCT_WOW_IOAC_ADD_KEEPALIVE_CMD,
809 WMI_TLV_TAG_STRUCT_WOW_IOAC_DEL_KEEPALIVE_CMD,
810 WMI_TLV_TAG_STRUCT_WOW_IOAC_KEEPALIVE_T,
811 WMI_TLV_TAG_STRUCT_WOW_ACER_IOAC_ADD_PATTERN_CMD,
812 WMI_TLV_TAG_STRUCT_WOW_ACER_IOAC_DEL_PATTERN_CMD,
813 WMI_TLV_TAG_STRUCT_START_LINK_STATS_CMD,
814 WMI_TLV_TAG_STRUCT_CLEAR_LINK_STATS_CMD,
815 WMI_TLV_TAG_STRUCT_REQUEST_LINK_STATS_CMD,
816 WMI_TLV_TAG_STRUCT_IFACE_LINK_STATS_EVENT,
817 WMI_TLV_TAG_STRUCT_RADIO_LINK_STATS_EVENT,
818 WMI_TLV_TAG_STRUCT_PEER_STATS_EVENT,
819 WMI_TLV_TAG_STRUCT_CHANNEL_STATS,
820 WMI_TLV_TAG_STRUCT_RADIO_LINK_STATS,
821 WMI_TLV_TAG_STRUCT_RATE_STATS,
822 WMI_TLV_TAG_STRUCT_PEER_LINK_STATS,
823 WMI_TLV_TAG_STRUCT_WMM_AC_STATS,
824 WMI_TLV_TAG_STRUCT_IFACE_LINK_STATS,
825 WMI_TLV_TAG_STRUCT_LPI_MGMT_SNOOPING_CONFIG_CMD,
826 WMI_TLV_TAG_STRUCT_LPI_START_SCAN_CMD,
827 WMI_TLV_TAG_STRUCT_LPI_STOP_SCAN_CMD,
828 WMI_TLV_TAG_STRUCT_LPI_RESULT_EVENT,
829 WMI_TLV_TAG_STRUCT_PEER_STATE_EVENT,
830 WMI_TLV_TAG_STRUCT_EXTSCAN_BUCKET_CMD,
831 WMI_TLV_TAG_STRUCT_EXTSCAN_BUCKET_CHANNEL_EVENT,
832 WMI_TLV_TAG_STRUCT_EXTSCAN_START_CMD,
833 WMI_TLV_TAG_STRUCT_EXTSCAN_STOP_CMD,
834 WMI_TLV_TAG_STRUCT_EXTSCAN_CONFIGURE_WLAN_CHANGE_MONITOR_CMD,
835 WMI_TLV_TAG_STRUCT_EXTSCAN_WLAN_CHANGE_BSSID_PARAM_CMD,
836 WMI_TLV_TAG_STRUCT_EXTSCAN_CONFIGURE_HOTLIST_MONITOR_CMD,
837 WMI_TLV_TAG_STRUCT_EXTSCAN_GET_CACHED_RESULTS_CMD,
838 WMI_TLV_TAG_STRUCT_EXTSCAN_GET_WLAN_CHANGE_RESULTS_CMD,
839 WMI_TLV_TAG_STRUCT_EXTSCAN_SET_CAPABILITIES_CMD,
840 WMI_TLV_TAG_STRUCT_EXTSCAN_GET_CAPABILITIES_CMD,
841 WMI_TLV_TAG_STRUCT_EXTSCAN_OPERATION_EVENT,
842 WMI_TLV_TAG_STRUCT_EXTSCAN_START_STOP_EVENT,
843 WMI_TLV_TAG_STRUCT_EXTSCAN_TABLE_USAGE_EVENT,
844 WMI_TLV_TAG_STRUCT_EXTSCAN_WLAN_DESCRIPTOR_EVENT,
845 WMI_TLV_TAG_STRUCT_EXTSCAN_RSSI_INFO_EVENT,
846 WMI_TLV_TAG_STRUCT_EXTSCAN_CACHED_RESULTS_EVENT,
847 WMI_TLV_TAG_STRUCT_EXTSCAN_WLAN_CHANGE_RESULTS_EVENT,
848 WMI_TLV_TAG_STRUCT_EXTSCAN_WLAN_CHANGE_RESULT_BSSID_EVENT,
849 WMI_TLV_TAG_STRUCT_EXTSCAN_HOTLIST_MATCH_EVENT,
850 WMI_TLV_TAG_STRUCT_EXTSCAN_CAPABILITIES_EVENT,
851 WMI_TLV_TAG_STRUCT_EXTSCAN_CACHE_CAPABILITIES_EVENT,
852 WMI_TLV_TAG_STRUCT_EXTSCAN_WLAN_CHANGE_MONITOR_CAPABILITIES_EVENT,
853 WMI_TLV_TAG_STRUCT_EXTSCAN_HOTLIST_MONITOR_CAPABILITIES_EVENT,
854 WMI_TLV_TAG_STRUCT_D0_WOW_ENABLE_DISABLE_CMD,
855 WMI_TLV_TAG_STRUCT_D0_WOW_DISABLE_ACK_EVENT,
856 WMI_TLV_TAG_STRUCT_UNIT_TEST_CMD,
857 WMI_TLV_TAG_STRUCT_ROAM_OFFLOAD_TLV_PARAM,
858 WMI_TLV_TAG_STRUCT_ROAM_11I_OFFLOAD_TLV_PARAM,
859 WMI_TLV_TAG_STRUCT_ROAM_11R_OFFLOAD_TLV_PARAM,
860 WMI_TLV_TAG_STRUCT_ROAM_ESE_OFFLOAD_TLV_PARAM,
861 WMI_TLV_TAG_STRUCT_ROAM_SYNCH_EVENT,
862 WMI_TLV_TAG_STRUCT_ROAM_SYNCH_COMPLETE,
863 WMI_TLV_TAG_STRUCT_EXTWOW_ENABLE_CMD,
864 WMI_TLV_TAG_STRUCT_EXTWOW_SET_APP_TYPE1_PARAMS_CMD,
865 WMI_TLV_TAG_STRUCT_EXTWOW_SET_APP_TYPE2_PARAMS_CMD,
866 WMI_TLV_TAG_STRUCT_LPI_STATUS_EVENT,
867 WMI_TLV_TAG_STRUCT_LPI_HANDOFF_EVENT,
868 WMI_TLV_TAG_STRUCT_VDEV_RATE_STATS_EVENT,
869 WMI_TLV_TAG_STRUCT_VDEV_RATE_HT_INFO,
870 WMI_TLV_TAG_STRUCT_RIC_REQUEST,
871 WMI_TLV_TAG_STRUCT_PDEV_GET_TEMPERATURE_CMD,
872 WMI_TLV_TAG_STRUCT_PDEV_TEMPERATURE_EVENT,
873 WMI_TLV_TAG_STRUCT_SET_DHCP_SERVER_OFFLOAD_CMD,
874 WMI_TLV_TAG_STRUCT_TPC_CHAINMASK_CONFIG_CMD,
875 WMI_TLV_TAG_STRUCT_RIC_TSPEC,
876 WMI_TLV_TAG_STRUCT_TPC_CHAINMASK_CONFIG,
877 WMI_TLV_TAG_STRUCT_IPA_OFFLOAD_CMD,
878 WMI_TLV_TAG_STRUCT_SCAN_PROB_REQ_OUI_CMD,
879 WMI_TLV_TAG_STRUCT_KEY_MATERIAL,
880 WMI_TLV_TAG_STRUCT_TDLS_SET_OFFCHAN_MODE_CMD,
881 WMI_TLV_TAG_STRUCT_SET_LED_FLASHING_CMD,
882 WMI_TLV_TAG_STRUCT_MDNS_OFFLOAD_CMD,
883 WMI_TLV_TAG_STRUCT_MDNS_SET_FQDN_CMD,
884 WMI_TLV_TAG_STRUCT_MDNS_SET_RESP_CMD,
885 WMI_TLV_TAG_STRUCT_MDNS_GET_STATS_CMD,
886 WMI_TLV_TAG_STRUCT_MDNS_STATS_EVENT,
887 WMI_TLV_TAG_STRUCT_ROAM_INVOKE_CMD,
888 WMI_TLV_TAG_STRUCT_PDEV_RESUME_EVENT,
889 WMI_TLV_TAG_STRUCT_PDEV_SET_ANTENNA_DIVERSITY_CMD,
890 WMI_TLV_TAG_STRUCT_SAP_OFL_ENABLE_CMD,
891 WMI_TLV_TAG_STRUCT_SAP_OFL_ADD_STA_EVENT,
892 WMI_TLV_TAG_STRUCT_SAP_OFL_DEL_STA_EVENT,
893 WMI_TLV_TAG_STRUCT_APFIND_CMD_PARAM,
894 WMI_TLV_TAG_STRUCT_APFIND_EVENT_HDR,
895 WMI_TLV_TAG_STRUCT_OCB_SET_SCHED_CMD,
896 WMI_TLV_TAG_STRUCT_OCB_SET_SCHED_EVENT,
897 WMI_TLV_TAG_STRUCT_OCB_SET_CONFIG_CMD,
898 WMI_TLV_TAG_STRUCT_OCB_SET_CONFIG_RESP_EVENT,
899 WMI_TLV_TAG_STRUCT_OCB_SET_UTC_TIME_CMD,
900 WMI_TLV_TAG_STRUCT_OCB_START_TIMING_ADVERT_CMD,
901 WMI_TLV_TAG_STRUCT_OCB_STOP_TIMING_ADVERT_CMD,
902 WMI_TLV_TAG_STRUCT_OCB_GET_TSF_TIMER_CMD,
903 WMI_TLV_TAG_STRUCT_OCB_GET_TSF_TIMER_RESP_EVENT,
904 WMI_TLV_TAG_STRUCT_DCC_GET_STATS_CMD,
905 WMI_TLV_TAG_STRUCT_DCC_CHANNEL_STATS_REQUEST,
906 WMI_TLV_TAG_STRUCT_DCC_GET_STATS_RESP_EVENT,
907 WMI_TLV_TAG_STRUCT_DCC_CLEAR_STATS_CMD,
908 WMI_TLV_TAG_STRUCT_DCC_UPDATE_NDL_CMD,
909 WMI_TLV_TAG_STRUCT_DCC_UPDATE_NDL_RESP_EVENT,
910 WMI_TLV_TAG_STRUCT_DCC_STATS_EVENT,
911 WMI_TLV_TAG_STRUCT_OCB_CHANNEL,
912 WMI_TLV_TAG_STRUCT_OCB_SCHEDULE_ELEMENT,
913 WMI_TLV_TAG_STRUCT_DCC_NDL_STATS_PER_CHANNEL,
914 WMI_TLV_TAG_STRUCT_DCC_NDL_CHAN,
915 WMI_TLV_TAG_STRUCT_QOS_PARAMETER,
916 WMI_TLV_TAG_STRUCT_DCC_NDL_ACTIVE_STATE_CONFIG,
917 WMI_TLV_TAG_STRUCT_ROAM_SCAN_EXTENDED_THRESHOLD_PARAM,
918 WMI_TLV_TAG_STRUCT_ROAM_FILTER_FIXED_PARAM,
919 WMI_TLV_TAG_STRUCT_PASSPOINT_CONFIG_CMD,
920 WMI_TLV_TAG_STRUCT_PASSPOINT_EVENT_HDR,
921 WMI_TLV_TAG_STRUCT_EXTSCAN_CONFIGURE_HOTLIST_SSID_MONITOR_CMD,
922 WMI_TLV_TAG_STRUCT_EXTSCAN_HOTLIST_SSID_MATCH_EVENT,
923 WMI_TLV_TAG_STRUCT_VDEV_TSF_TSTAMP_ACTION_CMD,
924 WMI_TLV_TAG_STRUCT_VDEV_TSF_REPORT_EVENT,
925 WMI_TLV_TAG_STRUCT_GET_FW_MEM_DUMP,
926 WMI_TLV_TAG_STRUCT_UPDATE_FW_MEM_DUMP,
927 WMI_TLV_TAG_STRUCT_FW_MEM_DUMP_PARAMS,
928 WMI_TLV_TAG_STRUCT_DEBUG_MESG_FLUSH,
929 WMI_TLV_TAG_STRUCT_DEBUG_MESG_FLUSH_COMPLETE,
930 WMI_TLV_TAG_STRUCT_PEER_SET_RATE_REPORT_CONDITION,
931 WMI_TLV_TAG_STRUCT_ROAM_SUBNET_CHANGE_CONFIG,
932 WMI_TLV_TAG_STRUCT_VDEV_SET_IE_CMD,
933 WMI_TLV_TAG_STRUCT_RSSI_BREACH_MONITOR_CONFIG,
934 WMI_TLV_TAG_STRUCT_RSSI_BREACH_EVENT,
935 WMI_TLV_TAG_STRUCT_EVENT_INITIAL_WAKEUP,
936 WMI_TLV_TAG_STRUCT_SOC_SET_PCL_CMD,
937 WMI_TLV_TAG_STRUCT_SOC_SET_HW_MODE_CMD,
938 WMI_TLV_TAG_STRUCT_SOC_SET_HW_MODE_RESPONSE_EVENT,
939 WMI_TLV_TAG_STRUCT_SOC_HW_MODE_TRANSITION_EVENT,
940 WMI_TLV_TAG_STRUCT_VDEV_TXRX_STREAMS,
941 WMI_TLV_TAG_STRUCT_SOC_SET_HW_MODE_RESPONSE_VDEV_MAC_ENTRY,
942 WMI_TLV_TAG_STRUCT_SOC_SET_DUAL_MAC_CONFIG_CMD,
943 WMI_TLV_TAG_STRUCT_SOC_SET_DUAL_MAC_CONFIG_RESPONSE_EVENT,
944 WMI_TLV_TAG_STRUCT_IOAC_SOCK_PATTERN_T,
945 WMI_TLV_TAG_STRUCT_WOW_ENABLE_ICMPV6_NA_FLT_CMD,
946 WMI_TLV_TAG_STRUCT_DIAG_EVENT_LOG_CONFIG,
947 WMI_TLV_TAG_STRUCT_DIAG_EVENT_LOG_SUPPORTED_EVENT,
948 WMI_TLV_TAG_STRUCT_PACKET_FILTER_CONFIG,
949 WMI_TLV_TAG_STRUCT_PACKET_FILTER_ENABLE,
950 WMI_TLV_TAG_STRUCT_SAP_SET_BLACKLIST_PARAM_CMD,
951 WMI_TLV_TAG_STRUCT_MGMT_TX_CMD,
953 WMI_TLV_TAG_MAX
956 enum wmi_tlv_service {
957 WMI_TLV_SERVICE_BEACON_OFFLOAD = 0,
958 WMI_TLV_SERVICE_SCAN_OFFLOAD,
959 WMI_TLV_SERVICE_ROAM_SCAN_OFFLOAD,
960 WMI_TLV_SERVICE_BCN_MISS_OFFLOAD,
961 WMI_TLV_SERVICE_STA_PWRSAVE,
962 WMI_TLV_SERVICE_STA_ADVANCED_PWRSAVE,
963 WMI_TLV_SERVICE_AP_UAPSD,
964 WMI_TLV_SERVICE_AP_DFS,
965 WMI_TLV_SERVICE_11AC,
966 WMI_TLV_SERVICE_BLOCKACK,
967 WMI_TLV_SERVICE_PHYERR,
968 WMI_TLV_SERVICE_BCN_FILTER,
969 WMI_TLV_SERVICE_RTT,
970 WMI_TLV_SERVICE_WOW,
971 WMI_TLV_SERVICE_RATECTRL_CACHE,
972 WMI_TLV_SERVICE_IRAM_TIDS,
973 WMI_TLV_SERVICE_ARPNS_OFFLOAD,
974 WMI_TLV_SERVICE_NLO,
975 WMI_TLV_SERVICE_GTK_OFFLOAD,
976 WMI_TLV_SERVICE_SCAN_SCH,
977 WMI_TLV_SERVICE_CSA_OFFLOAD,
978 WMI_TLV_SERVICE_CHATTER,
979 WMI_TLV_SERVICE_COEX_FREQAVOID,
980 WMI_TLV_SERVICE_PACKET_POWER_SAVE,
981 WMI_TLV_SERVICE_FORCE_FW_HANG,
982 WMI_TLV_SERVICE_GPIO,
983 WMI_TLV_SERVICE_STA_DTIM_PS_MODULATED_DTIM,
984 WMI_TLV_SERVICE_STA_UAPSD_BASIC_AUTO_TRIG,
985 WMI_TLV_SERVICE_STA_UAPSD_VAR_AUTO_TRIG,
986 WMI_TLV_SERVICE_STA_KEEP_ALIVE,
987 WMI_TLV_SERVICE_TX_ENCAP,
988 WMI_TLV_SERVICE_AP_PS_DETECT_OUT_OF_SYNC,
989 WMI_TLV_SERVICE_EARLY_RX,
990 WMI_TLV_SERVICE_STA_SMPS,
991 WMI_TLV_SERVICE_FWTEST,
992 WMI_TLV_SERVICE_STA_WMMAC,
993 WMI_TLV_SERVICE_TDLS,
994 WMI_TLV_SERVICE_BURST,
995 WMI_TLV_SERVICE_MCC_BCN_INTERVAL_CHANGE,
996 WMI_TLV_SERVICE_ADAPTIVE_OCS,
997 WMI_TLV_SERVICE_BA_SSN_SUPPORT,
998 WMI_TLV_SERVICE_FILTER_IPSEC_NATKEEPALIVE,
999 WMI_TLV_SERVICE_WLAN_HB,
1000 WMI_TLV_SERVICE_LTE_ANT_SHARE_SUPPORT,
1001 WMI_TLV_SERVICE_BATCH_SCAN,
1002 WMI_TLV_SERVICE_QPOWER,
1003 WMI_TLV_SERVICE_PLMREQ,
1004 WMI_TLV_SERVICE_THERMAL_MGMT,
1005 WMI_TLV_SERVICE_RMC,
1006 WMI_TLV_SERVICE_MHF_OFFLOAD,
1007 WMI_TLV_SERVICE_COEX_SAR,
1008 WMI_TLV_SERVICE_BCN_TXRATE_OVERRIDE,
1009 WMI_TLV_SERVICE_NAN,
1010 WMI_TLV_SERVICE_L1SS_STAT,
1011 WMI_TLV_SERVICE_ESTIMATE_LINKSPEED,
1012 WMI_TLV_SERVICE_OBSS_SCAN,
1013 WMI_TLV_SERVICE_TDLS_OFFCHAN,
1014 WMI_TLV_SERVICE_TDLS_UAPSD_BUFFER_STA,
1015 WMI_TLV_SERVICE_TDLS_UAPSD_SLEEP_STA,
1016 WMI_TLV_SERVICE_IBSS_PWRSAVE,
1017 WMI_TLV_SERVICE_LPASS,
1018 WMI_TLV_SERVICE_EXTSCAN,
1019 WMI_TLV_SERVICE_D0WOW,
1020 WMI_TLV_SERVICE_HSOFFLOAD,
1021 WMI_TLV_SERVICE_ROAM_HO_OFFLOAD,
1022 WMI_TLV_SERVICE_RX_FULL_REORDER,
1023 WMI_TLV_SERVICE_DHCP_OFFLOAD,
1024 WMI_TLV_SERVICE_STA_RX_IPA_OFFLOAD_SUPPORT,
1025 WMI_TLV_SERVICE_MDNS_OFFLOAD,
1026 WMI_TLV_SERVICE_SAP_AUTH_OFFLOAD,
1027 WMI_TLV_SERVICE_DUAL_BAND_SIMULTANEOUS_SUPPORT,
1028 WMI_TLV_SERVICE_OCB,
1029 WMI_TLV_SERVICE_AP_ARPNS_OFFLOAD,
1030 WMI_TLV_SERVICE_PER_BAND_CHAINMASK_SUPPORT,
1031 WMI_TLV_SERVICE_PACKET_FILTER_OFFLOAD,
1032 WMI_TLV_SERVICE_MGMT_TX_HTT,
1033 WMI_TLV_SERVICE_MGMT_TX_WMI,
1034 WMI_TLV_SERVICE_EXT_MSG,
1035 WMI_TLV_SERVICE_MAWC,
1036 WMI_TLV_SERVICE_PEER_ASSOC_CONF,
1037 WMI_TLV_SERVICE_EGAP,
1038 WMI_TLV_SERVICE_STA_PMF_OFFLOAD,
1039 WMI_TLV_SERVICE_UNIFIED_WOW_CAPABILITY,
1040 WMI_TLV_SERVICE_ENHANCED_PROXY_STA,
1041 WMI_TLV_SERVICE_ATF,
1042 WMI_TLV_SERVICE_COEX_GPIO,
1043 WMI_TLV_SERVICE_AUX_SPECTRAL_INTF,
1044 WMI_TLV_SERVICE_AUX_CHAN_LOAD_INTF,
1045 WMI_TLV_SERVICE_BSS_CHANNEL_INFO_64,
1046 WMI_TLV_SERVICE_ENTERPRISE_MESH,
1047 WMI_TLV_SERVICE_RESTRT_CHNL_SUPPORT,
1048 WMI_TLV_SERVICE_BPF_OFFLOAD,
1049 WMI_TLV_SERVICE_SYNC_DELETE_CMDS,
1050 WMI_TLV_SERVICE_SMART_ANTENNA_SW_SUPPORT,
1051 WMI_TLV_SERVICE_SMART_ANTENNA_HW_SUPPORT,
1052 WMI_TLV_SERVICE_RATECTRL_LIMIT_MAX_MIN_RATES,
1053 WMI_TLV_SERVICE_NAN_DATA,
1054 WMI_TLV_SERVICE_NAN_RTT,
1055 WMI_TLV_SERVICE_11AX,
1056 WMI_TLV_SERVICE_DEPRECATED_REPLACE,
1057 WMI_TLV_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE,
1058 WMI_TLV_SERVICE_ENHANCED_MCAST_FILTER,
1059 WMI_TLV_SERVICE_PERIODIC_CHAN_STAT_SUPPORT,
1060 WMI_TLV_SERVICE_MESH_11S,
1061 WMI_TLV_SERVICE_HALF_RATE_QUARTER_RATE_SUPPORT,
1062 WMI_TLV_SERVICE_VDEV_RX_FILTER,
1063 WMI_TLV_SERVICE_P2P_LISTEN_OFFLOAD_SUPPORT,
1064 WMI_TLV_SERVICE_MARK_FIRST_WAKEUP_PACKET,
1065 WMI_TLV_SERVICE_MULTIPLE_MCAST_FILTER_SET,
1066 WMI_TLV_SERVICE_HOST_MANAGED_RX_REORDER,
1067 WMI_TLV_SERVICE_FLASH_RDWR_SUPPORT,
1068 WMI_TLV_SERVICE_WLAN_STATS_REPORT,
1069 WMI_TLV_SERVICE_TX_MSDU_ID_NEW_PARTITION_SUPPORT,
1070 WMI_TLV_SERVICE_DFS_PHYERR_OFFLOAD,
1073 #define WMI_SERVICE_IS_ENABLED(wmi_svc_bmap, svc_id, len) \
1074 ((svc_id) < (len) && \
1075 __le32_to_cpu((wmi_svc_bmap)[(svc_id) / (sizeof(u32))]) & \
1076 BIT((svc_id) % (sizeof(u32))))
1078 #define SVCMAP(x, y, len) \
1079 do { \
1080 if (WMI_SERVICE_IS_ENABLED((in), (x), (len))) \
1081 __set_bit(y, out); \
1082 } while (0)
1084 static inline void
1085 wmi_tlv_svc_map(const __le32 *in, unsigned long *out, size_t len)
1087 SVCMAP(WMI_TLV_SERVICE_BEACON_OFFLOAD,
1088 WMI_SERVICE_BEACON_OFFLOAD, len);
1089 SVCMAP(WMI_TLV_SERVICE_SCAN_OFFLOAD,
1090 WMI_SERVICE_SCAN_OFFLOAD, len);
1091 SVCMAP(WMI_TLV_SERVICE_ROAM_SCAN_OFFLOAD,
1092 WMI_SERVICE_ROAM_SCAN_OFFLOAD, len);
1093 SVCMAP(WMI_TLV_SERVICE_BCN_MISS_OFFLOAD,
1094 WMI_SERVICE_BCN_MISS_OFFLOAD, len);
1095 SVCMAP(WMI_TLV_SERVICE_STA_PWRSAVE,
1096 WMI_SERVICE_STA_PWRSAVE, len);
1097 SVCMAP(WMI_TLV_SERVICE_STA_ADVANCED_PWRSAVE,
1098 WMI_SERVICE_STA_ADVANCED_PWRSAVE, len);
1099 SVCMAP(WMI_TLV_SERVICE_AP_UAPSD,
1100 WMI_SERVICE_AP_UAPSD, len);
1101 SVCMAP(WMI_TLV_SERVICE_AP_DFS,
1102 WMI_SERVICE_AP_DFS, len);
1103 SVCMAP(WMI_TLV_SERVICE_11AC,
1104 WMI_SERVICE_11AC, len);
1105 SVCMAP(WMI_TLV_SERVICE_BLOCKACK,
1106 WMI_SERVICE_BLOCKACK, len);
1107 SVCMAP(WMI_TLV_SERVICE_PHYERR,
1108 WMI_SERVICE_PHYERR, len);
1109 SVCMAP(WMI_TLV_SERVICE_BCN_FILTER,
1110 WMI_SERVICE_BCN_FILTER, len);
1111 SVCMAP(WMI_TLV_SERVICE_RTT,
1112 WMI_SERVICE_RTT, len);
1113 SVCMAP(WMI_TLV_SERVICE_WOW,
1114 WMI_SERVICE_WOW, len);
1115 SVCMAP(WMI_TLV_SERVICE_RATECTRL_CACHE,
1116 WMI_SERVICE_RATECTRL_CACHE, len);
1117 SVCMAP(WMI_TLV_SERVICE_IRAM_TIDS,
1118 WMI_SERVICE_IRAM_TIDS, len);
1119 SVCMAP(WMI_TLV_SERVICE_ARPNS_OFFLOAD,
1120 WMI_SERVICE_ARPNS_OFFLOAD, len);
1121 SVCMAP(WMI_TLV_SERVICE_NLO,
1122 WMI_SERVICE_NLO, len);
1123 SVCMAP(WMI_TLV_SERVICE_GTK_OFFLOAD,
1124 WMI_SERVICE_GTK_OFFLOAD, len);
1125 SVCMAP(WMI_TLV_SERVICE_SCAN_SCH,
1126 WMI_SERVICE_SCAN_SCH, len);
1127 SVCMAP(WMI_TLV_SERVICE_CSA_OFFLOAD,
1128 WMI_SERVICE_CSA_OFFLOAD, len);
1129 SVCMAP(WMI_TLV_SERVICE_CHATTER,
1130 WMI_SERVICE_CHATTER, len);
1131 SVCMAP(WMI_TLV_SERVICE_COEX_FREQAVOID,
1132 WMI_SERVICE_COEX_FREQAVOID, len);
1133 SVCMAP(WMI_TLV_SERVICE_PACKET_POWER_SAVE,
1134 WMI_SERVICE_PACKET_POWER_SAVE, len);
1135 SVCMAP(WMI_TLV_SERVICE_FORCE_FW_HANG,
1136 WMI_SERVICE_FORCE_FW_HANG, len);
1137 SVCMAP(WMI_TLV_SERVICE_GPIO,
1138 WMI_SERVICE_GPIO, len);
1139 SVCMAP(WMI_TLV_SERVICE_STA_DTIM_PS_MODULATED_DTIM,
1140 WMI_SERVICE_STA_DTIM_PS_MODULATED_DTIM, len);
1141 SVCMAP(WMI_TLV_SERVICE_STA_UAPSD_BASIC_AUTO_TRIG,
1142 WMI_SERVICE_STA_UAPSD_BASIC_AUTO_TRIG, len);
1143 SVCMAP(WMI_TLV_SERVICE_STA_UAPSD_VAR_AUTO_TRIG,
1144 WMI_SERVICE_STA_UAPSD_VAR_AUTO_TRIG, len);
1145 SVCMAP(WMI_TLV_SERVICE_STA_KEEP_ALIVE,
1146 WMI_SERVICE_STA_KEEP_ALIVE, len);
1147 SVCMAP(WMI_TLV_SERVICE_TX_ENCAP,
1148 WMI_SERVICE_TX_ENCAP, len);
1149 SVCMAP(WMI_TLV_SERVICE_AP_PS_DETECT_OUT_OF_SYNC,
1150 WMI_SERVICE_AP_PS_DETECT_OUT_OF_SYNC, len);
1151 SVCMAP(WMI_TLV_SERVICE_EARLY_RX,
1152 WMI_SERVICE_EARLY_RX, len);
1153 SVCMAP(WMI_TLV_SERVICE_STA_SMPS,
1154 WMI_SERVICE_STA_SMPS, len);
1155 SVCMAP(WMI_TLV_SERVICE_FWTEST,
1156 WMI_SERVICE_FWTEST, len);
1157 SVCMAP(WMI_TLV_SERVICE_STA_WMMAC,
1158 WMI_SERVICE_STA_WMMAC, len);
1159 SVCMAP(WMI_TLV_SERVICE_TDLS,
1160 WMI_SERVICE_TDLS, len);
1161 SVCMAP(WMI_TLV_SERVICE_BURST,
1162 WMI_SERVICE_BURST, len);
1163 SVCMAP(WMI_TLV_SERVICE_MCC_BCN_INTERVAL_CHANGE,
1164 WMI_SERVICE_MCC_BCN_INTERVAL_CHANGE, len);
1165 SVCMAP(WMI_TLV_SERVICE_ADAPTIVE_OCS,
1166 WMI_SERVICE_ADAPTIVE_OCS, len);
1167 SVCMAP(WMI_TLV_SERVICE_BA_SSN_SUPPORT,
1168 WMI_SERVICE_BA_SSN_SUPPORT, len);
1169 SVCMAP(WMI_TLV_SERVICE_FILTER_IPSEC_NATKEEPALIVE,
1170 WMI_SERVICE_FILTER_IPSEC_NATKEEPALIVE, len);
1171 SVCMAP(WMI_TLV_SERVICE_WLAN_HB,
1172 WMI_SERVICE_WLAN_HB, len);
1173 SVCMAP(WMI_TLV_SERVICE_LTE_ANT_SHARE_SUPPORT,
1174 WMI_SERVICE_LTE_ANT_SHARE_SUPPORT, len);
1175 SVCMAP(WMI_TLV_SERVICE_BATCH_SCAN,
1176 WMI_SERVICE_BATCH_SCAN, len);
1177 SVCMAP(WMI_TLV_SERVICE_QPOWER,
1178 WMI_SERVICE_QPOWER, len);
1179 SVCMAP(WMI_TLV_SERVICE_PLMREQ,
1180 WMI_SERVICE_PLMREQ, len);
1181 SVCMAP(WMI_TLV_SERVICE_THERMAL_MGMT,
1182 WMI_SERVICE_THERMAL_MGMT, len);
1183 SVCMAP(WMI_TLV_SERVICE_RMC,
1184 WMI_SERVICE_RMC, len);
1185 SVCMAP(WMI_TLV_SERVICE_MHF_OFFLOAD,
1186 WMI_SERVICE_MHF_OFFLOAD, len);
1187 SVCMAP(WMI_TLV_SERVICE_COEX_SAR,
1188 WMI_SERVICE_COEX_SAR, len);
1189 SVCMAP(WMI_TLV_SERVICE_BCN_TXRATE_OVERRIDE,
1190 WMI_SERVICE_BCN_TXRATE_OVERRIDE, len);
1191 SVCMAP(WMI_TLV_SERVICE_NAN,
1192 WMI_SERVICE_NAN, len);
1193 SVCMAP(WMI_TLV_SERVICE_L1SS_STAT,
1194 WMI_SERVICE_L1SS_STAT, len);
1195 SVCMAP(WMI_TLV_SERVICE_ESTIMATE_LINKSPEED,
1196 WMI_SERVICE_ESTIMATE_LINKSPEED, len);
1197 SVCMAP(WMI_TLV_SERVICE_OBSS_SCAN,
1198 WMI_SERVICE_OBSS_SCAN, len);
1199 SVCMAP(WMI_TLV_SERVICE_TDLS_OFFCHAN,
1200 WMI_SERVICE_TDLS_OFFCHAN, len);
1201 SVCMAP(WMI_TLV_SERVICE_TDLS_UAPSD_BUFFER_STA,
1202 WMI_SERVICE_TDLS_UAPSD_BUFFER_STA, len);
1203 SVCMAP(WMI_TLV_SERVICE_TDLS_UAPSD_SLEEP_STA,
1204 WMI_SERVICE_TDLS_UAPSD_SLEEP_STA, len);
1205 SVCMAP(WMI_TLV_SERVICE_IBSS_PWRSAVE,
1206 WMI_SERVICE_IBSS_PWRSAVE, len);
1207 SVCMAP(WMI_TLV_SERVICE_LPASS,
1208 WMI_SERVICE_LPASS, len);
1209 SVCMAP(WMI_TLV_SERVICE_EXTSCAN,
1210 WMI_SERVICE_EXTSCAN, len);
1211 SVCMAP(WMI_TLV_SERVICE_D0WOW,
1212 WMI_SERVICE_D0WOW, len);
1213 SVCMAP(WMI_TLV_SERVICE_HSOFFLOAD,
1214 WMI_SERVICE_HSOFFLOAD, len);
1215 SVCMAP(WMI_TLV_SERVICE_ROAM_HO_OFFLOAD,
1216 WMI_SERVICE_ROAM_HO_OFFLOAD, len);
1217 SVCMAP(WMI_TLV_SERVICE_RX_FULL_REORDER,
1218 WMI_SERVICE_RX_FULL_REORDER, len);
1219 SVCMAP(WMI_TLV_SERVICE_DHCP_OFFLOAD,
1220 WMI_SERVICE_DHCP_OFFLOAD, len);
1221 SVCMAP(WMI_TLV_SERVICE_STA_RX_IPA_OFFLOAD_SUPPORT,
1222 WMI_SERVICE_STA_RX_IPA_OFFLOAD_SUPPORT, len);
1223 SVCMAP(WMI_TLV_SERVICE_MDNS_OFFLOAD,
1224 WMI_SERVICE_MDNS_OFFLOAD, len);
1225 SVCMAP(WMI_TLV_SERVICE_SAP_AUTH_OFFLOAD,
1226 WMI_SERVICE_SAP_AUTH_OFFLOAD, len);
1227 SVCMAP(WMI_TLV_SERVICE_MGMT_TX_WMI,
1228 WMI_SERVICE_MGMT_TX_WMI, len);
1231 #undef SVCMAP
1233 struct wmi_tlv {
1234 __le16 len;
1235 __le16 tag;
1236 u8 value[0];
1237 } __packed;
1239 #define WMI_TLV_MGMT_RX_NUM_RSSI 4
1241 struct wmi_tlv_mgmt_rx_ev {
1242 __le32 channel;
1243 __le32 snr;
1244 __le32 rate;
1245 __le32 phy_mode;
1246 __le32 buf_len;
1247 __le32 status;
1248 __le32 rssi[WMI_TLV_MGMT_RX_NUM_RSSI];
1249 } __packed;
1251 struct wmi_tlv_abi_version {
1252 __le32 abi_ver0;
1253 __le32 abi_ver1;
1254 __le32 abi_ver_ns0;
1255 __le32 abi_ver_ns1;
1256 __le32 abi_ver_ns2;
1257 __le32 abi_ver_ns3;
1258 } __packed;
1260 enum wmi_tlv_hw_bd_id {
1261 WMI_TLV_HW_BD_LEGACY = 0,
1262 WMI_TLV_HW_BD_QCA6174 = 1,
1263 WMI_TLV_HW_BD_QCA2582 = 2,
1266 struct wmi_tlv_hw_bd_info {
1267 u8 rev;
1268 u8 project_id;
1269 u8 custom_id;
1270 u8 reference_design_id;
1271 } __packed;
1273 struct wmi_tlv_svc_rdy_ev {
1274 __le32 fw_build_vers;
1275 struct wmi_tlv_abi_version abi;
1276 __le32 phy_capability;
1277 __le32 max_frag_entry;
1278 __le32 num_rf_chains;
1279 __le32 ht_cap_info;
1280 __le32 vht_cap_info;
1281 __le32 vht_supp_mcs;
1282 __le32 hw_min_tx_power;
1283 __le32 hw_max_tx_power;
1284 __le32 sys_cap_info;
1285 __le32 min_pkt_size_enable;
1286 __le32 max_bcn_ie_size;
1287 __le32 num_mem_reqs;
1288 __le32 max_num_scan_chans;
1289 __le32 hw_bd_id; /* 0 means hw_bd_info is invalid */
1290 struct wmi_tlv_hw_bd_info hw_bd_info[5];
1291 } __packed;
1293 struct wmi_tlv_rdy_ev {
1294 struct wmi_tlv_abi_version abi;
1295 struct wmi_mac_addr mac_addr;
1296 __le32 status;
1297 } __packed;
1299 struct wmi_tlv_resource_config {
1300 __le32 num_vdevs;
1301 __le32 num_peers;
1302 __le32 num_offload_peers;
1303 __le32 num_offload_reorder_bufs;
1304 __le32 num_peer_keys;
1305 __le32 num_tids;
1306 __le32 ast_skid_limit;
1307 __le32 tx_chain_mask;
1308 __le32 rx_chain_mask;
1309 __le32 rx_timeout_pri[4];
1310 __le32 rx_decap_mode;
1311 __le32 scan_max_pending_reqs;
1312 __le32 bmiss_offload_max_vdev;
1313 __le32 roam_offload_max_vdev;
1314 __le32 roam_offload_max_ap_profiles;
1315 __le32 num_mcast_groups;
1316 __le32 num_mcast_table_elems;
1317 __le32 mcast2ucast_mode;
1318 __le32 tx_dbg_log_size;
1319 __le32 num_wds_entries;
1320 __le32 dma_burst_size;
1321 __le32 mac_aggr_delim;
1322 __le32 rx_skip_defrag_timeout_dup_detection_check;
1323 __le32 vow_config;
1324 __le32 gtk_offload_max_vdev;
1325 __le32 num_msdu_desc;
1326 __le32 max_frag_entries;
1327 __le32 num_tdls_vdevs;
1328 __le32 num_tdls_conn_table_entries;
1329 __le32 beacon_tx_offload_max_vdev;
1330 __le32 num_multicast_filter_entries;
1331 __le32 num_wow_filters;
1332 __le32 num_keep_alive_pattern;
1333 __le32 keep_alive_pattern_size;
1334 __le32 max_tdls_concurrent_sleep_sta;
1335 __le32 max_tdls_concurrent_buffer_sta;
1336 } __packed;
1338 struct wmi_tlv_init_cmd {
1339 struct wmi_tlv_abi_version abi;
1340 __le32 num_host_mem_chunks;
1341 } __packed;
1343 struct wmi_tlv_pdev_set_param_cmd {
1344 __le32 pdev_id; /* not used yet */
1345 __le32 param_id;
1346 __le32 param_value;
1347 } __packed;
1349 struct wmi_tlv_pdev_set_rd_cmd {
1350 __le32 pdev_id; /* not used yet */
1351 __le32 regd;
1352 __le32 regd_2ghz;
1353 __le32 regd_5ghz;
1354 __le32 conform_limit_2ghz;
1355 __le32 conform_limit_5ghz;
1356 } __packed;
1358 struct wmi_tlv_scan_chan_list_cmd {
1359 __le32 num_scan_chans;
1360 } __packed;
1362 struct wmi_tlv_start_scan_cmd {
1363 struct wmi_start_scan_common common;
1364 __le32 burst_duration_ms;
1365 __le32 num_channels;
1366 __le32 num_bssids;
1367 __le32 num_ssids;
1368 __le32 ie_len;
1369 __le32 num_probes;
1370 } __packed;
1372 struct wmi_tlv_vdev_start_cmd {
1373 __le32 vdev_id;
1374 __le32 requestor_id;
1375 __le32 bcn_intval;
1376 __le32 dtim_period;
1377 __le32 flags;
1378 struct wmi_ssid ssid;
1379 __le32 bcn_tx_rate;
1380 __le32 bcn_tx_power;
1381 __le32 num_noa_descr;
1382 __le32 disable_hw_ack;
1383 } __packed;
1385 enum {
1386 WMI_TLV_PEER_TYPE_DEFAULT = 0, /* generic / non-BSS / self-peer */
1387 WMI_TLV_PEER_TYPE_BSS = 1,
1388 WMI_TLV_PEER_TYPE_TDLS = 2,
1389 WMI_TLV_PEER_TYPE_HOST_MAX = 127,
1390 WMI_TLV_PEER_TYPE_ROAMOFFLOAD_TMP = 128,
1393 struct wmi_tlv_peer_create_cmd {
1394 __le32 vdev_id;
1395 struct wmi_mac_addr peer_addr;
1396 __le32 peer_type;
1397 } __packed;
1399 struct wmi_tlv_peer_assoc_cmd {
1400 struct wmi_mac_addr mac_addr;
1401 __le32 vdev_id;
1402 __le32 new_assoc;
1403 __le32 assoc_id;
1404 __le32 flags;
1405 __le32 caps;
1406 __le32 listen_intval;
1407 __le32 ht_caps;
1408 __le32 max_mpdu;
1409 __le32 mpdu_density;
1410 __le32 rate_caps;
1411 __le32 nss;
1412 __le32 vht_caps;
1413 __le32 phy_mode;
1414 __le32 ht_info[2];
1415 __le32 num_legacy_rates;
1416 __le32 num_ht_rates;
1417 } __packed;
1419 struct wmi_tlv_pdev_suspend {
1420 __le32 pdev_id; /* not used yet */
1421 __le32 opt;
1422 } __packed;
1424 struct wmi_tlv_pdev_set_wmm_cmd {
1425 __le32 pdev_id; /* not used yet */
1426 __le32 dg_type; /* no idea.. */
1427 } __packed;
1429 struct wmi_tlv_vdev_wmm_params {
1430 __le32 dummy;
1431 struct wmi_wmm_params params;
1432 } __packed;
1434 struct wmi_tlv_vdev_set_wmm_cmd {
1435 __le32 vdev_id;
1436 struct wmi_tlv_vdev_wmm_params vdev_wmm_params[4];
1437 } __packed;
1439 struct wmi_tlv_phyerr_ev {
1440 __le32 num_phyerrs;
1441 __le32 tsf_l32;
1442 __le32 tsf_u32;
1443 __le32 buf_len;
1444 } __packed;
1446 enum wmi_tlv_dbglog_param {
1447 WMI_TLV_DBGLOG_PARAM_LOG_LEVEL = 1,
1448 WMI_TLV_DBGLOG_PARAM_VDEV_ENABLE,
1449 WMI_TLV_DBGLOG_PARAM_VDEV_DISABLE,
1450 WMI_TLV_DBGLOG_PARAM_VDEV_ENABLE_BITMAP,
1451 WMI_TLV_DBGLOG_PARAM_VDEV_DISABLE_BITMAP,
1454 enum wmi_tlv_dbglog_log_level {
1455 WMI_TLV_DBGLOG_LOG_LEVEL_VERBOSE = 0,
1456 WMI_TLV_DBGLOG_LOG_LEVEL_INFO,
1457 WMI_TLV_DBGLOG_LOG_LEVEL_INFO_LVL_1,
1458 WMI_TLV_DBGLOG_LOG_LEVEL_INFO_LVL_2,
1459 WMI_TLV_DBGLOG_LOG_LEVEL_WARN,
1460 WMI_TLV_DBGLOG_LOG_LEVEL_ERR,
1463 #define WMI_TLV_DBGLOG_BITMAP_MAX_IDS 512
1464 #define WMI_TLV_DBGLOG_BITMAP_MAX_WORDS (WMI_TLV_DBGLOG_BITMAP_MAX_IDS / \
1465 sizeof(__le32))
1466 #define WMI_TLV_DBGLOG_ALL_MODULES 0xffff
1467 #define WMI_TLV_DBGLOG_LOG_LEVEL_VALUE(module_id, log_level) \
1468 (((module_id << 16) & 0xffff0000) | \
1469 ((log_level << 0) & 0x000000ff))
1471 struct wmi_tlv_dbglog_cmd {
1472 __le32 param;
1473 __le32 value;
1474 } __packed;
1476 struct wmi_tlv_resume_cmd {
1477 __le32 reserved;
1478 } __packed;
1480 struct wmi_tlv_req_stats_cmd {
1481 __le32 stats_id; /* wmi_stats_id */
1482 __le32 vdev_id;
1483 struct wmi_mac_addr peer_macaddr;
1484 } __packed;
1486 struct wmi_tlv_vdev_stats {
1487 __le32 vdev_id;
1488 __le32 beacon_snr;
1489 __le32 data_snr;
1490 __le32 num_tx_frames[4]; /* per-AC */
1491 __le32 num_rx_frames;
1492 __le32 num_tx_frames_retries[4];
1493 __le32 num_tx_frames_failures[4];
1494 __le32 num_rts_fail;
1495 __le32 num_rts_success;
1496 __le32 num_rx_err;
1497 __le32 num_rx_discard;
1498 __le32 num_tx_not_acked;
1499 __le32 tx_rate_history[10];
1500 __le32 beacon_rssi_history[10];
1501 } __packed;
1503 struct wmi_tlv_pktlog_enable {
1504 __le32 reserved;
1505 __le32 filter;
1506 } __packed;
1508 struct wmi_tlv_pktlog_disable {
1509 __le32 reserved;
1510 } __packed;
1512 enum wmi_tlv_bcn_tx_status {
1513 WMI_TLV_BCN_TX_STATUS_OK,
1514 WMI_TLV_BCN_TX_STATUS_XRETRY,
1515 WMI_TLV_BCN_TX_STATUS_DROP,
1516 WMI_TLV_BCN_TX_STATUS_FILTERED,
1519 struct wmi_tlv_bcn_tx_status_ev {
1520 __le32 vdev_id;
1521 __le32 tx_status;
1522 } __packed;
1524 struct wmi_tlv_bcn_prb_info {
1525 __le32 caps;
1526 __le32 erp;
1527 u8 ies[0];
1528 } __packed;
1530 struct wmi_tlv_bcn_tmpl_cmd {
1531 __le32 vdev_id;
1532 __le32 tim_ie_offset;
1533 __le32 buf_len;
1534 } __packed;
1536 struct wmi_tlv_prb_tmpl_cmd {
1537 __le32 vdev_id;
1538 __le32 buf_len;
1539 } __packed;
1541 struct wmi_tlv_p2p_go_bcn_ie {
1542 __le32 vdev_id;
1543 __le32 ie_len;
1544 } __packed;
1546 enum wmi_tlv_diag_item_type {
1547 WMI_TLV_DIAG_ITEM_TYPE_FW_EVENT,
1548 WMI_TLV_DIAG_ITEM_TYPE_FW_LOG,
1549 WMI_TLV_DIAG_ITEM_TYPE_FW_DEBUG_MSG,
1552 struct wmi_tlv_diag_item {
1553 u8 type;
1554 u8 reserved;
1555 __le16 len;
1556 __le32 timestamp;
1557 __le32 code;
1558 u8 payload[0];
1559 } __packed;
1561 struct wmi_tlv_diag_data_ev {
1562 __le32 num_items;
1563 } __packed;
1565 struct wmi_tlv_sta_keepalive_cmd {
1566 __le32 vdev_id;
1567 __le32 enabled;
1568 __le32 method; /* WMI_STA_KEEPALIVE_METHOD_ */
1569 __le32 interval; /* in seconds */
1570 } __packed;
1572 struct wmi_tlv_stats_ev {
1573 __le32 stats_id; /* WMI_STAT_ */
1574 __le32 num_pdev_stats;
1575 __le32 num_vdev_stats;
1576 __le32 num_peer_stats;
1577 __le32 num_bcnflt_stats;
1578 __le32 num_chan_stats;
1579 } __packed;
1581 struct wmi_tlv_p2p_noa_ev {
1582 __le32 vdev_id;
1583 } __packed;
1585 struct wmi_tlv_roam_ev {
1586 __le32 vdev_id;
1587 __le32 reason;
1588 __le32 rssi;
1589 } __packed;
1591 struct wmi_tlv_wow_add_del_event_cmd {
1592 __le32 vdev_id;
1593 __le32 is_add;
1594 __le32 event_bitmap;
1595 } __packed;
1597 struct wmi_tlv_wow_enable_cmd {
1598 __le32 enable;
1599 } __packed;
1601 struct wmi_tlv_wow_host_wakeup_ind {
1602 __le32 reserved;
1603 } __packed;
1605 struct wmi_tlv_wow_event_info {
1606 __le32 vdev_id;
1607 __le32 flag;
1608 __le32 wake_reason;
1609 __le32 data_len;
1610 } __packed;
1612 enum wmi_tlv_pattern_type {
1613 WOW_PATTERN_MIN = 0,
1614 WOW_BITMAP_PATTERN = WOW_PATTERN_MIN,
1615 WOW_IPV4_SYNC_PATTERN,
1616 WOW_IPV6_SYNC_PATTERN,
1617 WOW_WILD_CARD_PATTERN,
1618 WOW_TIMER_PATTERN,
1619 WOW_MAGIC_PATTERN,
1620 WOW_IPV6_RA_PATTERN,
1621 WOW_IOAC_PKT_PATTERN,
1622 WOW_IOAC_TMR_PATTERN,
1623 WOW_PATTERN_MAX
1626 #define WOW_DEFAULT_BITMAP_PATTERN_SIZE 148
1627 #define WOW_DEFAULT_BITMASK_SIZE 148
1629 struct wmi_tlv_wow_bitmap_pattern {
1630 u8 patternbuf[WOW_DEFAULT_BITMAP_PATTERN_SIZE];
1631 u8 bitmaskbuf[WOW_DEFAULT_BITMASK_SIZE];
1632 __le32 pattern_offset;
1633 __le32 pattern_len;
1634 __le32 bitmask_len;
1635 __le32 pattern_id;
1636 } __packed;
1638 struct wmi_tlv_wow_add_pattern_cmd {
1639 __le32 vdev_id;
1640 __le32 pattern_id;
1641 __le32 pattern_type;
1642 } __packed;
1644 struct wmi_tlv_wow_del_pattern_cmd {
1645 __le32 vdev_id;
1646 __le32 pattern_id;
1647 __le32 pattern_type;
1648 } __packed;
1650 /* TDLS Options */
1651 enum wmi_tlv_tdls_options {
1652 WMI_TLV_TDLS_OFFCHAN_EN = BIT(0),
1653 WMI_TLV_TDLS_BUFFER_STA_EN = BIT(1),
1654 WMI_TLV_TDLS_SLEEP_STA_EN = BIT(2),
1657 struct wmi_tdls_set_state_cmd {
1658 __le32 vdev_id;
1659 __le32 state;
1660 __le32 notification_interval_ms;
1661 __le32 tx_discovery_threshold;
1662 __le32 tx_teardown_threshold;
1663 __le32 rssi_teardown_threshold;
1664 __le32 rssi_delta;
1665 __le32 tdls_options;
1666 __le32 tdls_peer_traffic_ind_window;
1667 __le32 tdls_peer_traffic_response_timeout_ms;
1668 __le32 tdls_puapsd_mask;
1669 __le32 tdls_puapsd_inactivity_time_ms;
1670 __le32 tdls_puapsd_rx_frame_threshold;
1671 } __packed;
1673 struct wmi_tdls_peer_update_cmd {
1674 __le32 vdev_id;
1675 struct wmi_mac_addr peer_macaddr;
1676 __le32 peer_state;
1677 } __packed;
1679 enum {
1680 WMI_TLV_TDLS_PEER_QOS_AC_VO = BIT(0),
1681 WMI_TLV_TDLS_PEER_QOS_AC_VI = BIT(1),
1682 WMI_TLV_TDLS_PEER_QOS_AC_BK = BIT(2),
1683 WMI_TLV_TDLS_PEER_QOS_AC_BE = BIT(3),
1686 #define WMI_TLV_TDLS_PEER_SP_MASK 0x60
1687 #define WMI_TLV_TDLS_PEER_SP_LSB 5
1689 struct wmi_tdls_peer_capab {
1690 __le32 peer_qos;
1691 __le32 buff_sta_support;
1692 __le32 off_chan_support;
1693 __le32 peer_curr_operclass;
1694 __le32 self_curr_operclass;
1695 __le32 peer_chan_len;
1696 __le32 peer_operclass_len;
1697 u8 peer_operclass[WMI_TDLS_MAX_SUPP_OPER_CLASSES];
1698 __le32 is_peer_responder;
1699 __le32 pref_offchan_num;
1700 __le32 pref_offchan_bw;
1701 } __packed;
1703 struct wmi_tlv_adaptive_qcs {
1704 __le32 enable;
1705 } __packed;
1708 * wmi_tlv_tx_pause_id - firmware tx queue pause reason types
1710 * @WMI_TLV_TX_PAUSE_ID_MCC: used for by multi-channel firmware scheduler.
1711 * Only vdev_map is valid.
1712 * @WMI_TLV_TX_PAUSE_ID_AP_PEER_PS: peer in AP mode is asleep.
1713 * Only peer_id is valid.
1714 * @WMI_TLV_TX_PAUSE_ID_AP_PEER_UAPSD: Only peer_id and tid_map are valid.
1715 * @WMI_TLV_TX_PAUSE_ID_P2P_CLI_NOA: Only vdev_map is valid.
1716 * @WMI_TLV_TX_PAUSE_ID_P2P_GO_PS: Only vdev_map is valid.
1717 * @WMI_TLV_TX_PAUSE_ID_STA_ADD_BA: Only peer_id and tid_map are valid.
1718 * @WMI_TLV_TX_PAUSE_ID_AP_PS: When all peers are asleep in AP mode. Only
1719 * vdev_map is valid.
1720 * @WMI_TLV_TX_PAUSE_ID_IBSS_PS: When all peers are asleep in IBSS mode. Only
1721 * vdev_map is valid.
1722 * @WMI_TLV_TX_PAUSE_ID_HOST: Host itself requested tx pause.
1724 enum wmi_tlv_tx_pause_id {
1725 WMI_TLV_TX_PAUSE_ID_MCC = 1,
1726 WMI_TLV_TX_PAUSE_ID_AP_PEER_PS = 2,
1727 WMI_TLV_TX_PAUSE_ID_AP_PEER_UAPSD = 3,
1728 WMI_TLV_TX_PAUSE_ID_P2P_CLI_NOA = 4,
1729 WMI_TLV_TX_PAUSE_ID_P2P_GO_PS = 5,
1730 WMI_TLV_TX_PAUSE_ID_STA_ADD_BA = 6,
1731 WMI_TLV_TX_PAUSE_ID_AP_PS = 7,
1732 WMI_TLV_TX_PAUSE_ID_IBSS_PS = 8,
1733 WMI_TLV_TX_PAUSE_ID_HOST = 21,
1736 enum wmi_tlv_tx_pause_action {
1737 WMI_TLV_TX_PAUSE_ACTION_STOP,
1738 WMI_TLV_TX_PAUSE_ACTION_WAKE,
1741 struct wmi_tlv_tx_pause_ev {
1742 __le32 pause_id;
1743 __le32 action;
1744 __le32 vdev_map;
1745 __le32 peer_id;
1746 __le32 tid_map;
1747 } __packed;
1749 void ath10k_wmi_tlv_attach(struct ath10k *ar);
1751 struct wmi_tlv_mgmt_tx_cmd {
1752 __le32 vdev_id;
1753 __le32 desc_id;
1754 __le32 chanfreq;
1755 __le64 paddr;
1756 __le32 frame_len;
1757 __le32 buf_len;
1758 } __packed;
1759 #endif