summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/wma/src/wma_dev_if.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c
index 2d2a49336f51..365a8d819a51 100644
--- a/core/wma/src/wma_dev_if.c
+++ b/core/wma/src/wma_dev_if.c
@@ -564,6 +564,9 @@ static QDF_STATUS wma_handle_vdev_detach(tp_wma_handle wma_handle,
status = wmi_unified_vdev_delete_send(wma_handle->wmi_handle, vdev_id);
if (QDF_IS_STATUS_ERROR(status)) {
WMA_LOGE("Unable to remove an interface");
+ ol_txrx_vdev_detach(iface->handle, NULL, NULL);
+ iface->handle = NULL;
+ wma_handle->interfaces[vdev_id].is_vdev_valid = false;
goto out;
}