qcacld-3.0: Fix QDF assert in command ipaucstat
When doing HDD context check in ipa_init, the CDS is not yet
loaded. So remove the CDS loading check in ipa_init.
Change-Id: I45843c406f280cfbf932bc489f9051c2300b77ba
CRs-Fixed: 2070428
diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c
index e0ebc95..aaa14b4 100644
--- a/core/hdd/src/wlan_hdd_ipa.c
+++ b/core/hdd/src/wlan_hdd_ipa.c
@@ -886,6 +886,12 @@
return;
}
+ if (!hdd_ipa_is_rt_debugging_enabled(hdd_ctx)) {
+ HDD_IPA_LOG(QDF_TRACE_LEVEL_DEBUG,
+ "%s: IPA RT debug is not enabled", __func__);
+ return;
+ }
+
HDD_IPA_LOG(QDF_TRACE_LEVEL_ERROR,
"========= WLAN-IPA DEBUG BUF DUMP ==========\n");
HDD_IPA_LOG(QDF_TRACE_LEVEL_ERROR,
@@ -1041,7 +1047,7 @@
{
struct hdd_ipa_priv *hdd_ipa;
- if (wlan_hdd_validate_context(hdd_ctx))
+ if (wlan_hdd_validate_context_in_loading(hdd_ctx))
return;
hdd_ipa = (struct hdd_ipa_priv *)hdd_ctx->hdd_ipa;