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
This commit is contained in:
Sachin Ahuja
2020-12-17 13:15:12 +05:30
committad av snandini
förälder 2ec491db0d
incheckning 592a88ad7b

Visa fil

@@ -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;
}