qcacmn: Use correct vdev_id to fetch the vdev_rsp timer info

Fetch correct vdev_rsp timer info in case of multivdev restart case
using the right vdev_id.

Change-Id: I0d9cbb886ffcc66ada354e6db2b084beb2417bcb
This commit is contained in:
Akshay Kosigi
2019-12-12 17:23:49 +05:30
committed by nshrivas
parent c41566955e
commit 28d1d127aa

View File

@@ -876,8 +876,9 @@ static int32_t target_if_vdev_mgr_multi_vdev_restart_get_ref(
return last_vdev_idx;
}
vdev_rsp = rx_ops->psoc_get_vdev_response_timer_info(psoc,
vdev_idx);
vdev_rsp = rx_ops->psoc_get_vdev_response_timer_info(
psoc,
wlan_vdev_get_id(tvdev));
if (!vdev_rsp) {
mlme_err("VDEV_%d PSOC_%d No vdev rsp timer",
vdev_idx, wlan_psoc_get_id(psoc));