Selaa lähdekoodia

qcacmn: Fix compile error for ROME IPA

Fix compile error for ROME IPA in the kernel-5.4.

Change-Id: I2e8a3d5f4b08ab4802c7d0d229747c389b055a69
CRs-Fixed: 3345160
Chaoli Zhou 2 vuotta sitten
vanhempi
sitoutus
b9b7e87a10
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      dp/inc/cdp_txrx_ops.h
  2. 1 1
      ipa/core/src/wlan_ipa_core.c

+ 1 - 1
dp/inc/cdp_txrx_ops.h

@@ -1962,7 +1962,7 @@ struct cdp_ipa_ops {
 	QDF_STATUS (*ipa_disable_autonomy)(struct cdp_soc_t *soc_hdl,
 					   uint8_t pdev_id);
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)) || \
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)) || \
 	defined(CONFIG_IPA_WDI_UNIFIED_API)
 	QDF_STATUS (*ipa_setup)(struct cdp_soc_t *soc_hdl, uint8_t pdev_id,
 				void *ipa_i2w_cb, void *ipa_w2i_cb,

+ 1 - 1
ipa/core/src/wlan_ipa_core.c

@@ -30,7 +30,7 @@
 #include <wmi_unified_param.h>
 #include <wlan_osif_priv.h>
 #include <net/cfg80211.h>
-#ifdef QCA_LL_TX_FLOW_CONTROL_V2
+#if defined(QCA_LL_TX_FLOW_CONTROL_V2) || !defined(QCA_IPA_LL_TX_FLOW_CONTROL)
 #include <cdp_txrx_flow_ctrl_v2.h>
 #include <cdp_txrx_peer_ops.h>
 #endif