From 592a88ad7b4d0633a843f2036332adafe32e7f47 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 f21bd9e4e9..bcebe369a1 100644 --- a/components/pmo/core/src/wlan_pmo_suspend_resume.c +++ b/components/pmo/core/src/wlan_pmo_suspend_resume.c @@ -1347,6 +1347,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; }