Browse Source

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 years ago
parent
commit
1be510abee
1 changed files with 8 additions and 2 deletions
  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: