浏览代码

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
Sachin Ahuja 4 年之前
父节点
当前提交
592a88ad7b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      components/pmo/core/src/wlan_pmo_suspend_resume.c

+ 1 - 0
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;
 	}