diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 41026cfe76..855c223072 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -5868,6 +5868,8 @@ static QDF_STATUS dp_vdev_detach_wifi3(struct cdp_soc_t *cdp_soc, } qdf_spin_unlock_bh(&pdev->neighbour_peer_mutex); + dp_tx_vdev_multipass_deinit(vdev); + if (vdev->vdev_dp_ext_handle) { qdf_mem_free(vdev->vdev_dp_ext_handle); vdev->vdev_dp_ext_handle = NULL; diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index f509af905d..dc6ca224ef 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -4858,7 +4858,6 @@ QDF_STATUS dp_tx_vdev_detach(struct dp_vdev *vdev) /* Reset TX desc associated to this Vdev as NULL */ dp_tx_desc_flush(pdev, vdev, false); - dp_tx_vdev_multipass_deinit(vdev); return QDF_STATUS_SUCCESS; }