qcacmn: Avoid host panic on vdev request timeout

Avoid host panic on vdev request timeout when target
assert is triggered and trigger target assert using
RECOVERY_SIM_ASSERT, else host panic is not allowing
target dump in lithium case.

Change-Id: I32c2de358ec8839ad7a522c31dd359436ba16d08
CRs-Fixed: 2515401
This commit is contained in:
Naga
2019-08-26 18:48:35 +05:30
committed by nshrivas
parent 7697dab24e
commit f01c83d57e

View File

@@ -140,13 +140,10 @@ static void target_if_vdev_mgr_rsp_timer_cb(void *arg)
wlan_psoc_get_id(psoc), vdev_id,
string_from_rsp_bit(rsp_pos));
qdf_mem_set(&param, sizeof(param), 0);
/* RECOVERY_SIM_SELF_RECOVERY */
param.type = 0x08;
/* RECOVERY_SIM_ASSERT */
param.type = 0x01;
wmi_crash_inject(wmi_handle, &param);
}
/* Host panic to collect host stacktrace */
if (target_if_vdev_mgr_is_panic_on_bug()) {
} else if (target_if_vdev_mgr_is_panic_on_bug()) {
QDF_DEBUG_PANIC("PSOC_%d VDEV_%d: Panic, %s response timeout",
wlan_psoc_get_id(psoc),
vdev_id, string_from_rsp_bit(rsp_pos));