diff --git a/target_if/pmo/inc/target_if_pmo.h b/target_if/pmo/inc/target_if_pmo.h index 514d8c940abd..4f738aaca833 100644 --- a/target_if/pmo/inc/target_if_pmo.h +++ b/target_if/pmo/inc/target_if_pmo.h @@ -337,6 +337,16 @@ QDF_STATUS target_if_pmo_psoc_send_wow_enable_req(struct wlan_objmgr_psoc *psoc, QDF_STATUS target_if_pmo_psoc_send_suspend_req(struct wlan_objmgr_psoc *psoc, struct pmo_suspend_params *param); +/** + * target_if_pmo_set_runtime_pm_in_progress() - set runtime pm status + * @psoc: objmgr psoc + * @value: set runtime pm status + * + * Return: none + */ +void target_if_pmo_set_runtime_pm_in_progress(struct wlan_objmgr_psoc *psoc, + bool value); + /** * target_if_pmo_get_runtime_pm_in_progress() - fp to get runtime pm status * @psoc: objmgr psoc diff --git a/target_if/pmo/src/target_if_pmo_main.c b/target_if/pmo/src/target_if_pmo_main.c index ee11f44cead7..45269794930c 100644 --- a/target_if/pmo/src/target_if_pmo_main.c +++ b/target_if/pmo/src/target_if_pmo_main.c @@ -86,6 +86,8 @@ void target_if_pmo_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops) target_if_pmo_psoc_send_wow_enable_req; pmo_tx_ops->psoc_send_supend_req = target_if_pmo_psoc_send_suspend_req; + pmo_tx_ops->psoc_set_runtime_pm_in_progress = + target_if_pmo_set_runtime_pm_in_progress; pmo_tx_ops->psoc_get_runtime_pm_in_progress = target_if_pmo_get_runtime_pm_in_progress; pmo_tx_ops->psoc_send_host_wakeup_ind = diff --git a/target_if/pmo/src/target_if_pmo_suspend_resume.c b/target_if/pmo/src/target_if_pmo_suspend_resume.c index a6bec81f1f3b..3fd48cb3f17b 100644 --- a/target_if/pmo/src/target_if_pmo_suspend_resume.c +++ b/target_if/pmo/src/target_if_pmo_suspend_resume.c @@ -160,6 +160,13 @@ QDF_STATUS target_if_pmo_psoc_send_suspend_req( TGT_WILDCARD_PDEV_ID); } +void target_if_pmo_set_runtime_pm_in_progress(struct wlan_objmgr_psoc *psoc, + bool value) +{ + return wmi_set_runtime_pm_inprogress(GET_WMI_HDL_FROM_PSOC(psoc), + value); +} + bool target_if_pmo_get_runtime_pm_in_progress( struct wlan_objmgr_psoc *psoc) {