From 954de3b680326c50e5ce82a072900d51f1c5b02a Mon Sep 17 00:00:00 2001 From: Bapiraju Alla Date: Fri, 1 May 2020 12:17:11 +0530 Subject: [PATCH] qcacld-3.0: Check for fw down during runtime suspend Currently there is no check for fw down during runtime suspend. This is causing issue when host has already received fw down event due to injected fw crash. To avoid this, add check for fw down during runtime suspend. Change-Id: Ic518f7fc95fa3ff9f9a3bd8973e9e37e9ebcf52f CRs-Fixed: 2676841 --- components/pmo/core/src/wlan_pmo_suspend_resume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/pmo/core/src/wlan_pmo_suspend_resume.c b/components/pmo/core/src/wlan_pmo_suspend_resume.c index 73ac668fffd7..77781652afce 100644 --- a/components/pmo/core/src/wlan_pmo_suspend_resume.c +++ b/components/pmo/core/src/wlan_pmo_suspend_resume.c @@ -1295,7 +1295,7 @@ QDF_STATUS pmo_core_psoc_bus_resume_req(struct wlan_objmgr_psoc *psoc, pmo_core_update_wow_initial_wake_up(psoc_ctx, 0); /* If target was not suspended, bail out */ - if (!pmo_tgt_is_target_suspended(psoc)) { + if (qdf_is_fw_down() || !pmo_tgt_is_target_suspended(psoc)) { pmo_psoc_put_ref(psoc); goto out; }