qcacld-3.0: Fix to non-pre-cac adapter cleanup

If the non-pre-cac adapter stop got trigger first, non-pre-cac adapter will
get close but the pre-cac vdev is not cleaned up.

So, don't need to check for is pre-cac ON for non-pre-cac adapter.

Remove check for is pre-cac ON for non-pre-cac adapter in
hdd_stop_adapter_ext and wait for the pre-cac cleanup to complete first.

Change-Id: I03b46b7db849f45f7625bdd0666f63ba7820e0f1
CRs-Fixed: 3431907
This commit is contained in:
Vinod Kumar Myadam
2023-03-13 16:39:42 +05:30
committato da Madan Koyyalamudi
parent 857fee2500
commit 9d96541447

Vedi File

@@ -8253,13 +8253,7 @@ QDF_STATUS hdd_stop_adapter_ext(struct hdd_context *hdd_ctx,
ucfg_ipa_flush(hdd_ctx->pdev);
if (!ucfg_pre_cac_adapter_is_active(adapter->vdev)) {
/**
* don't flush pre-cac destroy if we are destroying
* pre-cac adapter
*/
if (!ucfg_pre_cac_is_active(hdd_ctx->psoc))
ucfg_pre_cac_stop(hdd_ctx->psoc);
ucfg_pre_cac_stop(hdd_ctx->psoc);
hdd_close_pre_cac_adapter(hdd_ctx);
} else {
if (ucfg_pre_cac_set_status(adapter->vdev, false))