From 7efc0136ea64177f2f4087fc02c3c854edb18f97 Mon Sep 17 00:00:00 2001 From: Sravan Kumar Kairam Date: Mon, 25 Mar 2019 16:13:46 +0530 Subject: [PATCH] qcacld-3.0: Resolve ipa compilation issue Resolve ipa compilation issue for targets with config ipa unified api enable and have kernel version 4.9. Change-Id: Ibf7c51e32850024ceeb154f18a272044482af5ba CRs-Fixed: 2422172 --- Kbuild | 4 +++- components/ipa/core/src/wlan_ipa_core.c | 2 +- configs/default_defconfig | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Kbuild b/Kbuild index bc16e089e499..8cf127b920d3 100644 --- a/Kbuild +++ b/Kbuild @@ -2233,9 +2233,11 @@ cppflags-$(CONFIG_LINUX_QCMBR) += -DLINUX_QCMBR -DQCA_WIFI_FTM_IOCTL #Enable Checksum Offload support cppflags-$(CONFIG_CHECKSUM_OFFLOAD) += -DCHECKSUM_OFFLOAD -#Enable Checksum Offload support +#Enable IPA Offload support cppflags-$(CONFIG_IPA_OFFLOAD) += -DIPA_OFFLOAD +cppflags-$(CONFIG_WDI3_IPA_OVER_GSI) += -DIPA_WDI3_GSI + ifeq ($(CONFIG_ARCH_SDX20), y) cppflags-y += -DSYNC_IPA_READY endif diff --git a/components/ipa/core/src/wlan_ipa_core.c b/components/ipa/core/src/wlan_ipa_core.c index 21f8a1d4d3a6..2d037afb99ee 100644 --- a/components/ipa/core/src/wlan_ipa_core.c +++ b/components/ipa/core/src/wlan_ipa_core.c @@ -2275,7 +2275,7 @@ static int wlan_ipa_setup_tx_sys_pipe(struct wlan_ipa_priv *ipa_ctx, } #endif -#ifdef CONFIG_IPA_WDI_UNIFIED_API +#if defined(CONFIG_IPA_WDI_UNIFIED_API) && defined(IPA_WDI3_GSI) /** * wlan_ipa_get_rx_ipa_client() - Get IPA RX ipa client * @ipa_ctx: IPA context diff --git a/configs/default_defconfig b/configs/default_defconfig index 505987d0dc1f..6331b6714900 100644 --- a/configs/default_defconfig +++ b/configs/default_defconfig @@ -21,6 +21,7 @@ ifeq ($(CONFIG_CNSS_QCA6390), y) endif CONFIG_SCALE_INCLUDES := y CONFIG_HASTINGS_BT_WAR := y + CONFIG_WDI3_IPA_OVER_GSI :=y endif ifeq ($(CONFIG_CLD_HL_SDIO_CORE), y)