Browse Source

qcacmn: WAR for opt_wifi_dp feature to disable IPA(2)

IPA_OFFLOAD path will be enabled by default for MSM,
inorder to support optional wifi datapath feature.
This change is a WAR to disable IPA offload during
compile time, if the feature is not enabled.
This is done using the IPA_WDI_OPT_DPATH feature flag
from IPA. If the flag is not defined in the IPA test
module file, IPA offload path and optional wifi dp
feature will be disabled.

This is a WAR, and will be fixed once a Kernel config is
available from IPA to enable or disable the optional
wifi datapath feature.

Change-Id: Ic1b961656f52fa009ab4c3b3d8d3cac305c2c7c4
CRs-Fixed: 3431972
Namita Nair 2 years ago
parent
commit
149071276c
1 changed files with 12 additions and 0 deletions
  1. 12 0
      qdf/inc/qdf_status.h

+ 12 - 0
qdf/inc/qdf_status.h

@@ -26,6 +26,18 @@
 #ifndef __QDF_STATUS_H
 #ifndef __QDF_STATUS_H
 #define __QDF_STATUS_H
 #define __QDF_STATUS_H
 
 
+#ifdef IPA_OFFLOAD
+	#ifdef CONFIG_ARCH_KALAMA
+		#include "../../../../dataipa/drivers/platform/msm/ipa/ipa_test_module/ipa_test_module.h"
+		#ifndef IPA_WDI_OPT_DPATH
+			#undef IPA_OFFLOAD
+			#undef IPA_OPT_WIFI_DP
+		#endif
+	#endif
+#else
+	#undef IPA_OPT_WIFI_DP
+#endif
+
 /**
 /**
  * typedef QDF_STATUS - QDF error codes
  * typedef QDF_STATUS - QDF error codes
  * @QDF_STATUS_SUCCESS: success
  * @QDF_STATUS_SUCCESS: success