qcacmn: Move multipass deinit to vdev detach

Multipass init is called from vdev attach and
multipass deinit is called from tx vdev detach

To maintain symmetry between init and deinit
move multipass deinit to vdev detch

CRs-Fixed: 2840338
Change-Id: I18657497b9e09ec5cc75d245765f6d0fd7d061fd
This commit is contained in:
phadiman
2021-01-11 20:19:44 +05:30
committed by snandini
parent 6ee7aeb0bd
commit e4eda79524
2 changed files with 2 additions and 1 deletions

View File

@@ -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); qdf_spin_unlock_bh(&pdev->neighbour_peer_mutex);
dp_tx_vdev_multipass_deinit(vdev);
if (vdev->vdev_dp_ext_handle) { if (vdev->vdev_dp_ext_handle) {
qdf_mem_free(vdev->vdev_dp_ext_handle); qdf_mem_free(vdev->vdev_dp_ext_handle);
vdev->vdev_dp_ext_handle = NULL; vdev->vdev_dp_ext_handle = NULL;

View File

@@ -4858,7 +4858,6 @@ QDF_STATUS dp_tx_vdev_detach(struct dp_vdev *vdev)
/* Reset TX desc associated to this Vdev as NULL */ /* Reset TX desc associated to this Vdev as NULL */
dp_tx_desc_flush(pdev, vdev, false); dp_tx_desc_flush(pdev, vdev, false);
dp_tx_vdev_multipass_deinit(vdev);
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }