Bladeren bron

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
Sravan Kumar Kairam 6 jaren geleden
bovenliggende
commit
7efc0136ea
3 gewijzigde bestanden met toevoegingen van 5 en 2 verwijderingen
  1. 3 1
      Kbuild
  2. 1 1
      components/ipa/core/src/wlan_ipa_core.c
  3. 1 0
      configs/default_defconfig

+ 3 - 1
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

+ 1 - 1
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

+ 1 - 0
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)