Jelajahi Sumber

qcacld-3.0: Block wmi transactions as part of trigger recovery work

Currently host waits for the firmware down event as part of the
recovery sequence to block the wmi transactions, if there is any delay
in triggering recovery some wmi commands can leak to firmware in this
window resulting in abnormal behaviour in the firmware.

So, block the wmi transactions after the recovery is initiated.

Change-Id: I502a8331111a6a61f31f35c4a1b64646410925f1
CRs-Fixed: 3444156
Arun Kumar Khandavalli 2 tahun lalu
induk
melakukan
3900e1eb53
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      core/cds/src/cds_api.c

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

@@ -2036,6 +2036,9 @@ static void cds_trigger_recovery_handler(const char *func, const uint32_t line)
 		cds_force_assert_target(qdf);
 	cds_set_assert_target_in_progress(false);
 
+	/* Do not wait for firmware down block wmi transactions */
+	wma_wmi_stop();
+
 	/*
 	 * if *wlan* recovery is disabled, once all the required registers are
 	 * read via the platform driver check and crash the system.