From b7b8edaee781ebe38728f4950362491733ec4c70 Mon Sep 17 00:00:00 2001 From: Sachin Ahuja Date: Thu, 17 Dec 2020 13:15:12 +0530 Subject: [PATCH] qcacld-3.0: Return failure for runtime resume if FW is down Currently when the FW is down, runtime resume return success status but does not send the power exit and WOW wake up from sleep command to FW. So WMI_WOW_SET_ACTION_WAKE_UP_CMDID command is sent to FW which leads to panic. To avoid this issue, send the correct error status for runtime resume if FW is down. CRs-Fixed: 2830614 Change-Id: Id27d2648427b32d32c15370fbb170fafec9450d2 --- components/pmo/core/src/wlan_pmo_suspend_resume.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/pmo/core/src/wlan_pmo_suspend_resume.c b/components/pmo/core/src/wlan_pmo_suspend_resume.c index 3d7b358e6e16..f9d58d024e80 100644 --- a/components/pmo/core/src/wlan_pmo_suspend_resume.c +++ b/components/pmo/core/src/wlan_pmo_suspend_resume.c @@ -1352,6 +1352,7 @@ QDF_STATUS pmo_core_psoc_bus_resume_req(struct wlan_objmgr_psoc *psoc, /* If target was not suspended, bail out */ if (qdf_is_fw_down() || !pmo_tgt_is_target_suspended(psoc)) { pmo_psoc_put_ref(psoc); + status = QDF_STATUS_E_AGAIN; goto out; }