From ffb9ec5caee140a8dd7fd28583360f9ffedcf0d7 Mon Sep 17 00:00:00 2001 From: Sai Rupesh Chevuru Date: Mon, 18 Oct 2021 12:17:12 +0530 Subject: [PATCH] qcacmn: use appropriate MOD_ID while updating primary VDEV for a peer In the case of MLO updating the mod id param, where initial link is not the primary link. Change-Id: I2fe21ffb2ebf3a081da7f07a4828d41f1bcea98e --- dp/wifi3.0/dp_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 665b321e9c..fd5f811cd4 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -6694,13 +6694,13 @@ QDF_STATUS dp_peer_mlo_setup( /* relase the ref to original dp_vdev */ dp_vdev_unref_delete(soc, mld_peer->vdev, - DP_MOD_ID_CDP); + DP_MOD_ID_CHILD); /* * get the ref to new dp_vdev, * increase dp_vdev ref_cnt */ mld_peer->vdev = dp_vdev_get_ref_by_id(soc, vdev_id, - DP_MOD_ID_CDP); + DP_MOD_ID_CHILD); } /* associate mld and link peer */