xref: /wlan-dirver/qca-wifi-host-cmn/wmi/inc/wmi_unified_priv.h (revision 27d564647e9b50e713c60b0d7e5ea2a9b0a3ae74)
1 /*
2  * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for
5  * any purpose with or without fee is hereby granted, provided that the
6  * above copyright notice and this permission notice appear in all
7  * copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16  * PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 /*
20  * This file contains the API definitions for the Unified Wireless
21  * Module Interface (WMI).
22  */
23 #ifndef _WMI_UNIFIED_PRIV_H_
24 #define _WMI_UNIFIED_PRIV_H_
25 #include <osdep.h>
26 #include "wmi_unified_api.h"
27 #include "wmi_unified_param.h"
28 #include "wlan_scan_ucfg_api.h"
29 #ifdef CONFIG_MCL
30 #include <wmi_unified.h>
31 #endif
32 #include "qdf_atomic.h"
33 #include <wbuff.h>
34 
35 #ifdef DFS_COMPONENT_ENABLE
36 #include <wlan_dfs_public_struct.h>
37 #endif
38 #include <qdf_threads.h>
39 #ifdef WLAN_SUPPORT_GREEN_AP
40 #include "wlan_green_ap_api.h"
41 #endif
42 
43 #ifdef WLAN_FEATURE_NAN_CONVERGENCE
44 #include "nan_public_structs.h"
45 #endif
46 
47 #ifdef WLAN_SUPPORT_TWT
48 #include "wmi_unified_twt_param.h"
49 #endif
50 
51 #ifdef WMI_SMART_ANT_SUPPORT
52 #include "wmi_unified_smart_ant_param.h"
53 #endif
54 
55 #ifdef WMI_DBR_SUPPORT
56 #include "wmi_unified_dbr_param.h"
57 #endif
58 
59 #ifdef WMI_ATF_SUPPORT
60 #include "wmi_unified_atf_param.h"
61 #endif
62 
63 #define WMI_UNIFIED_MAX_EVENT 0x100
64 
65 #ifdef WMI_EXT_DBG
66 
67 #define WMI_EXT_DBG_DIR			"WMI_EXT_DBG"
68 #define WMI_EXT_DBG_FILE		"wmi_log"
69 #define WMI_EXT_DBG_FILE_PERM		(QDF_FILE_USR_READ | \
70 					 QDF_FILE_GRP_READ | \
71 					 QDF_FILE_OTH_READ)
72 #define WMI_EXT_DBG_QUEUE_SIZE		1024
73 #define WMI_EXT_DBG_DUMP_ROW_SIZE	16
74 #define WMI_EXT_DBG_DUMP_GROUP_SIZE	1
75 
76 /**
77  * enum WMI_MSG_TYPE - WMI message types
78  * @ WMI_MSG_TYPE_CMD - Message is of type WMI command
79  * @ WMI_MSG_TYPE_EVENT - Message is of type WMI event
80  */
81 enum WMI_MSG_TYPE {
82 	WMI_MSG_TYPE_CMD = 0,
83 	WMI_MSG_TYPE_EVENT,
84 };
85 
86 /**
87  * struct wmi_ext_dbg_msg - WMI command/event msg details
88  * @ node - qdf list node of wmi messages
89  * @ len - command/event message length
90  * @ ts - Time of WMI command/event handling
91  * @ WMI_MSG_TYPE - message type
92  * @ bug - command/event buffer
93  */
94 struct wmi_ext_dbg_msg {
95 	qdf_list_node_t node;
96 	uint32_t len;
97 	uint64_t ts;
98 	enum WMI_MSG_TYPE type;
99 	uint8_t buf[0];
100 };
101 #endif /*WMI_EXT_DBG */
102 
103 #ifdef WMI_INTERFACE_EVENT_LOGGING
104 
105 #ifndef WMI_EVENT_DEBUG_MAX_ENTRY
106 #define WMI_EVENT_DEBUG_MAX_ENTRY (1024)
107 #endif
108 
109 #define WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH (16)
110 
111 /* wmi_mgmt commands */
112 #ifndef WMI_MGMT_EVENT_DEBUG_MAX_ENTRY
113 #define WMI_MGMT_EVENT_DEBUG_MAX_ENTRY (256)
114 #endif
115 /* wmi diag rx events max buffer */
116 #ifndef WMI_DIAG_RX_EVENT_DEBUG_MAX_ENTRY
117 #define WMI_DIAG_RX_EVENT_DEBUG_MAX_ENTRY (256)
118 #endif
119 
120 #define wmi_alert(params...) QDF_TRACE_FATAL(QDF_MODULE_ID_WMI, ## params)
121 #define wmi_err(params...) QDF_TRACE_ERROR(QDF_MODULE_ID_WMI, ## params)
122 #define wmi_warn(params...) QDF_TRACE_WARN(QDF_MODULE_ID_WMI, ## params)
123 #define wmi_info(params...) QDF_TRACE_INFO(QDF_MODULE_ID_WMI, ## params)
124 #define wmi_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_WMI, ## params)
125 
126 #define wmi_nofl_alert(params...) \
127 	QDF_TRACE_FATAL_NO_FL(QDF_MODULE_ID_WMI, ## params)
128 #define wmi_nofl_err(params...) \
129 	QDF_TRACE_ERROR_NO_FL(QDF_MODULE_ID_WMI, ## params)
130 #define wmi_nofl_warn(params...) \
131 	QDF_TRACE_WARN_NO_FL(QDF_MODULE_ID_WMI, ## params)
132 #define wmi_nofl_info(params...) \
133 	QDF_TRACE_INFO_NO_FL(QDF_MODULE_ID_WMI, ## params)
134 #define wmi_nofl_debug(params...) \
135 	QDF_TRACE_DEBUG_NO_FL(QDF_MODULE_ID_WMI, ## params)
136 
137 #define wmi_alert_rl(params...) QDF_TRACE_FATAL_RL(QDF_MODULE_ID_WMI, params)
138 #define wmi_err_rl(params...) QDF_TRACE_ERROR_RL(QDF_MODULE_ID_WMI, params)
139 #define wmi_warn_rl(params...) QDF_TRACE_WARN_RL(QDF_MODULE_ID_WMI, params)
140 #define wmi_info_rl(params...) QDF_TRACE_INFO_RL(QDF_MODULE_ID_WMI, params)
141 #define wmi_debug_rl(params...) QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_WMI, params)
142 
143 /**
144  * struct wmi_command_debug - WMI command log buffer data type
145  * @ command - Store WMI Command id
146  * @ data - Stores WMI command data
147  * @ time - Time of WMI command handling
148  */
149 struct wmi_command_debug {
150 	uint32_t command;
151 	/*16 bytes of WMI cmd excluding TLV and WMI headers */
152 	uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)];
153 	uint64_t time;
154 };
155 
156 /**
157  * struct wmi_event_debug - WMI event log buffer data type
158  * @ command - Store WMI Event id
159  * @ data - Stores WMI Event data
160  * @ time - Time of WMI Event handling
161  */
162 struct wmi_event_debug {
163 	uint32_t event;
164 	/*16 bytes of WMI event data excluding TLV header */
165 	uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)];
166 	uint64_t time;
167 };
168 
169 /**
170  * struct wmi_command_header - Type for accessing frame data
171  * @ type - 802.11 Frame type
172  * @ subType - 802.11 Frame subtype
173  * @ protVer - 802.11 Version
174  */
175 struct wmi_command_header {
176 #ifndef ANI_LITTLE_BIT_ENDIAN
177 
178 	uint32_t sub_type:4;
179 	uint32_t type:2;
180 	uint32_t prot_ver:2;
181 
182 #else
183 
184 	uint32_t prot_ver:2;
185 	uint32_t type:2;
186 	uint32_t sub_type:4;
187 
188 #endif
189 };
190 
191 /**
192  * struct wmi_log_buf_t - WMI log buffer information type
193  * @buf - Refernce to WMI log buffer
194  * @ length - length of buffer
195  * @ buf_tail_idx - Tail index of buffer
196  * @ p_buf_tail_idx - refernce to buffer tail index. It is added to accommodate
197  * unified design since MCL uses global variable for buffer tail index
198  * @ size - the size of the buffer in number of entries
199  */
200 struct wmi_log_buf_t {
201 	void *buf;
202 	uint32_t length;
203 	uint32_t buf_tail_idx;
204 	uint32_t *p_buf_tail_idx;
205 	uint32_t size;
206 };
207 
208 /**
209  * struct wmi_debug_log_info - Meta data to hold information of all buffers
210  * used for WMI logging
211  * @wmi_command_log_buf_info - Buffer info for WMI Command log
212  * @wmi_command_tx_cmp_log_buf_info - Buffer info for WMI Command Tx completion
213  * log
214  * @wmi_event_log_buf_info - Buffer info for WMI Event log
215  * @wmi_rx_event_log_buf_info - Buffer info for WMI event received log
216  * @wmi_mgmt_command_log_buf_info - Buffer info for WMI Management Command log
217  * @wmi_mgmt_command_tx_cmp_log_buf_info - Buffer info for WMI Management
218  * Command Tx completion log
219  * @wmi_mgmt_event_log_buf_info - Buffer info for WMI Management event log
220  * @wmi_diag_event_log_buf_info - Buffer info for WMI diag event log
221  * @wmi_record_lock - Lock WMI recording
222  * @wmi_logging_enable - Enable/Disable state for WMI logging
223  * @buf_offset_command - Offset from where WMI command data should be logged
224  * @buf_offset_event - Offset from where WMI event data should be logged
225  * @wmi_id_to_name - Function refernce to API to convert Command id to
226  * string name
227  * @wmi_log_debugfs_dir - refernce to debugfs directory
228  */
229 struct wmi_debug_log_info {
230 	struct wmi_log_buf_t wmi_command_log_buf_info;
231 	struct wmi_log_buf_t wmi_command_tx_cmp_log_buf_info;
232 
233 	struct wmi_log_buf_t wmi_event_log_buf_info;
234 	struct wmi_log_buf_t wmi_rx_event_log_buf_info;
235 
236 	struct wmi_log_buf_t wmi_mgmt_command_log_buf_info;
237 	struct wmi_log_buf_t wmi_mgmt_command_tx_cmp_log_buf_info;
238 	struct wmi_log_buf_t wmi_mgmt_event_log_buf_info;
239 	struct wmi_log_buf_t wmi_diag_event_log_buf_info;
240 
241 	qdf_spinlock_t wmi_record_lock;
242 	bool wmi_logging_enable;
243 	uint32_t buf_offset_command;
244 	uint32_t buf_offset_event;
245 	struct dentry *wmi_log_debugfs_dir;
246 };
247 
248 #endif /*WMI_INTERFACE_EVENT_LOGGING */
249 
250 #ifdef WLAN_OPEN_SOURCE
251 struct fwdebug {
252 	struct sk_buff_head fwlog_queue;
253 	struct completion fwlog_completion;
254 	A_BOOL fwlog_open;
255 };
256 #endif /* WLAN_OPEN_SOURCE */
257 
258 /**
259  * struct wmi_wq_dbg_info - WMI WQ debug info
260  * @ wd_msg_type_id - wmi event id
261  * @ wmi_wq - WMI workqueue struct
262  * @ task - WMI workqueue task struct
263  */
264 struct wmi_wq_dbg_info {
265 	uint32_t wd_msg_type_id;
266 	qdf_workqueue_t *wmi_wq;
267 	qdf_thread_t *task;
268 };
269 
270 struct wmi_ops {
271 QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle,
272 				 uint8_t macaddr[IEEE80211_ADDR_LEN],
273 				 struct vdev_create_params *param);
274 
275 QDF_STATUS (*send_vdev_delete_cmd)(wmi_unified_t wmi_handle,
276 					  uint8_t if_id);
277 
278 QDF_STATUS (*send_vdev_stop_cmd)(wmi_unified_t wmi,
279 					uint8_t vdev_id);
280 
281 QDF_STATUS (*send_vdev_down_cmd)(wmi_unified_t wmi,
282 			uint8_t vdev_id);
283 
284 QDF_STATUS (*send_vdev_start_cmd)(wmi_unified_t wmi,
285 		struct vdev_start_params *req);
286 
287 QDF_STATUS (*send_vdev_set_nac_rssi_cmd)(wmi_unified_t wmi,
288 		struct vdev_scan_nac_rssi_params *req);
289 
290 QDF_STATUS (*send_hidden_ssid_vdev_restart_cmd)(wmi_unified_t wmi_handle,
291 		struct hidden_ssid_vdev_restart_params *restart_params);
292 
293 QDF_STATUS (*send_peer_flush_tids_cmd)(wmi_unified_t wmi,
294 					 uint8_t peer_addr[IEEE80211_ADDR_LEN],
295 					 struct peer_flush_params *param);
296 
297 QDF_STATUS (*send_peer_delete_cmd)(wmi_unified_t wmi,
298 				    uint8_t peer_addr[IEEE80211_ADDR_LEN],
299 				    uint8_t vdev_id);
300 
301 QDF_STATUS (*send_peer_param_cmd)(wmi_unified_t wmi,
302 				uint8_t peer_addr[IEEE80211_ADDR_LEN],
303 				struct peer_set_params *param);
304 
305 QDF_STATUS (*send_vdev_up_cmd)(wmi_unified_t wmi,
306 			     uint8_t bssid[IEEE80211_ADDR_LEN],
307 				 struct vdev_up_params *params);
308 
309 QDF_STATUS (*send_peer_create_cmd)(wmi_unified_t wmi,
310 					struct peer_create_params *param);
311 
312 #ifdef WLAN_SUPPORT_GREEN_AP
313 QDF_STATUS (*send_green_ap_ps_cmd)(wmi_unified_t wmi_handle,
314 				   uint32_t value, uint8_t pdev_id);
315 
316 QDF_STATUS (*extract_green_ap_egap_status_info)(
317 		uint8_t *evt_buf,
318 		struct wlan_green_ap_egap_status_info *egap_status_info_params);
319 #endif
320 
321 QDF_STATUS
322 (*send_pdev_utf_cmd)(wmi_unified_t wmi_handle,
323 				struct pdev_utf_params *param,
324 				uint8_t mac_id);
325 
326 QDF_STATUS
327 (*send_pdev_param_cmd)(wmi_unified_t wmi_handle,
328 			   struct pdev_params *param,
329 				uint8_t mac_id);
330 
331 QDF_STATUS (*send_suspend_cmd)(wmi_unified_t wmi_handle,
332 				struct suspend_params *param,
333 				uint8_t mac_id);
334 
335 QDF_STATUS (*send_resume_cmd)(wmi_unified_t wmi_handle,
336 				uint8_t mac_id);
337 
338 #ifdef FEATURE_WLAN_D0WOW
339 QDF_STATUS (*send_d0wow_enable_cmd)(wmi_unified_t wmi_handle,
340 				uint8_t mac_id);
341 QDF_STATUS (*send_d0wow_disable_cmd)(wmi_unified_t wmi_handle,
342 				uint8_t mac_id);
343 #endif
344 
345 QDF_STATUS (*send_wow_enable_cmd)(wmi_unified_t wmi_handle,
346 				struct wow_cmd_params *param,
347 				uint8_t mac_id);
348 
349 QDF_STATUS (*send_set_ap_ps_param_cmd)(wmi_unified_t wmi_handle,
350 					   uint8_t *peer_addr,
351 					   struct ap_ps_params *param);
352 
353 QDF_STATUS (*send_set_sta_ps_param_cmd)(wmi_unified_t wmi_handle,
354 					   struct sta_ps_params *param);
355 
356 QDF_STATUS (*send_crash_inject_cmd)(wmi_unified_t wmi_handle,
357 			 struct crash_inject *param);
358 
359 QDF_STATUS
360 (*send_dbglog_cmd)(wmi_unified_t wmi_handle,
361 				struct dbglog_params *dbglog_param);
362 
363 QDF_STATUS (*send_vdev_set_param_cmd)(wmi_unified_t wmi_handle,
364 				struct vdev_set_params *param);
365 
366 QDF_STATUS (*send_vdev_sifs_trigger_cmd)(wmi_unified_t wmi_handle,
367 					 struct sifs_trigger_param *param);
368 
369 QDF_STATUS (*send_stats_request_cmd)(wmi_unified_t wmi_handle,
370 				uint8_t macaddr[IEEE80211_ADDR_LEN],
371 				struct stats_request_params *param);
372 
373 #ifdef CONFIG_WIN
374 QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
375 			WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT, uint8_t mac_id);
376 #else
377 QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
378 				uint8_t macaddr[IEEE80211_ADDR_LEN],
379 				struct packet_enable_params *param);
380 #endif
381 
382 QDF_STATUS (*send_packet_log_disable_cmd)(wmi_unified_t wmi_handle,
383 	uint8_t mac_id);
384 
385 QDF_STATUS (*send_beacon_send_cmd)(wmi_unified_t wmi_handle,
386 				struct beacon_params *param);
387 
388 QDF_STATUS (*send_beacon_tmpl_send_cmd)(wmi_unified_t wmi_handle,
389 				struct beacon_tmpl_params *param);
390 
391 QDF_STATUS (*send_peer_assoc_cmd)(wmi_unified_t wmi_handle,
392 				struct peer_assoc_params *param);
393 
394 QDF_STATUS (*send_scan_start_cmd)(wmi_unified_t wmi_handle,
395 				struct scan_req_params *param);
396 
397 QDF_STATUS (*send_scan_stop_cmd)(wmi_unified_t wmi_handle,
398 				struct scan_cancel_param *param);
399 
400 QDF_STATUS (*send_scan_chan_list_cmd)(wmi_unified_t wmi_handle,
401 				struct scan_chan_list_params *param);
402 
403 QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
404 				struct wmi_mgmt_params *param);
405 
406 QDF_STATUS (*send_offchan_data_tx_cmd)(wmi_unified_t wmi_handle,
407 				struct wmi_offchan_data_tx_params *param);
408 
409 QDF_STATUS (*send_modem_power_state_cmd)(wmi_unified_t wmi_handle,
410 		uint32_t param_value);
411 
412 QDF_STATUS (*send_set_sta_ps_mode_cmd)(wmi_unified_t wmi_handle,
413 			       uint32_t vdev_id, uint8_t val);
414 
415 QDF_STATUS (*send_get_temperature_cmd)(wmi_unified_t wmi_handle);
416 
417 #ifdef CONVERGED_P2P_ENABLE
418 QDF_STATUS (*send_set_p2pgo_oppps_req_cmd)(wmi_unified_t wmi_handle,
419 		struct p2p_ps_params *oppps);
420 
421 QDF_STATUS (*send_set_p2pgo_noa_req_cmd)(wmi_unified_t wmi_handle,
422 			struct p2p_ps_params *noa);
423 
424 #ifdef FEATURE_P2P_LISTEN_OFFLOAD
425 QDF_STATUS (*send_p2p_lo_start_cmd)(wmi_unified_t wmi_handle,
426 			struct p2p_lo_start *param);
427 
428 QDF_STATUS (*send_p2p_lo_stop_cmd)(wmi_unified_t wmi_handle,
429 			uint8_t vdev_id);
430 #endif /* FEATURE_P2P_LISTEN_OFFLOAD */
431 #endif /* CONVERGED_P2P_ENABLE */
432 
433 QDF_STATUS (*send_set_smps_params_cmd)(wmi_unified_t wmi_handle,
434 			  uint8_t vdev_id,
435 			  int value);
436 
437 QDF_STATUS (*send_set_mimops_cmd)(wmi_unified_t wmi_handle,
438 			uint8_t vdev_id, int value);
439 
440 QDF_STATUS (*send_set_sta_uapsd_auto_trig_cmd)(wmi_unified_t wmi_handle,
441 				struct sta_uapsd_trig_params *param);
442 
443 #ifdef WLAN_FEATURE_DSRC
444 QDF_STATUS (*send_ocb_set_utc_time_cmd)(wmi_unified_t wmi_handle,
445 				struct ocb_utc_param *utc);
446 
447 QDF_STATUS (*send_ocb_get_tsf_timer_cmd)(wmi_unified_t wmi_handle,
448 			  uint8_t vdev_id);
449 
450 QDF_STATUS (*send_ocb_start_timing_advert_cmd)(wmi_unified_t wmi_handle,
451 	struct ocb_timing_advert_param *timing_advert);
452 
453 QDF_STATUS (*send_ocb_stop_timing_advert_cmd)(wmi_unified_t wmi_handle,
454 	struct ocb_timing_advert_param *timing_advert);
455 
456 QDF_STATUS (*send_dcc_get_stats_cmd)(wmi_unified_t wmi_handle,
457 		     struct ocb_dcc_get_stats_param *get_stats_param);
458 
459 QDF_STATUS (*send_dcc_clear_stats_cmd)(wmi_unified_t wmi_handle,
460 				uint32_t vdev_id, uint32_t dcc_stats_bitmap);
461 
462 QDF_STATUS (*send_dcc_update_ndl_cmd)(wmi_unified_t wmi_handle,
463 		       struct ocb_dcc_update_ndl_param *update_ndl_param);
464 
465 QDF_STATUS (*send_ocb_set_config_cmd)(wmi_unified_t wmi_handle,
466 		  struct ocb_config *config);
467 QDF_STATUS (*extract_ocb_chan_config_resp)(wmi_unified_t wmi_hdl,
468 					   void *evt_buf,
469 					   uint32_t *status);
470 QDF_STATUS (*extract_ocb_tsf_timer)(wmi_unified_t wmi_hdl,
471 				    void *evt_buf,
472 				    struct ocb_get_tsf_timer_response *resp);
473 QDF_STATUS (*extract_dcc_update_ndl_resp)(wmi_unified_t wmi_hdl,
474 		void *evt_buf, struct ocb_dcc_update_ndl_response *resp);
475 QDF_STATUS (*extract_dcc_stats)(wmi_unified_t wmi_hdl,
476 				void *evt_buf,
477 				struct ocb_dcc_get_stats_response **response);
478 #endif /* WLAN_FEATURE_DSRC */
479 QDF_STATUS (*send_lro_config_cmd)(wmi_unified_t wmi_handle,
480 	 struct wmi_lro_config_cmd_t *wmi_lro_cmd);
481 
482 QDF_STATUS (*send_set_thermal_mgmt_cmd)(wmi_unified_t wmi_handle,
483 				struct thermal_cmd_params *thermal_info);
484 
485 QDF_STATUS (*send_peer_rate_report_cmd)(wmi_unified_t wmi_handle,
486 	 struct wmi_peer_rate_report_params *rate_report_params);
487 
488 #ifdef WMI_CONCURRENCY_SUPPORT
489 QDF_STATUS (*send_set_mcc_channel_time_quota_cmd)
490 	(wmi_unified_t wmi_handle,
491 	uint32_t adapter_1_chan_freq,
492 	uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
493 
494 QDF_STATUS (*send_set_mcc_channel_time_latency_cmd)
495 	(wmi_unified_t wmi_handle,
496 	uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
497 
498 QDF_STATUS (*send_set_enable_disable_mcc_adaptive_scheduler_cmd)(
499 		  wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler,
500 		  uint32_t pdev_id);
501 #endif /* WMI_CONCURRENCY_SUPPORT */
502 
503 QDF_STATUS (*send_p2p_go_set_beacon_ie_cmd)(wmi_unified_t wmi_handle,
504 				    uint32_t vdev_id, uint8_t *p2p_ie);
505 
506 QDF_STATUS (*send_probe_rsp_tmpl_send_cmd)(wmi_unified_t wmi_handle,
507 			     uint8_t vdev_id,
508 			     struct wmi_probe_resp_params *probe_rsp_info);
509 
510 QDF_STATUS (*send_setup_install_key_cmd)(wmi_unified_t wmi_handle,
511 				struct set_key_params *key_params);
512 
513 QDF_STATUS (*send_reset_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
514 					struct wifi_passpoint_req_param *req);
515 
516 #ifdef WMI_ROAM_SUPPORT
517 #ifdef FEATURE_LFR_SUBNET_DETECTION
518 QDF_STATUS (*send_set_gateway_params_cmd)(wmi_unified_t wmi_handle,
519 					struct gateway_update_req_param *req);
520 #endif /* FEATURE_LFR_SUBNET_DETECTION */
521 
522 #ifdef FEATURE_RSSI_MONITOR
523 QDF_STATUS (*send_set_rssi_monitoring_cmd)(wmi_unified_t wmi_handle,
524 					struct rssi_monitor_param *req);
525 #endif /* FEATURE_RSSI_MONITOR */
526 
527 QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle,
528 				struct roam_offload_scan_rssi_params *roam_req);
529 
530 QDF_STATUS (*send_roam_mawc_params_cmd)(wmi_unified_t wmi_handle,
531 		struct wmi_mawc_roam_params *params);
532 
533 QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle,
534 				struct roam_scan_filter_params *roam_req);
535 
536 QDF_STATUS (*send_roam_scan_offload_mode_cmd)(wmi_unified_t wmi_handle,
537 				wmi_start_scan_cmd_fixed_param *scan_cmd_fp,
538 				struct roam_offload_scan_params *roam_req);
539 
540 QDF_STATUS (*send_roam_scan_offload_ap_profile_cmd)(wmi_unified_t wmi_handle,
541 				    struct ap_profile_params *ap_profile);
542 
543 QDF_STATUS (*send_roam_scan_offload_cmd)(wmi_unified_t wmi_handle,
544 				 uint32_t command, uint32_t vdev_id);
545 
546 QDF_STATUS (*send_roam_scan_offload_scan_period_cmd)(wmi_unified_t wmi_handle,
547 				     uint32_t scan_period,
548 				     uint32_t scan_age,
549 				     uint32_t vdev_id);
550 
551 QDF_STATUS (*send_roam_scan_offload_chan_list_cmd)(wmi_unified_t wmi_handle,
552 				   uint8_t chan_count,
553 				   uint32_t *chan_list,
554 				   uint8_t list_type, uint32_t vdev_id);
555 
556 QDF_STATUS (*send_roam_scan_offload_rssi_change_cmd)(wmi_unified_t wmi_handle,
557 					uint32_t vdev_id,
558 					int32_t rssi_change_thresh,
559 					uint32_t bcn_rssi_weight,
560 					uint32_t hirssi_delay_btw_scans);
561 
562 QDF_STATUS (*send_per_roam_config_cmd)(wmi_unified_t wmi_handle,
563 		struct wmi_per_roam_config_req *req_buf);
564 
565 QDF_STATUS (*send_offload_11k_cmd)(wmi_unified_t wmi_handle,
566 		struct wmi_11k_offload_params *params);
567 
568 QDF_STATUS (*send_invoke_neighbor_report_cmd)(wmi_unified_t wmi_handle,
569 		struct wmi_invoke_neighbor_report_params *params);
570 
571 QDF_STATUS (*send_btm_config)(wmi_unified_t wmi_handle,
572 			      struct wmi_btm_config *params);
573 
574 QDF_STATUS (*send_limit_off_chan_cmd)(wmi_unified_t wmi_handle,
575 		struct wmi_limit_off_chan_param *limit_off_chan_param);
576 
577 #ifdef WLAN_FEATURE_FILS_SK
578 QDF_STATUS (*send_roam_scan_hlp_cmd) (wmi_unified_t wmi_handle,
579 				struct hlp_params *params);
580 #endif /* WLAN_FEATURE_FILS_SK */
581 
582 #ifdef FEATURE_WLAN_ESE
583 QDF_STATUS (*send_plm_stop_cmd)(wmi_unified_t wmi_handle,
584 		 const struct plm_req_params *plm);
585 
586 QDF_STATUS (*send_plm_start_cmd)(wmi_unified_t wmi_handle,
587 		  const struct plm_req_params *plm,
588 		  uint32_t *gchannel_list);
589 #endif /* FEATURE_WLAN_ESE */
590 
591 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
592 QDF_STATUS (*send_set_ric_req_cmd)(wmi_unified_t wmi_handle, void *msg,
593 			uint8_t is_add_ts);
594 
595 QDF_STATUS (*send_process_roam_synch_complete_cmd)(wmi_unified_t wmi_handle,
596 		 uint8_t vdev_id);
597 
598 QDF_STATUS (*send_roam_invoke_cmd)(wmi_unified_t wmi_handle,
599 		struct wmi_roam_invoke_cmd *roaminvoke,
600 		uint32_t ch_hz);
601 #endif /* WLAN_FEATURE_ROAM_OFFLOAD */
602 #endif /* WMI_ROAM_SUPPORT */
603 
604 QDF_STATUS (*send_scan_probe_setoui_cmd)(wmi_unified_t wmi_handle,
605 			  struct scan_mac_oui *psetoui);
606 
607 QDF_STATUS (*send_set_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
608 					struct wifi_passpoint_req_param *req);
609 
610 QDF_STATUS (*send_set_epno_network_list_cmd)(wmi_unified_t wmi_handle,
611 		struct wifi_enhanced_pno_params *req);
612 
613 QDF_STATUS (*send_extscan_get_capabilities_cmd)(wmi_unified_t wmi_handle,
614 			  struct extscan_capabilities_params *pgetcapab);
615 
616 QDF_STATUS (*send_extscan_get_cached_results_cmd)(wmi_unified_t wmi_handle,
617 			  struct extscan_cached_result_params *pcached_results);
618 
619 QDF_STATUS (*send_extscan_stop_change_monitor_cmd)(wmi_unified_t wmi_handle,
620 			  struct extscan_capabilities_reset_params *reset_req);
621 
622 QDF_STATUS (*send_extscan_start_change_monitor_cmd)(wmi_unified_t wmi_handle,
623 		struct extscan_set_sig_changereq_params *
624 		psigchange);
625 
626 QDF_STATUS (*send_extscan_stop_hotlist_monitor_cmd)(wmi_unified_t wmi_handle,
627 		struct extscan_bssid_hotlist_reset_params *photlist_reset);
628 
629 QDF_STATUS (*send_extscan_start_hotlist_monitor_cmd)(wmi_unified_t wmi_handle,
630 		struct extscan_bssid_hotlist_set_params *params);
631 
632 QDF_STATUS (*send_stop_extscan_cmd)(wmi_unified_t wmi_handle,
633 		  struct extscan_stop_req_params *pstopcmd);
634 
635 QDF_STATUS (*send_start_extscan_cmd)(wmi_unified_t wmi_handle,
636 		    struct wifi_scan_cmd_req_params *pstart);
637 
638 QDF_STATUS (*send_csa_offload_enable_cmd)(wmi_unified_t wmi_handle,
639 			uint8_t vdev_id);
640 
641 QDF_STATUS (*send_pno_stop_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
642 
643 QDF_STATUS (*send_pno_start_cmd)(wmi_unified_t wmi_handle,
644 		   struct pno_scan_req_params *pno);
645 
646 QDF_STATUS (*send_nlo_mawc_cmd)(wmi_unified_t wmi_handle,
647 		struct nlo_mawc_params *params);
648 
649 #ifdef IPA_OFFLOAD
650 QDF_STATUS (*send_ipa_offload_control_cmd)(wmi_unified_t wmi_handle,
651 		struct ipa_uc_offload_control_params *ipa_offload);
652 #endif
653 
654 QDF_STATUS (*send_process_ll_stats_clear_cmd)
655 	   (wmi_unified_t wmi_handle,
656 	   const struct ll_stats_clear_params *clear_req,
657 	   uint8_t addr[IEEE80211_ADDR_LEN]);
658 
659 QDF_STATUS (*send_process_ll_stats_set_cmd)
660 	(wmi_unified_t wmi_handle, const struct ll_stats_set_params *set_req);
661 
662 QDF_STATUS (*send_process_ll_stats_get_cmd)
663 	(wmi_unified_t wmi_handle, const struct ll_stats_get_params  *get_req,
664 		 uint8_t addr[IEEE80211_ADDR_LEN]);
665 
666 
667 QDF_STATUS (*send_congestion_cmd)(wmi_unified_t wmi_handle,
668 			uint8_t vdev_id);
669 
670 QDF_STATUS (*send_snr_request_cmd)(wmi_unified_t wmi_handle);
671 
672 QDF_STATUS (*send_snr_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
673 
674 QDF_STATUS (*send_link_status_req_cmd)(wmi_unified_t wmi_handle,
675 				 struct link_status_params *link_status);
676 #ifdef WLAN_POWER_MANAGEMENT_OFFLOAD
677 QDF_STATUS (*send_add_wow_wakeup_event_cmd)(wmi_unified_t wmi_handle,
678 					uint32_t vdev_id,
679 					uint32_t *bitmap,
680 					bool enable);
681 
682 QDF_STATUS (*send_wow_patterns_to_fw_cmd)(wmi_unified_t wmi_handle,
683 				uint8_t vdev_id, uint8_t ptrn_id,
684 				const uint8_t *ptrn, uint8_t ptrn_len,
685 				uint8_t ptrn_offset, const uint8_t *mask,
686 				uint8_t mask_len, bool user,
687 				uint8_t default_patterns);
688 
689 QDF_STATUS (*send_enable_arp_ns_offload_cmd)(wmi_unified_t wmi_handle,
690 			   struct pmo_arp_offload_params *arp_offload_req,
691 			   struct pmo_ns_offload_params *ns_offload_req,
692 			   uint8_t vdev_id);
693 
694 QDF_STATUS (*send_conf_hw_filter_cmd)(wmi_unified_t wmi,
695 				      struct pmo_hw_filter_params *req);
696 
697 QDF_STATUS (*send_enable_enhance_multicast_offload_cmd)(
698 		wmi_unified_t wmi_handle,
699 		uint8_t vdev_id, bool action);
700 
701 QDF_STATUS (*send_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle,
702 				     uint8_t vdev_id,
703 				     struct qdf_mac_addr multicast_addr,
704 				     bool clearList);
705 
706 QDF_STATUS (*send_multiple_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle,
707 				uint8_t vdev_id,
708 				struct pmo_mcast_filter_params *filter_param);
709 
710 QDF_STATUS (*send_gtk_offload_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
711 					   struct pmo_gtk_req *params,
712 					   bool enable_offload,
713 					   uint32_t gtk_offload_opcode);
714 
715 QDF_STATUS (*send_process_gtk_offload_getinfo_cmd)(wmi_unified_t wmi_handle,
716 				uint8_t vdev_id,
717 				uint64_t offload_req_opcode);
718 
719 QDF_STATUS (*send_wow_sta_ra_filter_cmd)(wmi_unified_t wmi_handle,
720 				   uint8_t vdev_id, uint8_t default_pattern,
721 				   uint16_t rate_limit_interval);
722 
723 QDF_STATUS (*send_action_frame_patterns_cmd)(wmi_unified_t wmi_handle,
724 			struct pmo_action_wakeup_set_params *action_params);
725 
726 QDF_STATUS (*extract_gtk_rsp_event)(wmi_unified_t wmi_handle,
727 			void *evt_buf,
728 			struct pmo_gtk_rsp_params *gtk_rsp_param, uint32_t len);
729 
730 QDF_STATUS (*send_wow_delete_pattern_cmd)(wmi_unified_t wmi_handle,
731 					  uint8_t ptrn_id,
732 					  uint8_t vdev_id);
733 
734 QDF_STATUS (*send_host_wakeup_ind_to_fw_cmd)(wmi_unified_t wmi_handle);
735 
736 QDF_STATUS (*send_wow_timer_pattern_cmd)(wmi_unified_t wmi_handle,
737 			uint8_t vdev_id, uint32_t cookie, uint32_t time);
738 #ifdef FEATURE_WLAN_LPHB
739 QDF_STATUS (*send_lphb_config_hbenable_cmd)(wmi_unified_t wmi_handle,
740 				wmi_hb_set_enable_cmd_fixed_param *params);
741 
742 QDF_STATUS (*send_lphb_config_tcp_params_cmd)(wmi_unified_t wmi_handle,
743 				    wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req);
744 
745 QDF_STATUS (*send_lphb_config_tcp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
746 				wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp);
747 
748 QDF_STATUS (*send_lphb_config_udp_params_cmd)(wmi_unified_t wmi_handle,
749 				    wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req);
750 
751 QDF_STATUS (*send_lphb_config_udp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
752 					wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req);
753 #endif /* FEATURE_WLAN_LPHB */
754 #ifdef WLAN_FEATURE_PACKET_FILTERING
755 QDF_STATUS (*send_enable_disable_packet_filter_cmd)(wmi_unified_t wmi_handle,
756 					uint8_t vdev_id, bool enable);
757 
758 QDF_STATUS (*send_config_packet_filter_cmd)(wmi_unified_t wmi_handle,
759 		uint8_t vdev_id, struct pmo_rcv_pkt_fltr_cfg *rcv_filter_param,
760 		uint8_t filter_id, bool enable);
761 #endif
762 #endif /* end of WLAN_POWER_MANAGEMENT_OFFLOAD */
763 #ifdef CONFIG_MCL
764 QDF_STATUS (*send_bcn_buf_ll_cmd)(wmi_unified_t wmi_handle,
765 			wmi_bcn_send_from_host_cmd_fixed_param * param);
766 
767 QDF_STATUS (*send_pktlog_wmi_send_cmd)(wmi_unified_t wmi_handle,
768 				   WMI_PKTLOG_EVENT pktlog_event,
769 				   WMI_CMD_ID cmd_id, uint8_t user_triggered);
770 #endif
771 
772 #ifdef WLAN_SUPPORT_GREEN_AP
773 QDF_STATUS (*send_egap_conf_params_cmd)(wmi_unified_t wmi_handle,
774 			struct wlan_green_ap_egap_params *egap_params);
775 #endif
776 
777 #ifdef WLAN_FEATURE_CIF_CFR
778 QDF_STATUS (*send_oem_dma_cfg_cmd)(wmi_unified_t wmi_handle,
779 				   wmi_oem_dma_ring_cfg_req_fixed_param *cfg);
780 #endif
781 
782 QDF_STATUS (*send_start_oem_data_cmd)(wmi_unified_t wmi_handle,
783 			  uint32_t data_len,
784 			  uint8_t *data);
785 
786 QDF_STATUS
787 (*send_dfs_phyerr_filter_offload_en_cmd)(wmi_unified_t wmi_handle,
788 			bool dfs_phyerr_filter_offload);
789 
790 QDF_STATUS (*send_bss_color_change_enable_cmd)(wmi_unified_t wmi_handle,
791 					       uint32_t vdev_id,
792 					       bool enable);
793 
794 QDF_STATUS (*send_obss_color_collision_cfg_cmd)(wmi_unified_t wmi_handle,
795 		struct wmi_obss_color_collision_cfg_param *cfg);
796 
797 QDF_STATUS (*extract_obss_color_collision_info)(uint8_t *evt_buf,
798 		struct wmi_obss_color_collision_info *info);
799 
800 #ifdef WMI_STA_SUPPORT
801 QDF_STATUS (*send_del_ts_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
802 				uint8_t ac);
803 
804 QDF_STATUS (*send_aggr_qos_cmd)(wmi_unified_t wmi_handle,
805 		      struct aggr_add_ts_param *aggr_qos_rsp_msg);
806 
807 QDF_STATUS (*send_add_ts_cmd)(wmi_unified_t wmi_handle,
808 		 struct add_ts_param *msg);
809 
810 QDF_STATUS (*send_process_add_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
811 						struct periodic_tx_pattern  *
812 						pAddPeriodicTxPtrnParams,
813 						uint8_t vdev_id);
814 
815 QDF_STATUS (*send_process_del_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
816 						uint8_t vdev_id,
817 						uint8_t pattern_id);
818 
819 QDF_STATUS (*send_set_auto_shutdown_timer_cmd)(wmi_unified_t wmi_handle,
820 						  uint32_t timer_val);
821 
822 #ifdef WLAN_FEATURE_NAN
823 QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle,
824 			struct nan_req_params *nan_req);
825 #endif
826 
827 QDF_STATUS (*send_process_ch_avoid_update_cmd)(wmi_unified_t wmi_handle);
828 
829 QDF_STATUS (*send_process_set_ie_info_cmd)(wmi_unified_t wmi_handle,
830 				   struct vdev_ie_info_param *ie_info);
831 
832 QDF_STATUS (*send_set_base_macaddr_indicate_cmd)(wmi_unified_t wmi_handle,
833 					 uint8_t *custom_addr);
834 
835 QDF_STATUS (*send_pdev_set_pcl_cmd)(wmi_unified_t wmi_handle,
836 				struct wmi_pcl_chan_weights *msg);
837 
838 QDF_STATUS (*send_pdev_set_hw_mode_cmd)(wmi_unified_t wmi_handle,
839 				uint32_t hw_mode_index);
840 
841 #ifdef WLAN_POLICY_MGR_ENABLE
842 QDF_STATUS (*send_pdev_set_dual_mac_config_cmd)(wmi_unified_t wmi_handle,
843 		struct policy_mgr_dual_mac_config *msg);
844 #endif
845 
846 QDF_STATUS (*send_set_led_flashing_cmd)(wmi_unified_t wmi_handle,
847 				struct flashing_req_params *flashing);
848 
849 QDF_STATUS (*send_set_arp_stats_req_cmd)(wmi_unified_t wmi_handle,
850 					 struct set_arp_stats *req_buf);
851 
852 QDF_STATUS (*send_get_arp_stats_req_cmd)(wmi_unified_t wmi_handle,
853 					 struct get_arp_stats *req_buf);
854 
855 QDF_STATUS (*send_set_del_pmkid_cache_cmd) (wmi_unified_t wmi_handle,
856 		struct wmi_unified_pmk_cache *req_buf);
857 
858 QDF_STATUS (*send_adapt_dwelltime_params_cmd)(wmi_unified_t wmi_handle,
859 			struct wmi_adaptive_dwelltime_params *dwelltime_params);
860 
861 QDF_STATUS (*send_dbs_scan_sel_params_cmd)(wmi_unified_t wmi_handle,
862 			struct wmi_dbs_scan_sel_params *dbs_scan_params);
863 
864 QDF_STATUS (*send_vdev_set_gtx_cfg_cmd)(wmi_unified_t wmi_handle,
865 				  uint32_t if_id,
866 				  struct wmi_gtx_config *gtx_info);
867 
868 QDF_STATUS (*send_set_sta_keep_alive_cmd)(wmi_unified_t wmi_handle,
869 				struct sta_params *params);
870 
871 QDF_STATUS (*send_set_sta_sa_query_param_cmd)(wmi_unified_t wmi_handle,
872 					uint8_t vdev_id, uint32_t max_retries,
873 					uint32_t retry_interval);
874 
875 QDF_STATUS (*send_fw_profiling_cmd)(wmi_unified_t wmi_handle,
876 			uint32_t cmd, uint32_t value1, uint32_t value2);
877 
878 QDF_STATUS (*send_nat_keepalive_en_cmd)(wmi_unified_t wmi_handle,
879 					uint8_t vdev_id);
880 
881 QDF_STATUS (*send_process_dhcp_ind_cmd)(wmi_unified_t wmi_handle,
882 			wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
883 
884 QDF_STATUS (*send_get_link_speed_cmd)(wmi_unified_t wmi_handle,
885 			wmi_mac_addr peer_macaddr);
886 
887 QDF_STATUS (*send_wlm_latency_level_cmd)(wmi_unified_t wmi_handle,
888 				struct wlm_latency_level_param *param);
889 
890 QDF_STATUS (*send_sar_limit_cmd)(wmi_unified_t wmi_handle,
891 				struct sar_limit_cmd_params *params);
892 
893 QDF_STATUS (*get_sar_limit_cmd)(wmi_unified_t wmi_handle);
894 
895 QDF_STATUS (*extract_sar_limit_event)(wmi_unified_t wmi_handle,
896 				      uint8_t *evt_buf,
897 				      struct sar_limit_event *event);
898 
899 QDF_STATUS (*extract_sar2_result_event)(void *handle,
900 					uint8_t *event,
901 					uint32_t len);
902 
903 #ifdef WLAN_FEATURE_DISA
904 QDF_STATUS (*send_encrypt_decrypt_send_cmd)(wmi_unified_t wmi_handle,
905 				struct disa_encrypt_decrypt_req_params *params);
906 
907 QDF_STATUS (*extract_encrypt_decrypt_resp_event)(wmi_unified_t wmi_handle,
908 			void *evt_buf,
909 			struct disa_encrypt_decrypt_resp_params *resp);
910 #endif
911 
912 #ifdef CONVERGED_TDLS_ENABLE
913 QDF_STATUS (*send_set_tdls_offchan_mode_cmd)(wmi_unified_t wmi_handle,
914 			      struct tdls_channel_switch_params *chan_switch_params);
915 
916 QDF_STATUS (*send_update_fw_tdls_state_cmd)(wmi_unified_t wmi_handle,
917 					 void *tdls_param, uint8_t tdls_state);
918 
919 QDF_STATUS (*send_update_tdls_peer_state_cmd)(wmi_unified_t wmi_handle,
920 				struct tdls_peer_state_params *peerStateParams,
921 				uint32_t *ch_mhz);
922 
923 QDF_STATUS (*extract_vdev_tdls_ev_param)(wmi_unified_t wmi_handle,
924 		void *evt_buf, struct tdls_event_info *param);
925 #endif /* CONVERGED_TDLS_ENABLE */
926 #endif /* WMI_STA_SUPPORT */
927 
928 QDF_STATUS (*send_stats_ext_req_cmd)(wmi_unified_t wmi_handle,
929 			struct stats_ext_params *preq);
930 
931 #ifdef WLAN_FEATURE_EXTWOW_SUPPORT
932 QDF_STATUS (*send_enable_ext_wow_cmd)(wmi_unified_t wmi_handle,
933 			struct ext_wow_params *params);
934 
935 QDF_STATUS (*send_set_app_type2_params_in_fw_cmd)(wmi_unified_t wmi_handle,
936 				struct app_type2_params *appType2Params);
937 
938 QDF_STATUS (*send_app_type1_params_in_fw_cmd)(wmi_unified_t wmi_handle,
939 				struct app_type1_params *app_type1_params);
940 #endif /* WLAN_FEATURE_EXTWOW_SUPPORT */
941 
942 QDF_STATUS (*send_process_dhcpserver_offload_cmd)(wmi_unified_t wmi_handle,
943 				struct dhcp_offload_info_params *params);
944 
945 QDF_STATUS (*send_regdomain_info_to_fw_cmd)(wmi_unified_t wmi_handle,
946 				   uint32_t reg_dmn, uint16_t regdmn2G,
947 				   uint16_t regdmn5G, uint8_t ctl2G,
948 				   uint8_t ctl5G);
949 
950 QDF_STATUS (*send_process_fw_mem_dump_cmd)(wmi_unified_t wmi_handle,
951 					struct fw_dump_req_param *mem_dump_req);
952 
953 QDF_STATUS (*save_fw_version_cmd)(wmi_unified_t wmi_handle, void *evt_buf);
954 
955 QDF_STATUS (*check_and_update_fw_version_cmd)(wmi_unified_t wmi_hdl, void *ev);
956 
957 QDF_STATUS (*send_log_supported_evt_cmd)(wmi_unified_t wmi_handle,
958 		uint8_t *event,
959 		uint32_t len);
960 
961 QDF_STATUS (*send_enable_specific_fw_logs_cmd)(wmi_unified_t wmi_handle,
962 		struct wmi_wifi_start_log *start_log);
963 
964 QDF_STATUS (*send_flush_logs_to_fw_cmd)(wmi_unified_t wmi_handle);
965 
966 QDF_STATUS (*send_set_ssid_hotlist_cmd)(wmi_unified_t wmi_handle,
967 		     struct ssid_hotlist_request_params *request);
968 
969 QDF_STATUS (*send_unit_test_cmd)(wmi_unified_t wmi_handle,
970 				 struct wmi_unit_test_cmd *wmi_utest);
971 
972 #ifdef FEATURE_WLAN_APF
973 QDF_STATUS
974 (*send_set_active_apf_mode_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
975 				enum wmi_host_active_apf_mode ucast_mode,
976 				enum wmi_host_active_apf_mode mcast_bcast_mode);
977 
978 QDF_STATUS (*send_apf_enable_cmd)(wmi_unified_t wmi_handle, uint32_t vdev_id,
979 				  bool enable);
980 
981 QDF_STATUS (*send_apf_write_work_memory_cmd)(wmi_unified_t wmi_handle,
982 			struct wmi_apf_write_memory_params *apf_write_params);
983 
984 QDF_STATUS (*send_apf_read_work_memory_cmd)(wmi_unified_t wmi_handle,
985 			struct wmi_apf_read_memory_params *apf_read_params);
986 
987 QDF_STATUS (*extract_apf_read_memory_resp_event)(wmi_unified_t wmi_handle,
988 			void *evt_buf,
989 			struct wmi_apf_read_memory_resp_event_params *resp);
990 #endif /* FEATURE_WLAN_APF */
991 
992 QDF_STATUS (*send_pdev_get_tpc_config_cmd)(wmi_unified_t wmi_handle,
993 		uint32_t param);
994 
995 #ifdef WMI_ATF_SUPPORT
996 QDF_STATUS (*send_set_bwf_cmd)(wmi_unified_t wmi_handle,
997 		struct set_bwf_params *param);
998 #endif
999 
1000 QDF_STATUS (*send_pdev_fips_cmd)(wmi_unified_t wmi_handle,
1001 		struct fips_params *param);
1002 
1003 QDF_STATUS (*send_wlan_profile_enable_cmd)(wmi_unified_t wmi_handle,
1004 		struct wlan_profile_params *param);
1005 
1006 QDF_STATUS (*send_wlan_profile_trigger_cmd)(wmi_unified_t wmi_handle,
1007 		struct wlan_profile_params *param);
1008 
1009 QDF_STATUS (*send_pdev_set_chan_cmd)(wmi_unified_t wmi_handle,
1010 		struct channel_param *param);
1011 
1012 QDF_STATUS (*send_set_ht_ie_cmd)(wmi_unified_t wmi_handle,
1013 		struct ht_ie_params *param);
1014 
1015 QDF_STATUS (*send_set_vht_ie_cmd)(wmi_unified_t wmi_handle,
1016 		struct vht_ie_params *param);
1017 
1018 QDF_STATUS (*send_wmm_update_cmd)(wmi_unified_t wmi_handle,
1019 		struct wmm_update_params *param);
1020 
1021 QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle,
1022 		uint8_t vdev_id, bool mu_edca_param,
1023 		struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC]);
1024 
1025 QDF_STATUS (*send_set_ratepwr_table_cmd)(wmi_unified_t wmi_handle,
1026 		struct ratepwr_table_params *param);
1027 
1028 QDF_STATUS (*send_get_ratepwr_table_cmd)(wmi_unified_t wmi_handle);
1029 
1030 QDF_STATUS (*send_set_ctl_table_cmd)(wmi_unified_t wmi_handle,
1031 		struct ctl_table_params *param);
1032 
1033 QDF_STATUS (*send_set_mimogain_table_cmd)(wmi_unified_t wmi_handle,
1034 		struct mimogain_table_params *param);
1035 
1036 QDF_STATUS (*send_set_ratepwr_chainmsk_cmd)(wmi_unified_t wmi_handle,
1037 		struct ratepwr_chainmsk_params *param);
1038 
1039 QDF_STATUS (*send_set_macaddr_cmd)(wmi_unified_t wmi_handle,
1040 		struct macaddr_params *param);
1041 
1042 QDF_STATUS (*send_pdev_scan_start_cmd)(wmi_unified_t wmi_handle);
1043 
1044 QDF_STATUS (*send_pdev_scan_end_cmd)(wmi_unified_t wmi_handle);
1045 
1046 QDF_STATUS (*send_set_acparams_cmd)(wmi_unified_t wmi_handle,
1047 		struct acparams_params *param);
1048 
1049 QDF_STATUS (*send_set_vap_dscp_tid_map_cmd)(wmi_unified_t wmi_handle,
1050 		struct vap_dscp_tid_map_params *param);
1051 
1052 QDF_STATUS (*send_proxy_ast_reserve_cmd)(wmi_unified_t wmi_handle,
1053 		struct proxy_ast_reserve_params *param);
1054 
1055 QDF_STATUS (*send_pdev_qvit_cmd)(wmi_unified_t wmi_handle,
1056 		struct pdev_qvit_params *param);
1057 
1058 QDF_STATUS (*send_mcast_group_update_cmd)(wmi_unified_t wmi_handle,
1059 		struct mcast_group_update_params *param);
1060 
1061 QDF_STATUS (*send_peer_add_wds_entry_cmd)(wmi_unified_t wmi_handle,
1062 		struct peer_add_wds_entry_params *param);
1063 
1064 QDF_STATUS (*send_peer_del_wds_entry_cmd)(wmi_unified_t wmi_handle,
1065 		struct peer_del_wds_entry_params *param);
1066 
1067 QDF_STATUS (*send_set_bridge_mac_addr_cmd)(wmi_unified_t wmi_handle,
1068 		struct set_bridge_mac_addr_params *param);
1069 
1070 QDF_STATUS (*send_peer_update_wds_entry_cmd)(wmi_unified_t wmi_handle,
1071 		struct peer_update_wds_entry_params *param);
1072 
1073 QDF_STATUS (*send_phyerr_enable_cmd)(wmi_unified_t wmi_handle);
1074 
1075 QDF_STATUS (*send_phyerr_disable_cmd)(wmi_unified_t wmi_handle);
1076 
1077 #ifdef WMI_SMART_ANT_SUPPORT
1078 QDF_STATUS (*send_set_ant_switch_tbl_cmd)(wmi_unified_t wmi_handle,
1079 		struct ant_switch_tbl_params *param);
1080 
1081 QDF_STATUS (*send_smart_ant_enable_cmd)(wmi_unified_t wmi_handle,
1082 		struct smart_ant_enable_params *param);
1083 
1084 QDF_STATUS (*send_smart_ant_set_rx_ant_cmd)(wmi_unified_t wmi_handle,
1085 		struct smart_ant_rx_ant_params *param);
1086 
1087 QDF_STATUS (*send_smart_ant_set_tx_ant_cmd)(wmi_unified_t wmi_handle,
1088 		uint8_t macaddr[IEEE80211_ADDR_LEN],
1089 		struct smart_ant_tx_ant_params *param);
1090 
1091 QDF_STATUS (*send_smart_ant_set_training_info_cmd)(wmi_unified_t wmi_handle,
1092 		uint8_t macaddr[IEEE80211_ADDR_LEN],
1093 		struct smart_ant_training_info_params *param);
1094 
1095 QDF_STATUS (*send_smart_ant_set_node_config_cmd)(wmi_unified_t wmi_handle,
1096 		uint8_t macaddr[IEEE80211_ADDR_LEN],
1097 		struct smart_ant_node_config_params *param);
1098 #endif
1099 
1100 QDF_STATUS (*send_smart_ant_enable_tx_feedback_cmd)(wmi_unified_t wmi_handle,
1101 		struct smart_ant_enable_tx_feedback_params *param);
1102 
1103 QDF_STATUS (*send_vdev_spectral_configure_cmd)(wmi_unified_t wmi_handle,
1104 		struct vdev_spectral_configure_params *param);
1105 
1106 QDF_STATUS (*send_vdev_spectral_enable_cmd)(wmi_unified_t wmi_handle,
1107 		struct vdev_spectral_enable_params *param);
1108 
1109 QDF_STATUS (*send_bss_chan_info_request_cmd)(wmi_unified_t wmi_handle,
1110 		struct bss_chan_info_request_params *param);
1111 
1112 QDF_STATUS (*send_thermal_mitigation_param_cmd)(wmi_unified_t wmi_handle,
1113 		struct thermal_mitigation_params *param);
1114 
1115 QDF_STATUS (*send_vdev_set_neighbour_rx_cmd)(wmi_unified_t wmi_handle,
1116 		uint8_t macaddr[IEEE80211_ADDR_LEN],
1117 		struct set_neighbour_rx_params *param);
1118 
1119 QDF_STATUS (*send_vdev_set_fwtest_param_cmd)(wmi_unified_t wmi_handle,
1120 		struct set_fwtest_params *param);
1121 
1122 QDF_STATUS (*send_vdev_config_ratemask_cmd)(wmi_unified_t wmi_handle,
1123 		struct config_ratemask_params *param);
1124 
1125 QDF_STATUS (*send_vdev_set_custom_aggr_size_cmd)(wmi_unified_t wmi_handle,
1126 		struct set_custom_aggr_size_params *param);
1127 
1128 QDF_STATUS (*send_vdev_set_qdepth_thresh_cmd)(wmi_unified_t wmi_handle,
1129 		struct set_qdepth_thresh_params *param);
1130 
1131 QDF_STATUS (*send_wow_wakeup_cmd)(wmi_unified_t wmi_handle);
1132 
1133 QDF_STATUS (*send_wow_add_wakeup_event_cmd)(wmi_unified_t wmi_handle,
1134 		struct wow_add_wakeup_params *param);
1135 
1136 QDF_STATUS (*send_wow_add_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
1137 		struct wow_add_wakeup_pattern_params *param);
1138 
1139 QDF_STATUS (*send_wow_remove_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
1140 		struct wow_remove_wakeup_pattern_params *param);
1141 
1142 QDF_STATUS (*send_pdev_set_regdomain_cmd)(wmi_unified_t wmi_handle,
1143 		struct pdev_set_regdomain_params *param);
1144 
1145 QDF_STATUS (*send_set_quiet_mode_cmd)(wmi_unified_t wmi_handle,
1146 		struct set_quiet_mode_params *param);
1147 
1148 QDF_STATUS (*send_set_beacon_filter_cmd)(wmi_unified_t wmi_handle,
1149 		struct set_beacon_filter_params *param);
1150 
1151 QDF_STATUS (*send_remove_beacon_filter_cmd)(wmi_unified_t wmi_handle,
1152 		struct remove_beacon_filter_params *param);
1153 /*
1154 QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
1155 		uint8_t macaddr[IEEE80211_ADDR_LEN],
1156 		struct mgmt_params *param);
1157 		*/
1158 
1159 QDF_STATUS (*send_addba_clearresponse_cmd)(wmi_unified_t wmi_handle,
1160 		uint8_t macaddr[IEEE80211_ADDR_LEN],
1161 		struct addba_clearresponse_params *param);
1162 
1163 QDF_STATUS (*send_addba_send_cmd)(wmi_unified_t wmi_handle,
1164 		uint8_t macaddr[IEEE80211_ADDR_LEN],
1165 		struct addba_send_params *param);
1166 
1167 QDF_STATUS (*send_delba_send_cmd)(wmi_unified_t wmi_handle,
1168 		uint8_t macaddr[IEEE80211_ADDR_LEN],
1169 		struct delba_send_params *param);
1170 
1171 QDF_STATUS (*send_addba_setresponse_cmd)(wmi_unified_t wmi_handle,
1172 		uint8_t macaddr[IEEE80211_ADDR_LEN],
1173 		struct addba_setresponse_params *param);
1174 
1175 QDF_STATUS (*send_singleamsdu_cmd)(wmi_unified_t wmi_handle,
1176 		uint8_t macaddr[IEEE80211_ADDR_LEN],
1177 		struct singleamsdu_params *param);
1178 
1179 QDF_STATUS (*send_set_qboost_param_cmd)(wmi_unified_t wmi_handle,
1180 		uint8_t macaddr[IEEE80211_ADDR_LEN],
1181 		struct set_qboost_params *param);
1182 
1183 QDF_STATUS (*send_mu_scan_cmd)(wmi_unified_t wmi_handle,
1184 		struct mu_scan_params *param);
1185 
1186 QDF_STATUS (*send_lteu_config_cmd)(wmi_unified_t wmi_handle,
1187 		struct lteu_config_params *param);
1188 
1189 QDF_STATUS (*send_set_ps_mode_cmd)(wmi_unified_t wmi_handle,
1190 		       struct set_ps_mode_params *param);
1191 QDF_STATUS (*save_service_bitmap)(wmi_unified_t wmi_handle,
1192 		void *evt_buf,  void *bitmap_buf);
1193 QDF_STATUS (*save_ext_service_bitmap)(wmi_unified_t wmi_handle,
1194 		void *evt_buf,  void *bitmap_buf);
1195 bool (*is_service_enabled)(wmi_unified_t wmi_handle,
1196 	uint32_t service_id);
1197 QDF_STATUS (*get_target_cap_from_service_ready)(wmi_unified_t wmi_handle,
1198 	void *evt_buf, struct wlan_psoc_target_capability_info *ev);
1199 
1200 QDF_STATUS (*extract_fw_version)(wmi_unified_t wmi_handle,
1201 				void *ev, struct wmi_host_fw_ver *fw_ver);
1202 
1203 QDF_STATUS (*extract_fw_abi_version)(wmi_unified_t wmi_handle,
1204 				void *ev, struct wmi_host_fw_abi_ver *fw_ver);
1205 
1206 QDF_STATUS (*extract_hal_reg_cap)(wmi_unified_t wmi_handle, void *evt_buf,
1207 	struct wlan_psoc_hal_reg_capability *hal_reg_cap);
1208 
1209 host_mem_req * (*extract_host_mem_req)(wmi_unified_t wmi_handle,
1210 	void *evt_buf, uint8_t *num_entries);
1211 
1212 QDF_STATUS (*init_cmd_send)(wmi_unified_t wmi_handle,
1213 				struct wmi_init_cmd_param *param);
1214 
1215 QDF_STATUS (*save_fw_version)(wmi_unified_t wmi_handle, void *evt_buf);
1216 uint32_t (*ready_extract_init_status)(wmi_unified_t wmi_hdl, void *ev);
1217 QDF_STATUS (*ready_extract_mac_addr)(wmi_unified_t wmi_hdl, void *ev,
1218 		uint8_t *macaddr);
1219 wmi_host_mac_addr * (*ready_extract_mac_addr_list)(wmi_unified_t wmi_hdl,
1220 					void *ev, uint8_t *num_mac_addr);
1221 QDF_STATUS (*extract_ready_event_params)(wmi_unified_t wmi_handle,
1222 		void *evt_buf, struct wmi_host_ready_ev_param *ev_param);
1223 
1224 QDF_STATUS (*check_and_update_fw_version)(wmi_unified_t wmi_hdl, void *ev);
1225 uint8_t* (*extract_dbglog_data_len)(wmi_unified_t wmi_handle, void *evt_buf,
1226 		uint32_t *len);
1227 QDF_STATUS (*send_ext_resource_config)(wmi_unified_t wmi_handle,
1228 		wmi_host_ext_resource_config *ext_cfg);
1229 
1230 QDF_STATUS (*send_nf_dbr_dbm_info_get_cmd)(wmi_unified_t wmi_handle,
1231 					   uint8_t mac_id);
1232 
1233 QDF_STATUS (*send_packet_power_info_get_cmd)(wmi_unified_t wmi_handle,
1234 		      struct packet_power_info_params *param);
1235 
1236 QDF_STATUS (*send_gpio_config_cmd)(wmi_unified_t wmi_handle,
1237 		      struct gpio_config_params *param);
1238 
1239 QDF_STATUS (*send_gpio_output_cmd)(wmi_unified_t wmi_handle,
1240 		      struct gpio_output_params *param);
1241 
1242 QDF_STATUS (*send_rtt_meas_req_test_cmd)(wmi_unified_t wmi_handle,
1243 		      struct rtt_meas_req_test_params *param);
1244 
1245 QDF_STATUS (*send_rtt_meas_req_cmd)(wmi_unified_t wmi_handle,
1246 		      struct rtt_meas_req_params *param);
1247 
1248 QDF_STATUS (*send_rtt_keepalive_req_cmd)(wmi_unified_t wmi_handle,
1249 		      struct rtt_keepalive_req_params *param);
1250 
1251 QDF_STATUS (*send_lci_set_cmd)(wmi_unified_t wmi_handle,
1252 		      struct lci_set_params *param);
1253 
1254 QDF_STATUS (*send_lcr_set_cmd)(wmi_unified_t wmi_handle,
1255 		      struct lcr_set_params *param);
1256 
1257 QDF_STATUS (*send_periodic_chan_stats_config_cmd)(wmi_unified_t wmi_handle,
1258 			struct periodic_chan_stats_params *param);
1259 
1260 #ifdef WLAN_ATF_ENABLE
1261 QDF_STATUS (*send_set_atf_cmd)(wmi_unified_t wmi_handle,
1262 			       struct set_atf_params *param);
1263 
1264 QDF_STATUS
1265 (*send_atf_peer_request_cmd)(wmi_unified_t wmi_handle,
1266 			     struct atf_peer_request_params *param);
1267 
1268 QDF_STATUS
1269 (*send_set_atf_grouping_cmd)(wmi_unified_t wmi_handle,
1270 			     struct atf_grouping_params *param);
1271 
1272 QDF_STATUS
1273 (*send_set_atf_group_ac_cmd)(wmi_unified_t wmi_handle,
1274 			     struct atf_group_ac_params *param);
1275 
1276 QDF_STATUS (*extract_atf_peer_stats_ev)(wmi_unified_t wmi_handle,
1277 					void *evt_buf,
1278 					wmi_host_atf_peer_stats_event *ev);
1279 
1280 QDF_STATUS (*extract_atf_token_info_ev)(wmi_unified_t wmi_handle,
1281 					void *evt_buf, uint8_t idx,
1282 					wmi_host_atf_peer_stats_info *atf_info);
1283 #endif
1284 
1285 QDF_STATUS (*send_get_user_position_cmd)(wmi_unified_t wmi_handle,
1286 			uint32_t value);
1287 
1288 QDF_STATUS
1289 (*send_reset_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle,
1290 			uint32_t value);
1291 
1292 QDF_STATUS (*send_get_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle,
1293 			uint32_t value);
1294 
1295 QDF_STATUS
1296 (*send_pdev_caldata_version_check_cmd)(wmi_unified_t wmi_handle,
1297 			uint32_t value);
1298 
1299 QDF_STATUS
1300 (*send_btcoex_wlan_priority_cmd)(wmi_unified_t wmi_handle,
1301 			struct btcoex_cfg_params *param);
1302 
1303 QDF_STATUS
1304 (*send_start_11d_scan_cmd)(wmi_unified_t wmi_handle,
1305 			struct reg_start_11d_scan_req *param);
1306 
1307 QDF_STATUS
1308 (*send_stop_11d_scan_cmd)(wmi_unified_t wmi_handle,
1309 			struct reg_stop_11d_scan_req *param);
1310 
1311 QDF_STATUS
1312 (*send_btcoex_duty_cycle_cmd)(wmi_unified_t wmi_handle,
1313 			struct btcoex_cfg_params *param);
1314 
1315 QDF_STATUS
1316 (*send_coex_ver_cfg_cmd)(wmi_unified_t wmi_handle, coex_ver_cfg_t *param);
1317 
1318 QDF_STATUS
1319 (*send_coex_config_cmd)(wmi_unified_t wmi_handle,
1320 			struct coex_config_params *param);
1321 
1322 QDF_STATUS (*send_bcn_offload_control_cmd)(wmi_unified_t wmi_handle,
1323 			struct bcn_offload_control *bcn_ctrl_param);
1324 #ifdef OL_ATH_SMART_LOGGING
1325 QDF_STATUS
1326 (*send_smart_logging_enable_cmd)(wmi_unified_t wmi_handle, uint32_t param);
1327 
1328 QDF_STATUS
1329 (*send_smart_logging_fatal_cmd)(wmi_unified_t wmi_handle,
1330 				struct wmi_debug_fatal_events *param);
1331 #endif /* OL_ATH_SMART_LOGGING */
1332 QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle,
1333 	void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
1334 
1335 QDF_STATUS (*extract_dcs_interference_type)(wmi_unified_t wmi_handle,
1336 	void *evt_buf, struct wmi_host_dcs_interference_param *param);
1337 
1338 QDF_STATUS (*extract_dcs_cw_int)(wmi_unified_t wmi_handle, void *evt_buf,
1339 	wmi_host_ath_dcs_cw_int *cw_int);
1340 
1341 QDF_STATUS (*extract_dcs_im_tgt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1342 	wmi_host_dcs_im_tgt_stats_t *wlan_stat);
1343 
1344 QDF_STATUS (*extract_fips_event_data)(wmi_unified_t wmi_handle,
1345 	void *evt_buf, struct wmi_host_fips_event_param *param);
1346 
1347 QDF_STATUS (*extract_vdev_start_resp)(wmi_unified_t wmi_handle, void *evt_buf,
1348 	wmi_host_vdev_start_resp *vdev_rsp);
1349 
1350 QDF_STATUS (*extract_vdev_delete_resp)(wmi_unified_t wmi_handle, void *evt_buf,
1351 	struct wmi_host_vdev_delete_resp *delete_rsp);
1352 
1353 QDF_STATUS (*extract_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf,
1354 	uint8_t idx, struct tbttoffset_params *tbtt_param);
1355 
1356 QDF_STATUS (*extract_ext_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf,
1357 	uint8_t idx, struct tbttoffset_params *tbtt_param);
1358 
1359 QDF_STATUS (*extract_tbttoffset_num_vdevs)(void *wmi_hdl, void *evt_buf,
1360 					   uint32_t *num_vdevs);
1361 
1362 QDF_STATUS (*extract_ext_tbttoffset_num_vdevs)(void *wmi_hdl, void *evt_buf,
1363 					       uint32_t *num_vdevs);
1364 
1365 QDF_STATUS (*extract_mgmt_rx_params)(wmi_unified_t wmi_handle, void *evt_buf,
1366 	struct mgmt_rx_event_params *hdr, uint8_t **bufp);
1367 
1368 QDF_STATUS (*extract_vdev_stopped_param)(wmi_unified_t wmi_handle,
1369 		void *evt_buf, uint32_t *vdev_id);
1370 
1371 QDF_STATUS (*extract_vdev_roam_param)(wmi_unified_t wmi_handle, void *evt_buf,
1372 	wmi_host_roam_event *param);
1373 
1374 QDF_STATUS (*extract_vdev_scan_ev_param)(wmi_unified_t wmi_handle,
1375 		void *evt_buf, struct scan_event *param);
1376 
1377 QDF_STATUS (*extract_mu_ev_param)(wmi_unified_t wmi_handle, void *evt_buf,
1378 	wmi_host_mu_report_event *param);
1379 
1380 QDF_STATUS (*extract_mu_db_entry)(wmi_unified_t wmi_hdl, void *evt_buf,
1381 	uint8_t idx, wmi_host_mu_db_entry *param);
1382 
1383 QDF_STATUS (*extract_mumimo_tx_count_ev_param)(wmi_unified_t wmi_handle,
1384 	void *evt_buf, wmi_host_peer_txmu_cnt_event *param);
1385 
1386 QDF_STATUS (*extract_peer_gid_userpos_list_ev_param)(wmi_unified_t wmi_handle,
1387 	void *evt_buf, wmi_host_peer_gid_userpos_list_event *param);
1388 
1389 QDF_STATUS
1390 (*extract_esp_estimation_ev_param)(wmi_unified_t wmi_handle, void *evt_buf,
1391 				   struct esp_estimation_event *param);
1392 
1393 QDF_STATUS (*extract_pdev_caldata_version_check_ev_param)(
1394 	wmi_unified_t wmi_handle,
1395 	void *evt_buf, wmi_host_pdev_check_cal_version_event *param);
1396 
1397 QDF_STATUS (*extract_pdev_tpc_config_ev_param)(wmi_unified_t wmi_handle,
1398 		void *evt_buf, wmi_host_pdev_tpc_config_event *param);
1399 
1400 QDF_STATUS (*extract_gpio_input_ev_param)(wmi_unified_t wmi_handle,
1401 	void *evt_buf, uint32_t *gpio_num);
1402 
1403 QDF_STATUS (*extract_pdev_reserve_ast_ev_param)(wmi_unified_t wmi_handle,
1404 		void *evt_buf, struct wmi_host_proxy_ast_reserve_param *param);
1405 
1406 QDF_STATUS (*extract_nfcal_power_ev_param)(wmi_unified_t wmi_handle,
1407 		void *evt_buf,
1408 		wmi_host_pdev_nfcal_power_all_channels_event *param);
1409 
1410 QDF_STATUS (*extract_pdev_tpc_ev_param)(wmi_unified_t wmi_handle,
1411 		void *evt_buf, wmi_host_pdev_tpc_event *param);
1412 
1413 QDF_STATUS (*extract_pdev_generic_buffer_ev_param)(wmi_unified_t wmi_handle,
1414 		void *evt_buf, wmi_host_pdev_generic_buffer_event *param);
1415 
1416 QDF_STATUS (*extract_mgmt_tx_compl_param)(wmi_unified_t wmi_handle,
1417 		void *evt_buf, wmi_host_mgmt_tx_compl_event *param);
1418 
1419 QDF_STATUS (*extract_offchan_data_tx_compl_param)(wmi_unified_t wmi_handle,
1420 		void *evt_buf,
1421 		struct wmi_host_offchan_data_tx_compl_event *param);
1422 
1423 QDF_STATUS (*extract_pdev_csa_switch_count_status)(wmi_unified_t wmi_handle,
1424 		void *evt_buf, struct pdev_csa_switch_count_status *param);
1425 
1426 QDF_STATUS (*extract_swba_num_vdevs)(wmi_unified_t wmi_handle, void *evt_buf,
1427 	uint32_t *num_vdevs);
1428 
1429 QDF_STATUS (*extract_swba_tim_info)(wmi_unified_t wmi_handle, void *evt_buf,
1430 	uint32_t idx, wmi_host_tim_info *tim_info);
1431 
1432 QDF_STATUS (*extract_swba_noa_info)(wmi_unified_t wmi_handle, void *evt_buf,
1433 	    uint32_t idx, wmi_host_p2p_noa_info *p2p_desc);
1434 
1435 #ifdef CONVERGED_P2P_ENABLE
1436 #ifdef FEATURE_P2P_LISTEN_OFFLOAD
1437 QDF_STATUS (*extract_p2p_lo_stop_ev_param)(wmi_unified_t wmi_handle,
1438 	void *evt_buf, struct p2p_lo_event *param);
1439 #endif
1440 
1441 QDF_STATUS (*extract_p2p_noa_ev_param)(wmi_unified_t wmi_handle,
1442 	void *evt_buf, struct p2p_noa_info *param);
1443 #endif
1444 
1445 QDF_STATUS (*extract_peer_sta_ps_statechange_ev)(wmi_unified_t wmi_handle,
1446 	void *evt_buf, wmi_host_peer_sta_ps_statechange_event *ev);
1447 
1448 QDF_STATUS (*extract_peer_sta_kickout_ev)(wmi_unified_t wmi_handle,
1449 		void *evt_buf, wmi_host_peer_sta_kickout_event *ev);
1450 
1451 QDF_STATUS (*extract_peer_ratecode_list_ev)(wmi_unified_t wmi_handle,
1452 		void *evt_buf, uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap);
1453 
1454 QDF_STATUS (*extract_comb_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1455 	uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
1456 
1457 QDF_STATUS (*extract_single_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1458 	uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
1459 
1460 QDF_STATUS (*extract_composite_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1461 	uint16_t datalen, wmi_host_phyerr_t *phyerr);
1462 
1463 QDF_STATUS (*extract_rtt_hdr)(wmi_unified_t wmi_handle, void *evt_buf,
1464 	wmi_host_rtt_event_hdr *ev);
1465 
1466 QDF_STATUS (*extract_rtt_ev)(wmi_unified_t wmi_handle, void *evt_buf,
1467 	wmi_host_rtt_meas_event *ev, uint8_t *hdump, uint16_t hdump_len);
1468 
1469 QDF_STATUS (*extract_rtt_error_report_ev)(wmi_unified_t wmi_handle,
1470 		void *evt_buf, wmi_host_rtt_error_report_event *ev);
1471 
1472 QDF_STATUS (*extract_all_stats_count)(wmi_unified_t wmi_handle, void *evt_buf,
1473 			   wmi_host_stats_event *stats_param);
1474 
1475 QDF_STATUS (*extract_pdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1476 			 uint32_t index, wmi_host_pdev_stats *pdev_stats);
1477 
1478 QDF_STATUS (*extract_unit_test)(wmi_unified_t wmi_handle, void *evt_buf,
1479 		wmi_unit_test_event *unit_test, uint32_t maxspace);
1480 
1481 QDF_STATUS (*extract_pdev_ext_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1482 		 uint32_t index, wmi_host_pdev_ext_stats *pdev_ext_stats);
1483 
1484 QDF_STATUS (*extract_vdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1485 			 uint32_t index, wmi_host_vdev_stats *vdev_stats);
1486 
1487 QDF_STATUS (*extract_per_chain_rssi_stats)(wmi_unified_t wmi_handle,
1488 			void *evt_buf, uint32_t index,
1489 			struct wmi_host_per_chain_rssi_stats *rssi_stats);
1490 
1491 QDF_STATUS (*extract_peer_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1492 			 uint32_t index, wmi_host_peer_stats *peer_stats);
1493 
1494 QDF_STATUS (*extract_bcnflt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1495 			 uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats);
1496 
1497 QDF_STATUS (*extract_peer_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1498 		 uint32_t index, wmi_host_peer_extd_stats *peer_extd_stats);
1499 
1500 QDF_STATUS (*extract_chan_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1501 			 uint32_t index, wmi_host_chan_stats *chan_stats);
1502 
1503 QDF_STATUS (*extract_thermal_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1504 	uint32_t *temp, uint32_t *level, uint32_t *pdev_id);
1505 
1506 QDF_STATUS (*extract_thermal_level_stats)(wmi_unified_t wmi_handle,
1507 		void *evt_buf, uint8_t idx, uint32_t *levelcount,
1508 		uint32_t *dccount);
1509 
1510 QDF_STATUS (*extract_profile_ctx)(wmi_unified_t wmi_handle, void *evt_buf,
1511 				   wmi_host_wlan_profile_ctx_t *profile_ctx);
1512 
1513 QDF_STATUS (*extract_profile_data)(wmi_unified_t wmi_handle, void *evt_buf,
1514 				uint8_t idx,
1515 				wmi_host_wlan_profile_t *profile_data);
1516 
1517 QDF_STATUS (*extract_chan_info_event)(wmi_unified_t wmi_handle, void *evt_buf,
1518 				   wmi_host_chan_info_event *chan_info);
1519 
1520 QDF_STATUS (*extract_channel_hopping_event)(wmi_unified_t wmi_handle,
1521 		void *evt_buf,
1522 		wmi_host_pdev_channel_hopping_event *ch_hopping);
1523 
1524 QDF_STATUS (*extract_bss_chan_info_event)(wmi_unified_t wmi_handle,
1525 		void *evt_buf,
1526 		wmi_host_pdev_bss_chan_info_event *bss_chan_info);
1527 
1528 QDF_STATUS (*extract_inst_rssi_stats_event)(wmi_unified_t wmi_handle,
1529 		void *evt_buf, wmi_host_inst_stats_resp *inst_rssi_resp);
1530 
1531 QDF_STATUS (*extract_tx_data_traffic_ctrl_ev)(wmi_unified_t wmi_handle,
1532 		void *evt_buf, wmi_host_tx_data_traffic_ctrl_event *ev);
1533 
1534 QDF_STATUS (*extract_vdev_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1535 		uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats);
1536 
1537 QDF_STATUS (*extract_vdev_nac_rssi_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1538 		struct wmi_host_vdev_nac_rssi_event *vdev_nac_rssi_stats);
1539 
1540 QDF_STATUS (*extract_bcn_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1541 		uint32_t index, wmi_host_bcn_stats *bcn_stats);
1542 
1543 #ifdef OL_ATH_SMART_LOGGING
1544 QDF_STATUS (*extract_smartlog_event)(wmi_unified_t wmi_handle, void *evt_buf,
1545 				     struct wmi_debug_fatal_events *event);
1546 #endif /* OL_ATH_SMART_LOGGING */
1547 QDF_STATUS (*send_power_dbg_cmd)(wmi_unified_t wmi_handle,
1548 				struct wmi_power_dbg_params *param);
1549 
1550 QDF_STATUS (*send_multiple_vdev_restart_req_cmd)(wmi_unified_t wmi_handle,
1551 				struct multiple_vdev_restart_params *param);
1552 
1553 QDF_STATUS (*send_fw_test_cmd)(wmi_unified_t wmi_handle,
1554 			       struct set_fwtest_params *wmi_fwtest);
1555 
1556 #ifdef WLAN_FEATURE_ACTION_OUI
1557 QDF_STATUS (*send_action_oui_cmd)(wmi_unified_t wmi_handle,
1558 				  struct action_oui_request *req);
1559 #endif /* WLAN_FEATURE_ACTION_OUI */
1560 
1561 QDF_STATUS (*send_peer_rx_reorder_queue_setup_cmd)(wmi_unified_t wmi_handle,
1562 		struct rx_reorder_queue_setup_params *param);
1563 
1564 QDF_STATUS (*send_peer_rx_reorder_queue_remove_cmd)(wmi_unified_t wmi_handle,
1565 		struct rx_reorder_queue_remove_params *param);
1566 
1567 QDF_STATUS (*extract_service_ready_ext)(wmi_unified_t wmi_handle,
1568 			uint8_t *evt_buf,
1569 			struct wlan_psoc_host_service_ext_param *param);
1570 
1571 QDF_STATUS (*extract_hw_mode_cap_service_ready_ext)(
1572 			wmi_unified_t wmi_handle,
1573 			uint8_t *evt_buf, uint8_t hw_mode_idx,
1574 			struct wlan_psoc_host_hw_mode_caps *param);
1575 
1576 QDF_STATUS (*extract_mac_phy_cap_service_ready_ext)(
1577 			wmi_unified_t wmi_handle,
1578 			uint8_t *evt_buf,
1579 			uint8_t hw_mode_id,
1580 			uint8_t phy_id,
1581 			struct wlan_psoc_host_mac_phy_caps *param);
1582 
1583 QDF_STATUS (*extract_reg_cap_service_ready_ext)(
1584 			wmi_unified_t wmi_handle,
1585 			uint8_t *evt_buf, uint8_t phy_idx,
1586 			struct wlan_psoc_host_hal_reg_capabilities_ext *param);
1587 
1588 QDF_STATUS (*extract_dbr_ring_cap_service_ready_ext)(
1589 			wmi_unified_t wmi_handle,
1590 			uint8_t *evt_buf, uint8_t idx,
1591 			struct wlan_psoc_host_dbr_ring_caps *param);
1592 
1593 QDF_STATUS (*extract_sar_cap_service_ready_ext)(
1594 		wmi_unified_t wmi_handle,
1595 		uint8_t *evt_buf,
1596 		struct wlan_psoc_host_service_ext_param *ext_param);
1597 
1598 #ifdef WMI_DBR_SUPPORT
1599 QDF_STATUS (*send_dbr_cfg_cmd)(wmi_unified_t wmi_handle,
1600 				   struct direct_buf_rx_cfg_req *cfg);
1601 
1602 QDF_STATUS (*extract_dbr_buf_release_fixed)(
1603 			wmi_unified_t wmi_handle,
1604 			uint8_t *evt_buf,
1605 			struct direct_buf_rx_rsp *param);
1606 
1607 QDF_STATUS (*extract_dbr_buf_release_entry)(
1608 			wmi_unified_t wmi_handle,
1609 			uint8_t *evt_buf, uint8_t idx,
1610 			struct direct_buf_rx_entry *param);
1611 
1612 QDF_STATUS (*extract_dbr_buf_metadata)(
1613 			wmi_unified_t wmi_handle,
1614 			uint8_t *evt_buf, uint8_t idx,
1615 			struct direct_buf_rx_metadata *param);
1616 #endif
1617 
1618 QDF_STATUS (*extract_pdev_utf_event)(wmi_unified_t wmi_hdl,
1619 				     uint8_t *evt_buf,
1620 				     struct wmi_host_pdev_utf_event *param);
1621 
1622 QDF_STATUS (*extract_pdev_qvit_event)(wmi_unified_t wmi_hdl,
1623 				     uint8_t *evt_buf,
1624 				     struct wmi_host_pdev_qvit_event *param);
1625 
1626 uint16_t (*wmi_set_htc_tx_tag)(wmi_unified_t wmi_handle,
1627 				wmi_buf_t buf, uint32_t cmd_id);
1628 
1629 QDF_STATUS (*extract_peer_delete_response_event)(
1630 			wmi_unified_t wmi_handle,
1631 			void *evt_buf,
1632 			struct wmi_host_peer_delete_response_event *param);
1633 
1634 bool (*is_management_record)(uint32_t cmd_id);
1635 bool (*is_diag_event)(uint32_t event_id);
1636 uint8_t *(*wmi_id_to_name)(uint32_t cmd_id);
1637 QDF_STATUS (*send_dfs_phyerr_offload_en_cmd)(wmi_unified_t wmi_handle,
1638 		uint32_t pdev_id);
1639 QDF_STATUS (*send_dfs_phyerr_offload_dis_cmd)(wmi_unified_t wmi_handle,
1640 		uint32_t pdev_id);
1641 QDF_STATUS (*extract_reg_chan_list_update_event)(wmi_unified_t wmi_handle,
1642 						 uint8_t *evt_buf,
1643 						 struct cur_regulatory_info
1644 						 *reg_info,
1645 						 uint32_t len);
1646 
1647 QDF_STATUS (*extract_reg_11d_new_country_event)(wmi_unified_t wmi_handle,
1648 		uint8_t *evt_buf,
1649 		struct reg_11d_new_country *reg_11d_country,
1650 		uint32_t len);
1651 
1652 QDF_STATUS (*extract_reg_ch_avoid_event)(wmi_unified_t wmi_handle,
1653 		uint8_t *evt_buf,
1654 		struct ch_avoid_ind_type *ch_avoid_event,
1655 		uint32_t len);
1656 
1657 QDF_STATUS (*extract_chainmask_tables)(wmi_unified_t wmi_handle,
1658 		uint8_t *evt_buf,
1659 		struct wlan_psoc_host_chainmask_table *chainmask_table);
1660 
1661 QDF_STATUS (*send_get_rcpi_cmd)(wmi_unified_t wmi_handle,
1662 				struct rcpi_req *get_rcpi_param);
1663 
1664 QDF_STATUS (*extract_rcpi_response_event)(wmi_unified_t wmi_handle,
1665 					  void *evt_buf,
1666 					  struct rcpi_res *res);
1667 
1668 QDF_STATUS (*extract_dfs_cac_complete_event)(wmi_unified_t wmi_handle,
1669 		uint8_t *evt_buf,
1670 		uint32_t *vdev_id,
1671 		uint32_t len);
1672 QDF_STATUS (*extract_dfs_radar_detection_event)(wmi_unified_t wmi_handle,
1673 		uint8_t *evt_buf,
1674 		struct radar_found_info *radar_found,
1675 		uint32_t len);
1676 QDF_STATUS (*extract_wlan_radar_event_info)(wmi_unified_t wmi_handle,
1677 		uint8_t *evt_buf,
1678 		struct radar_event_info *wlan_radar_event,
1679 		uint32_t len);
1680 
1681 QDF_STATUS (*send_set_country_cmd)(wmi_unified_t wmi_handle,
1682 				struct set_country *param);
1683 
1684 uint32_t (*convert_pdev_id_host_to_target)(uint32_t pdev_id);
1685 uint32_t (*convert_pdev_id_target_to_host)(uint32_t pdev_id);
1686 
1687 QDF_STATUS (*send_user_country_code_cmd)(wmi_unified_t wmi_handle,
1688 		uint8_t pdev_id, struct cc_regdmn_s *rd);
1689 
1690 QDF_STATUS (*send_wds_entry_list_cmd)(wmi_unified_t wmi_handle);
1691 QDF_STATUS (*extract_wds_entry)(wmi_unified_t wmi_handle,
1692 		uint8_t *evt_buf,
1693 		struct wdsentry *wds_entry,
1694 		u_int32_t idx);
1695 
1696 #ifdef WLAN_FEATURE_NAN_CONVERGENCE
1697 QDF_STATUS (*send_ndp_initiator_req_cmd)(wmi_unified_t wmi_handle,
1698 				struct nan_datapath_initiator_req *req);
1699 QDF_STATUS (*send_ndp_responder_req_cmd)(wmi_unified_t wmi_handle,
1700 				struct nan_datapath_responder_req *req);
1701 QDF_STATUS (*send_ndp_end_req_cmd)(wmi_unified_t wmi_handle,
1702 				struct nan_datapath_end_req *req);
1703 
1704 QDF_STATUS (*extract_ndp_initiator_rsp)(wmi_unified_t wmi_handle,
1705 		uint8_t *data, struct nan_datapath_initiator_rsp *rsp);
1706 QDF_STATUS (*extract_ndp_ind)(wmi_unified_t wmi_handle,
1707 		uint8_t *data, struct nan_datapath_indication_event *ind);
1708 QDF_STATUS (*extract_ndp_confirm)(wmi_unified_t wmi_handle,
1709 		uint8_t *data, struct nan_datapath_confirm_event *ev);
1710 QDF_STATUS (*extract_ndp_responder_rsp)(wmi_unified_t wmi_handle,
1711 		uint8_t *data, struct nan_datapath_responder_rsp *rsp);
1712 QDF_STATUS (*extract_ndp_end_rsp)(wmi_unified_t wmi_handle,
1713 		uint8_t *data, struct nan_datapath_end_rsp_event *rsp);
1714 QDF_STATUS (*extract_ndp_end_ind)(wmi_unified_t wmi_handle,
1715 		uint8_t *data, struct nan_datapath_end_indication_event **ind);
1716 QDF_STATUS (*extract_ndp_sch_update)(wmi_unified_t wmi_handle,
1717 		uint8_t *data, struct nan_datapath_sch_update_event *ind);
1718 #endif /* WLAN_FEATURE_NAN_CONVERGENCE */
1719 
1720 QDF_STATUS (*send_obss_detection_cfg_cmd)(wmi_unified_t wmi_handle,
1721 		struct wmi_obss_detection_cfg_param *obss_cfg_param);
1722 QDF_STATUS (*extract_obss_detection_info)(uint8_t *evt_buf,
1723 					  struct wmi_obss_detect_info *info);
1724 
1725 #ifdef WLAN_SUPPORT_FILS
1726 QDF_STATUS (*send_vdev_fils_enable_cmd)(wmi_unified_t wmi_handle,
1727 					struct config_fils_params *param);
1728 QDF_STATUS (*extract_swfda_vdev_id)(wmi_unified_t wmi_handle, void *evt_buf,
1729 				    uint32_t *vdev_id);
1730 QDF_STATUS (*send_fils_discovery_send_cmd)(wmi_unified_t wmi_handle,
1731 					   struct fd_params *param);
1732 #endif /* WLAN_SUPPORT_FILS */
1733 
1734 QDF_STATUS
1735 (*send_roam_scan_stats_cmd)(wmi_unified_t wmi_handle,
1736 			    struct wmi_roam_scan_stats_req *params);
1737 
1738 QDF_STATUS
1739 (*extract_roam_scan_stats_res_evt)(wmi_unified_t wmi_handle,
1740 				   void *evt_buf,
1741 				   uint32_t *vdev_id,
1742 				   struct wmi_roam_scan_stats_res **res_param);
1743 QDF_STATUS
1744 (*extract_offload_bcn_tx_status_evt)(wmi_unified_t wmi_handle,
1745 				     void *evt_buf, uint32_t *vdev_id,
1746 				     uint32_t *tx_status);
1747 
1748 void (*wmi_pdev_id_conversion_enable)(wmi_unified_t wmi_handle);
1749 void (*send_time_stamp_sync_cmd)(wmi_unified_t wmi_handle);
1750 void (*wmi_free_allocated_event)(uint32_t cmd_event_id,
1751 				void **wmi_cmd_struct_ptr);
1752 int (*wmi_check_and_pad_event)(void *os_handle, void *param_struc_ptr,
1753 				uint32_t param_buf_len,
1754 				uint32_t wmi_cmd_event_id,
1755 				void **wmi_cmd_struct_ptr);
1756 int (*wmi_check_command_params)(void *os_handle, void *param_struc_ptr,
1757 				uint32_t param_buf_len,
1758 				uint32_t wmi_cmd_event_id);
1759 
1760 #ifdef WLAN_SUPPORT_TWT
1761 QDF_STATUS (*send_twt_enable_cmd)(wmi_unified_t wmi_handle,
1762 			struct wmi_twt_enable_param *params);
1763 
1764 QDF_STATUS (*send_twt_disable_cmd)(wmi_unified_t wmi_handle,
1765 			struct wmi_twt_disable_param *params);
1766 
1767 QDF_STATUS (*send_twt_add_dialog_cmd)(wmi_unified_t wmi_handle,
1768 			struct wmi_twt_add_dialog_param *params);
1769 
1770 QDF_STATUS (*send_twt_del_dialog_cmd)(wmi_unified_t wmi_handle,
1771 			struct wmi_twt_del_dialog_param *params);
1772 
1773 QDF_STATUS (*send_twt_pause_dialog_cmd)(wmi_unified_t wmi_handle,
1774 			struct wmi_twt_pause_dialog_cmd_param *params);
1775 
1776 QDF_STATUS (*send_twt_resume_dialog_cmd)(wmi_unified_t wmi_handle,
1777 			struct wmi_twt_resume_dialog_cmd_param *params);
1778 
1779 QDF_STATUS (*extract_twt_enable_comp_event)(wmi_unified_t wmi_handle,
1780 		uint8_t *evt_buf,
1781 		struct wmi_twt_enable_complete_event_param *params);
1782 
1783 QDF_STATUS (*extract_twt_disable_comp_event)(wmi_unified_t wmi_handle,
1784 		uint8_t *evt_buf,
1785 		struct wmi_twt_disable_complete_event *params);
1786 
1787 QDF_STATUS (*extract_twt_add_dialog_comp_event)(wmi_unified_t wmi_handle,
1788 		uint8_t *evt_buf,
1789 		struct wmi_twt_add_dialog_complete_event_param *params);
1790 
1791 QDF_STATUS (*extract_twt_del_dialog_comp_event)(wmi_unified_t wmi_handle,
1792 		uint8_t *evt_buf,
1793 		struct wmi_twt_del_dialog_complete_event_param *params);
1794 
1795 QDF_STATUS (*extract_twt_pause_dialog_comp_event)(wmi_unified_t wmi_handle,
1796 		uint8_t *evt_buf,
1797 		struct wmi_twt_pause_dialog_complete_event_param *params);
1798 
1799 QDF_STATUS (*extract_twt_resume_dialog_comp_event)(wmi_unified_t wmi_handle,
1800 		uint8_t *evt_buf,
1801 		struct wmi_twt_resume_dialog_complete_event_param *params);
1802 #endif
1803 
1804 #ifdef QCA_SUPPORT_CP_STATS
1805 QDF_STATUS (*extract_cca_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1806 				struct wmi_host_congestion_stats *stats);
1807 #endif /* QCA_SUPPORT_CP_STATS */
1808 
1809 #if defined(WLAN_DFS_PARTIAL_OFFLOAD) && defined(HOST_DFS_SPOOF_TEST)
1810 QDF_STATUS (*send_dfs_average_radar_params_cmd)(
1811 		wmi_unified_t wmi_handle,
1812 		struct dfs_radar_found_params *params);
1813 
1814 QDF_STATUS (*extract_dfs_status_from_fw)(wmi_unified_t wmi_handle,
1815 					 void *evt_buf,
1816 					 uint32_t *dfs_status_check);
1817 #endif
1818 
1819 #ifdef OBSS_PD
1820 QDF_STATUS (*send_obss_spatial_reuse_set)(wmi_unified_t wmi_handle,
1821 		struct wmi_host_obss_spatial_reuse_set_param
1822 		*obss_spatial_reuse_param);
1823 #endif
1824 };
1825 
1826 /* Forward declartion for psoc*/
1827 struct wlan_objmgr_psoc;
1828 
1829 /**
1830  * struct wmi_init_cmd - Saved wmi INIT command
1831  * @buf: Buffer containing the wmi INIT command
1832  * @buf_len: Length of the buffer
1833  */
1834 struct wmi_cmd_init {
1835 	wmi_buf_t buf;
1836 	uint32_t buf_len;
1837 };
1838 
1839 /**
1840  * @abi_version_0: WMI Major and Minor versions
1841  * @abi_version_1: WMI change revision
1842  * @abi_version_ns_0: ABI version namespace first four dwords
1843  * @abi_version_ns_1: ABI version namespace second four dwords
1844  * @abi_version_ns_2: ABI version namespace third four dwords
1845  * @abi_version_ns_3: ABI version namespace fourth four dwords
1846  */
1847 struct wmi_host_abi_version {
1848 	uint32_t abi_version_0;
1849 	uint32_t abi_version_1;
1850 	uint32_t abi_version_ns_0;
1851 	uint32_t abi_version_ns_1;
1852 	uint32_t abi_version_ns_2;
1853 	uint32_t abi_version_ns_3;
1854 };
1855 
1856 #define NUM_DEBUG_INFOS 9
1857 struct wmi_unified {
1858 	void *scn_handle;    /* handle to device */
1859 	osdev_t  osdev; /* handle to use OS-independent services */
1860 	struct wbuff_mod_handle *wbuff_handle; /* handle to wbuff */
1861 	qdf_atomic_t pending_cmds;
1862 	HTC_ENDPOINT_ID wmi_endpoint_id;
1863 	uint16_t max_msg_len;
1864 	uint32_t *event_id;
1865 	wmi_unified_event_handler *event_handler;
1866 	enum wmi_rx_exec_ctx *ctx;
1867 	void *htc_handle;
1868 	qdf_spinlock_t eventq_lock;
1869 	qdf_nbuf_queue_t event_queue;
1870 	qdf_work_t rx_event_work;
1871 	qdf_workqueue_t *wmi_rx_work_queue;
1872 	int wmi_stop_in_progress;
1873 	struct wmi_host_abi_version fw_abi_version;
1874 	struct wmi_host_abi_version final_abi_vers;
1875 	uint32_t num_of_diag_events_logs;
1876 	uint32_t *events_logs_list;
1877 #ifdef WLAN_OPEN_SOURCE
1878 	struct fwdebug dbglog;
1879 	struct dentry *debugfs_phy;
1880 #endif /* WLAN_OPEN_SOURCE */
1881 
1882 #ifdef WMI_INTERFACE_EVENT_LOGGING
1883 	struct wmi_debug_log_info log_info;
1884 #endif /*WMI_INTERFACE_EVENT_LOGGING */
1885 
1886 	qdf_atomic_t is_target_suspended;
1887 
1888 #ifdef FEATURE_RUNTIME_PM
1889 	qdf_atomic_t runtime_pm_inprogress;
1890 #endif
1891 	qdf_atomic_t is_wow_bus_suspended;
1892 	bool tag_crash_inject;
1893 	bool tgt_force_assert_enable;
1894 	enum wmi_target_type target_type;
1895 	struct wmi_rx_ops rx_ops;
1896 	struct wmi_ops *ops;
1897 	bool use_cookie;
1898 	bool wmi_stopinprogress;
1899 	uint32_t *wmi_events;
1900 #ifndef CONFIG_MCL
1901 	uint32_t *pdev_param;
1902 	uint32_t *vdev_param;
1903 #endif
1904 	uint32_t *services;
1905 	struct wmi_soc *soc;
1906 	uint16_t wmi_max_cmds;
1907 	struct dentry *debugfs_de[NUM_DEBUG_INFOS];
1908 #ifdef WMI_EXT_DBG
1909 	int wmi_ext_dbg_msg_queue_size;
1910 	qdf_list_t wmi_ext_dbg_msg_queue;
1911 	qdf_spinlock_t wmi_ext_dbg_msg_queue_lock;
1912 	qdf_dentry_t wmi_ext_dbg_dentry;
1913 #endif /*WMI_EXT_DBG*/
1914 };
1915 
1916 #define WMI_MAX_RADIOS 3
1917 struct wmi_soc {
1918 	struct wlan_objmgr_psoc *wmi_psoc;
1919 	void *scn_handle;    /* handle to device */
1920 	qdf_atomic_t num_pdevs;
1921 	enum wmi_target_type target_type;
1922 	void *htc_handle;
1923 	uint32_t event_id[WMI_UNIFIED_MAX_EVENT];
1924 	wmi_unified_event_handler event_handler[WMI_UNIFIED_MAX_EVENT];
1925 	uint32_t max_event_idx;
1926 	enum wmi_rx_exec_ctx ctx[WMI_UNIFIED_MAX_EVENT];
1927 	qdf_spinlock_t ctx_lock;
1928 	struct wmi_unified *wmi_pdev[WMI_MAX_RADIOS];
1929 	HTC_ENDPOINT_ID wmi_endpoint_id[WMI_MAX_RADIOS];
1930 	uint16_t max_msg_len[WMI_MAX_RADIOS];
1931 	struct wmi_ops *ops;
1932 	const uint32_t *svc_ids;
1933 	uint32_t wmi_events[wmi_events_max];
1934 	/* WMI service bitmap received from target */
1935 	uint32_t *wmi_service_bitmap;
1936 	uint32_t *wmi_ext_service_bitmap;
1937 #ifndef CONFIG_MCL
1938 	uint32_t pdev_param[wmi_pdev_param_max];
1939 	uint32_t vdev_param[wmi_vdev_param_max];
1940 #endif
1941 	uint32_t services[wmi_services_max];
1942 	uint16_t wmi_max_cmds;
1943 	uint32_t soc_idx;
1944 };
1945 
1946 /**
1947  * wmi_mtrace() - Wrappper function for qdf_mtrace api
1948  * @message_id: 32-Bit Wmi message ID
1949  * @vdev_id: Vdev ID
1950  * @data: Actual message contents
1951  *
1952  * This function converts the 32-bit WMI message ID in 15-bit message ID
1953  * format for qdf_mtrace as in qdf_mtrace message there are only 15
1954  * bits reserved for message ID.
1955  * out of these 15-bits, 8-bits (From MSB) specifies the WMI_GRP_ID
1956  * and remaining 7-bits specifies the actual WMI command. With this
1957  * notation there can be maximum 256 groups and each group can have
1958  * max 128 commands can be supported.
1959  *
1960  * Return: None
1961  */
1962 void wmi_mtrace(uint32_t message_id, uint16_t vdev_id, uint32_t data);
1963 
1964 void wmi_unified_register_module(enum wmi_target_type target_type,
1965 			void (*wmi_attach)(wmi_unified_t wmi_handle));
1966 void wmi_tlv_init(void);
1967 void wmi_non_tlv_init(void);
1968 #ifdef WMI_NON_TLV_SUPPORT
1969 /* ONLY_NON_TLV_TARGET:TLV attach dummy function definition for case when
1970  * driver supports only NON-TLV target (WIN mainline) */
1971 #define wmi_tlv_attach(x) qdf_print("TLV Unavailable")
1972 #else
1973 void wmi_tlv_attach(wmi_unified_t wmi_handle);
1974 #endif
1975 void wmi_non_tlv_attach(wmi_unified_t wmi_handle);
1976 
1977 #ifdef FEATURE_WLAN_EXTSCAN
1978 void wmi_extscan_attach_tlv(struct wmi_unified *wmi_handle);
1979 #else
1980 static inline void wmi_extscan_attach_tlv(struct wmi_unified *wmi_handle)
1981 {
1982 }
1983 #endif
1984 
1985 #ifdef WMI_SMART_ANT_SUPPORT
1986 void wmi_smart_ant_attach_tlv(struct wmi_unified *wmi_handle);
1987 #else
1988 static inline void wmi_smart_ant_attach_tlv(struct wmi_unified *wmi_handle)
1989 {
1990 }
1991 #endif
1992 
1993 #ifdef WMI_DBR_SUPPORT
1994 void wmi_dbr_attach_tlv(struct wmi_unified *wmi_handle);
1995 #else
1996 static inline void wmi_dbr_attach_tlv(struct wmi_unified *wmi_handle)
1997 {
1998 }
1999 #endif
2000 
2001 #ifdef WMI_ATF_SUPPORT
2002 void wmi_atf_attach_tlv(struct wmi_unified *wmi_handle);
2003 #else
2004 static inline void wmi_atf_attach_tlv(struct wmi_unified *wmi_handle)
2005 {
2006 }
2007 #endif
2008 
2009 #ifdef WMI_AP_SUPPORT
2010 void wmi_ap_attach_tlv(struct wmi_unified *wmi_handle);
2011 #else
2012 static inline void wmi_ap_attach_tlv(struct wmi_unified *wmi_handle)
2013 {
2014 }
2015 #endif
2016 
2017 #ifdef WLAN_FEATURE_DSRC
2018 void wmi_ocb_attach_tlv(wmi_unified_t wmi_handle);
2019 #else
2020 static inline void wmi_ocb_attach_tlv(wmi_unified_t wmi_handle)
2021 {
2022 }
2023 #endif
2024 
2025 #ifdef WLAN_FEATURE_NAN_CONVERGENCE
2026 void wmi_nan_attach_tlv(wmi_unified_t wmi_handle);
2027 #else
2028 static inline void wmi_nan_attach_tlv(wmi_unified_t wmi_handle)
2029 {
2030 }
2031 #endif
2032 
2033 #ifdef FEATURE_P2P_LISTEN_OFFLOAD
2034 void wmi_p2p_listen_offload_attach_tlv(wmi_unified_t wmi_handle);
2035 #else
2036 static inline
2037 void wmi_p2p_listen_offload_attach_tlv(wmi_unified_t wmi_handle)
2038 {
2039 }
2040 #endif
2041 
2042 #ifdef CONVERGED_P2P_ENABLE
2043 void wmi_p2p_attach_tlv(wmi_unified_t wmi_handle);
2044 #else
2045 static inline void wmi_p2p_attach_tlv(struct wmi_unified *wmi_handle)
2046 {
2047 }
2048 #endif
2049 
2050 #ifdef FEATURE_LFR_SUBNET_DETECTION
2051 void wmi_lfr_subnet_detection_attach_tlv(wmi_unified_t wmi_handle);
2052 #else
2053 static inline
2054 void wmi_lfr_subnet_detection_attach_tlv(struct wmi_unified *wmi_handle)
2055 {
2056 }
2057 #endif
2058 
2059 #ifdef FEATURE_RSSI_MONITOR
2060 void wmi_rssi_monitor_attach_tlv(wmi_unified_t wmi_handle);
2061 #else
2062 static inline
2063 void wmi_rssi_monitor_attach_tlv(struct wmi_unified *wmi_handle)
2064 {
2065 }
2066 #endif
2067 
2068 #ifdef FEATURE_WLAN_ESE
2069 void wmi_ese_attach_tlv(wmi_unified_t wmi_handle);
2070 #else
2071 static inline void wmi_ese_attach_tlv(struct wmi_unified *wmi_handle)
2072 {
2073 }
2074 #endif
2075 
2076 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
2077 void wmi_roam_offload_attach_tlv(wmi_unified_t wmi_handle);
2078 #else
2079 static inline
2080 void wmi_roam_offload_attach_tlv(struct wmi_unified *wmi_handle)
2081 {
2082 }
2083 #endif
2084 
2085 #ifdef WLAN_FEATURE_FILS_SK
2086 void wmi_fils_sk_attach_tlv(wmi_unified_t wmi_handle);
2087 #else
2088 static inline void wmi_fils_sk_attach_tlv(struct wmi_unified *wmi_handle)
2089 {
2090 }
2091 #endif
2092 
2093 #ifdef WMI_ROAM_SUPPORT
2094 void wmi_roam_attach_tlv(struct wmi_unified *wmi_handle);
2095 #else
2096 static inline void wmi_roam_attach_tlv(struct wmi_unified *wmi_handle)
2097 {
2098 }
2099 #endif
2100 
2101 #ifdef WMI_CONCURRENCY_SUPPORT
2102 void wmi_concurrency_attach_tlv(struct wmi_unified *wmi_handle);
2103 #else
2104 static inline void wmi_concurrency_attach_tlv(struct wmi_unified *wmi_handle)
2105 {
2106 }
2107 #endif
2108 
2109 #ifdef FEATURE_WLAN_D0WOW
2110 void wmi_d0wow_attach_tlv(struct wmi_unified *wmi_handle);
2111 #else
2112 static inline void wmi_d0wow_attach_tlv(struct wmi_unified *wmi_handle)
2113 {
2114 }
2115 #endif
2116 
2117 #ifdef FEATURE_WLAN_RA_FILTERING
2118 void wmi_ra_filtering_attach_tlv(struct wmi_unified *wmi_handle);
2119 #else
2120 static inline
2121 void wmi_ra_filtering_attach_tlv(struct wmi_unified *wmi_handle)
2122 {
2123 }
2124 #endif
2125 
2126 #ifdef FEATURE_WLAN_LPHB
2127 void wmi_lphb_attach_tlv(struct wmi_unified *wmi_handle);
2128 #else
2129 static inline void wmi_lphb_attach_tlv(struct wmi_unified *wmi_handle)
2130 {
2131 }
2132 #endif
2133 
2134 #ifdef WLAN_FEATURE_PACKET_FILTERING
2135 void wmi_packet_filtering_attach_tlv(struct wmi_unified *wmi_handle);
2136 #else
2137 static inline
2138 void wmi_packet_filtering_attach_tlv(struct wmi_unified *wmi_handle)
2139 {
2140 }
2141 #endif
2142 
2143 #ifdef WLAN_FEATURE_EXTWOW_SUPPORT
2144 void wmi_extwow_attach_tlv(struct wmi_unified *wmi_handle);
2145 #else
2146 static inline void wmi_extwow_attach_tlv(struct wmi_unified *wmi_handle)
2147 {
2148 }
2149 #endif
2150 
2151 #ifdef WLAN_POWER_MANAGEMENT_OFFLOAD
2152 void wmi_pmo_attach_tlv(struct wmi_unified *wmi_handle);
2153 #else
2154 static inline void wmi_pmo_attach_tlv(struct wmi_unified *wmi_handle)
2155 {
2156 }
2157 #endif
2158 
2159 #ifdef CONVERGED_TDLS_ENABLE
2160 void wmi_tdls_attach_tlv(struct wmi_unified *wmi_handle);
2161 #else
2162 static inline void wmi_tdls_attach_tlv(struct wmi_unified *wmi_handle)
2163 {
2164 }
2165 #endif
2166 
2167 #ifdef WLAN_FEATURE_DISA
2168 void wmi_disa_attach_tlv(struct wmi_unified *wmi_handle);
2169 #else
2170 static inline void wmi_disa_attach_tlv(struct wmi_unified *wmi_handle)
2171 {
2172 }
2173 #endif
2174 
2175 #ifdef WLAN_POLICY_MGR_ENABLE
2176 void wmi_policy_mgr_attach_tlv(struct wmi_unified *wmi_handle);
2177 #else
2178 static inline
2179 void wmi_policy_mgr_attach_tlv(struct wmi_unified *wmi_handle)
2180 {
2181 }
2182 #endif
2183 
2184 #ifdef WMI_STA_SUPPORT
2185 void wmi_sta_attach_tlv(struct wmi_unified *wmi_handle);
2186 #else
2187 static inline void wmi_sta_attach_tlv(struct wmi_unified *wmi_handle)
2188 {
2189 }
2190 #endif
2191 
2192 /**
2193  * wmi_align() - provides word aligned parameter
2194  * @param: parameter to be aligned
2195  *
2196  * Return: word aligned parameter
2197  */
2198 static inline uint32_t wmi_align(uint32_t param)
2199 {
2200 	return roundup(param, sizeof(uint32_t));
2201 }
2202 
2203 /**
2204  * wmi_vdev_map_to_vdev_id() - Provides vdev id corresponding to idx
2205  *                             from vdev map
2206  * @vdev_map: Bitmask containing information of active vdev ids
2207  * @idx: Index referring to the i'th bit set from LSB in vdev map
2208  *
2209  * This API returns the vdev id for the i'th bit set from LSB in vdev map.
2210  * Index runs through 1 from maximum number of vdevs set in the vdev map
2211  *
2212  * Return: vdev id of the vdev object
2213  */
2214 static inline uint32_t wmi_vdev_map_to_vdev_id(uint32_t vdev_map,
2215 					       uint32_t idx)
2216 {
2217 	uint32_t vdev_count = 0, vdev_set = 0, vdev_id = WLAN_INVALID_VDEV_ID;
2218 
2219 	while (vdev_map) {
2220 		vdev_set += (vdev_map & 0x1);
2221 		if (vdev_set == (idx+1)) {
2222 			vdev_id = vdev_count;
2223 			break;
2224 		}
2225 		vdev_map >>= 1;
2226 		vdev_count++;
2227 	}
2228 
2229 	return vdev_id;
2230 }
2231 
2232 /**
2233  * wmi_vdev_map_to_num_vdevs() - Provides number of vdevs active based on the
2234  *                               vdev map received from FW
2235  * @vdev_map: Bitmask containing information of active vdev ids
2236  *
2237  * Return: Number of vdevs set in the vdev bit mask
2238  */
2239 static inline uint32_t wmi_vdev_map_to_num_vdevs(uint32_t vdev_map)
2240 {
2241 	uint32_t num_vdevs = 0;
2242 
2243 	while (vdev_map) {
2244 		num_vdevs += (vdev_map & 0x1);
2245 		vdev_map >>= 1;
2246 	}
2247 
2248 	return num_vdevs;
2249 }
2250 
2251 #ifdef WMI_EXT_DBG
2252 
2253 /**
2254  * wmi_ext_dbg_msg_get() - Allocate memory for wmi debug msg
2255  *
2256  * @buflen: Length of WMI message buffer
2257  *
2258  * Return: Allocated msg buffer else NULL on failure.
2259  */
2260 static inline struct wmi_ext_dbg_msg *wmi_ext_dbg_msg_get(uint32_t buflen)
2261 {
2262 	return qdf_mem_malloc(sizeof(struct wmi_ext_dbg_msg) + buflen);
2263 }
2264 
2265 /**
2266  * wmi_ext_dbg_msg_put() - Free wmi debug msg buffer
2267  *
2268  * @msg: wmi message buffer to be freed
2269  *
2270  * Return: none
2271  */
2272 static inline void wmi_ext_dbg_msg_put(struct wmi_ext_dbg_msg *msg)
2273 {
2274 	qdf_mem_free(msg);
2275 }
2276 
2277 #else
2278 
2279 static inline QDF_STATUS wmi_ext_dbg_msg_cmd_record(struct wmi_unified
2280 						    *wmi_handle,
2281 						    uint8_t *buf, uint32_t len)
2282 {
2283 	return QDF_STATUS_SUCCESS;
2284 }
2285 
2286 static inline QDF_STATUS wmi_ext_dbg_msg_event_record(struct wmi_unified
2287 						      *wmi_handle,
2288 						      uint8_t *buf,
2289 						      uint32_t len)
2290 {
2291 	return QDF_STATUS_SUCCESS;
2292 }
2293 
2294 static inline QDF_STATUS wmi_ext_dbgfs_init(struct wmi_unified *wmi_handle)
2295 {
2296 	return QDF_STATUS_SUCCESS;
2297 }
2298 
2299 static inline QDF_STATUS wmi_ext_dbgfs_deinit(struct wmi_unified *wmi_handle)
2300 {
2301 	return QDF_STATUS_SUCCESS;
2302 }
2303 
2304 #endif /*WMI_EXT_DBG */
2305 #endif
2306