浏览代码

qcacld-3.0: skip notifying SSR framework when wlan unloading is ongoing

Fw assert and unloading can occur at same moment, there is no need
to recover if wlan unloading is ongoing, so skip notifying SSR framework
in such case.

Change-Id: I2176d1505e8e358f4436277e4d0b706923596f27
CRs-Fixed: 2087634
Kai Liu 7 年之前
父节点
当前提交
1be510abee
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      core/bmi/src/ol_fw.c

+ 8 - 2
core/bmi/src/ol_fw.c

@@ -646,8 +646,14 @@ void ramdump_work_handler(void *data)
 
 	BMI_ERR("%s: RAM dump collecting completed!", __func__);
 
-	/* notify SSR framework the target has crashed. */
-	pld_device_crashed(qdf_dev->dev);
+	/*
+	 * if unloading is in progress, then skip SSR,
+	 * otherwise notify SSR framework the target has crashed.
+	 */
+	if (cds_is_load_or_unload_in_progress())
+		cds_set_recovery_in_progress(false);
+	else
+		pld_device_crashed(qdf_dev->dev);
 	return;
 
 out_fail: