Ver Fonte

Merge "qcacld-3.0: Drain mgmt tx completion only during SSR" into wlan-cld3.driver.lnx.2.0

CNSS_WLAN Service há 4 anos atrás
pai
commit
24121c8dba
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      core/wma/src/wma_dev_if.c

+ 3 - 2
core/wma/src/wma_dev_if.c

@@ -494,8 +494,9 @@ static QDF_STATUS wma_handle_vdev_detach(tp_wma_handle wma_handle,
 
 rel_ref:
 	wma_cdp_vdev_detach(soc, wma_handle, vdev_id);
-	wlan_mgmt_txrx_vdev_drain(iface->vdev,
-				  wma_mgmt_frame_fill_peer_cb, &i);
+	if (qdf_is_recovering())
+		wlan_mgmt_txrx_vdev_drain(iface->vdev,
+					  wma_mgmt_frame_fill_peer_cb, &i);
 	wma_debug("Releasing wma reference for vdev:%d", vdev_id);
 	wma_release_vdev_ref(iface);
 	return status;