diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 1789bc7f25..1bd12f3688 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -126,19 +126,32 @@ enum wmi_rx_exec_ctx { }; /** - * attach for unified WMI - * - * @param scn_handle : handle to SCN. + * struct wmi_unified_attach_params - wmi init parameters + * @param osdev : NIC device * @param target_type : type of supported wmi command * @param use_cookie : flag to indicate cookie based allocation * @param ops : handle to wmi ops * @psoc : objmgr psoc - * @return opaque handle. + * @max_commands : max commands + */ +struct wmi_unified_attach_params { + osdev_t osdev; + enum wmi_target_type target_type; + bool use_cookie; + struct wmi_rx_ops *rx_ops; + struct wlan_objmgr_psoc *psoc; + uint16_t max_commands; +}; + +/** + * attach for unified WMI + * + * @param scn_handle : handle to SCN. + * @param params : attach params for WMI + * */ void *wmi_unified_attach(void *scn_handle, - osdev_t osdev, enum wmi_target_type target_type, - bool use_cookie, struct wmi_rx_ops *ops, - struct wlan_objmgr_psoc *psoc); + struct wmi_unified_attach_params *params); diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 25bc0c4e9b..64f686b970 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1641,6 +1641,7 @@ struct wmi_unified { #endif uint32_t *services; struct wmi_soc *soc; + uint16_t wmi_max_cmds; }; #define WMI_MAX_RADIOS 3 @@ -1669,6 +1670,7 @@ struct wmi_soc { uint32_t vdev_param[wmi_vdev_param_max]; #endif uint32_t services[wmi_services_max]; + uint16_t wmi_max_cmds; };