diff --git a/wmi_unified_api.h b/wmi_unified_api.h index b99c5e2a24..9e445f7a20 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -1226,4 +1226,7 @@ QDF_STATUS wmi_extract_vdev_stats(void *wmi_hdl, void *evt_buf, QDF_STATUS wmi_extract_vdev_extd_stats(void *wmi_hdl, void *evt_buf, uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats); + +QDF_STATUS wmi_unified_send_power_dbg_cmd(void *wmi_hdl, + struct wmi_power_dbg_params *param); #endif /* _WMI_UNIFIED_API_H_ */ diff --git a/wmi_unified_param.h b/wmi_unified_param.h index d447ec3825..54fc8ecd47 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -6293,5 +6293,22 @@ typedef struct { typedef struct { uint32_t channel; } wmi_host_ath_dcs_cw_int; + +#define WMI_MAX_POWER_DBG_ARGS 8 + +/** + * struct wmi_power_dbg_params - power debug command parameter + * @pdev_id: subsystem identifier + * @module_id: parameter id + * @num_arg: no of arguments + * @args: arguments + */ +struct wmi_power_dbg_params { + uint32_t pdev_id; + uint32_t module_id; + uint32_t num_args; + uint32_t args[WMI_MAX_POWER_DBG_ARGS]; +}; + #endif /* _WMI_UNIFIED_PARAM_H_ */ diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 85497f7522..65b50a2d0b 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1020,6 +1020,9 @@ QDF_STATUS (*extract_tx_data_traffic_ctrl_ev)(wmi_unified_t wmi_handle, QDF_STATUS (*extract_vdev_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf, uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats); + +QDF_STATUS (*send_power_dbg_cmd)(wmi_unified_t wmi_handle, + struct wmi_power_dbg_params *param); }; struct target_abi_version {