Browse Source

qcacld-3.0: Ignore target suspend if fw is down

Ignore target suspend timeout if fw is down such that
system can recover gracefully.

Change-Id: I26c3a1fb34483a46cd4f9d48d17408b688e5ad6c
CRs-Fixed: 2130097
Rajeev Kumar 7 years ago
parent
commit
6dd45a84ec
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/cds/src/cds_api.c

+ 5 - 0
core/cds/src/cds_api.c

@@ -1849,6 +1849,11 @@ static void cds_trigger_recovery_work(void *param)
 		return;
 	}
 
+	if (cds_is_fw_down()) {
+		cds_err("FW is down; ignoring recovery trigger");
+		return;
+	}
+
 	qdf = cds_get_context(QDF_MODULE_ID_QDF_DEVICE);
 	if (!qdf) {
 		cds_err("Qdf context is null");