Browse Source

qcacld-3.0: Release WLAN_LEGACY_WMA_ID ref before vdev del command

In legacy code WLAN_LEGACY_WMA_ID reference was released after
sending vdev delete command to firmware. Now with converged vdev
manager, if wmi service "wmi_service_sync_delete_cmds" is not enabled
then vdev delete response is sent to upper layer through target_if.

Hence WLAN_LEGACY_WMA_ID reference for vdev is released before sending
vdev delete command and then wma_txrx_node for the vdev is cleaned up.

Change-Id: I717a7911a5139dc5145e7702e831f6f026c8f3aa
CRs-Fixed: 2518231
Abhishek Ambure 5 years ago
parent
commit
bfcf12f03b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/wma/src/wma_dev_if.c

+ 1 - 1
core/wma/src/wma_dev_if.c

@@ -720,13 +720,13 @@ static QDF_STATUS wma_handle_vdev_detach(tp_wma_handle wma_handle,
 	iface->del_staself_req = del_vdev_req_param;
 	wlan_vdev_set_dp_handle(iface->vdev, NULL);
 	wma_cdp_vdev_detach(soc, wma_handle, vdev_id);
+	wma_release_vdev_ref(iface);
 
 	status = vdev_mgr_delete_send(vdev_mlme);
 	if (QDF_IS_STATUS_ERROR(status)) {
 		WMA_LOGE("Unable to remove an interface");
 		goto out;
 	}
-	wma_release_vdev_ref(iface);
 
 	return status;