From a33b4b04bb3003fd353085bc055cf6bd4f9fc282 Mon Sep 17 00:00:00 2001 From: Namita Nair Date: Fri, 24 Feb 2023 13:32:49 -0800 Subject: [PATCH] qcacmn: Fix opt dpath compilation error for OWRT SI Currently, there is a compilation error on the OWRT SI in the alternate code path when optional dp feature is not enabled. The caller wlan_ipa_wdi_init_set_opt_wifi_dp() passes an argument of incompatible type. This change fixes the compilation issue. Change-Id: I1f2eecbb67bfb2ef17ee73ce2faedb85827b4bbc CRs-Fixed: 3417214 --- dp/wifi3.0/dp_main.c | 2 +- ipa/core/src/wlan_ipa_core.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 634a92b4a5..bea4a888fd 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -15155,7 +15155,7 @@ static struct cdp_ipa_ops dp_ops_ipa = { #endif #ifdef IPA_OPT_WIFI_DP .ipa_rx_super_rule_setup = dp_ipa_rx_super_rule_setup, - .ipa_pcie_link_up = dp_ipa_pcie_link, + .ipa_pcie_link_up = dp_ipa_pcie_link_up, .ipa_pcie_link_down = dp_ipa_pcie_link_down, #endif #ifdef IPA_WDS_EASYMESH_FEATURE diff --git a/ipa/core/src/wlan_ipa_core.c b/ipa/core/src/wlan_ipa_core.c index 2582f11624..9d74ac237f 100644 --- a/ipa/core/src/wlan_ipa_core.c +++ b/ipa/core/src/wlan_ipa_core.c @@ -649,15 +649,15 @@ static inline void wlan_ipa_wdi_init_metering(struct wlan_ipa_priv *ipa_ctxt, */ static inline void wlan_ipa_wdi_init_set_opt_wifi_dp( struct wlan_ipa_priv *ipa_ctxt, - qdf_ipa_wdi_init_out_params_t out) + qdf_ipa_wdi_init_out_params_t *out) { ipa_ctx->opt_wifi_datapath = - QDF_IPA_WDI_INIT_OUT_PARAMS_OPT_WIFI_DP(&out); + QDF_IPA_WDI_INIT_OUT_PARAMS_OPT_WIFI_DP(out); } #else static inline void wlan_ipa_wdi_init_set_opt_wifi_dp( struct wlan_ipa_priv *ipa_ctxt, - qdf_ipa_wdi_init_out_params_t out) + qdf_ipa_wdi_init_out_params_t *out) { } #endif