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:
@@ -140,13 +140,10 @@ static void target_if_vdev_mgr_rsp_timer_cb(void *arg)
|
|||||||
wlan_psoc_get_id(psoc), vdev_id,
|
wlan_psoc_get_id(psoc), vdev_id,
|
||||||
string_from_rsp_bit(rsp_pos));
|
string_from_rsp_bit(rsp_pos));
|
||||||
qdf_mem_set(¶m, sizeof(param), 0);
|
qdf_mem_set(¶m, sizeof(param), 0);
|
||||||
/* RECOVERY_SIM_SELF_RECOVERY */
|
/* RECOVERY_SIM_ASSERT */
|
||||||
param.type = 0x08;
|
param.type = 0x01;
|
||||||
wmi_crash_inject(wmi_handle, ¶m);
|
wmi_crash_inject(wmi_handle, ¶m);
|
||||||
}
|
} else if (target_if_vdev_mgr_is_panic_on_bug()) {
|
||||||
|
|
||||||
/* Host panic to collect host stacktrace */
|
|
||||||
if (target_if_vdev_mgr_is_panic_on_bug()) {
|
|
||||||
QDF_DEBUG_PANIC("PSOC_%d VDEV_%d: Panic, %s response timeout",
|
QDF_DEBUG_PANIC("PSOC_%d VDEV_%d: Panic, %s response timeout",
|
||||||
wlan_psoc_get_id(psoc),
|
wlan_psoc_get_id(psoc),
|
||||||
vdev_id, string_from_rsp_bit(rsp_pos));
|
vdev_id, string_from_rsp_bit(rsp_pos));
|
||||||
|
Reference in New Issue
Block a user