From 505b15b861ee5cd5c7a63e1a3e2bb4c7c07c7dd2 Mon Sep 17 00:00:00 2001 From: Karthik Kantamneni Date: Mon, 15 Oct 2018 19:38:17 +0530 Subject: [PATCH] qcacld-3.0: Fix vdev destroy during ssr reinit During hdd wlan reinit VDEV delete command is not sent to firmware since cds_driver_recovery is True and it is set to False at later stage. To fix this, remove recovery check in wma_vdev_detach to send WMI command to FW as WMI is active during reinit phase. Change-Id: I94b7437edbf0c5bccbc469ce01940b14b46258fb CRs-Fixed: 2333475 --- core/wma/src/wma_dev_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c index 785be73e2520..35de3136ebca 100644 --- a/core/wma/src/wma_dev_if.c +++ b/core/wma/src/wma_dev_if.c @@ -818,7 +818,7 @@ QDF_STATUS wma_vdev_detach(tp_wma_handle wma_handle, * Cleanup the ObjMgr Peers for the current vdev and detach the * CDP Vdev. */ - if (cds_is_driver_recovering() || !cds_is_target_ready()) { + if (!cds_is_target_ready()) { wma_force_objmgr_vdev_peer_cleanup(wma_handle, vdev_id); wma_release_vdev_ref(wma_handle, vdev_id); wma_cdp_vdev_detach(soc, wma_handle, vdev_id);