wlan: Fix build failure when TDLS is not enabled
Currently when the driver is built with TDLS disabled, some
TDLS-related code is still being included in the build, leading
to a compilation failure. To prevent this, only enable
WLAN_FEATURE_TDLS_DEBUG if the TDLS feature is enabled.
Change-Id: I87f37068ad849db45592a477705156bc246c0de6
diff --git a/Kbuild b/Kbuild
index 91cfce9..3fc8592 100644
--- a/Kbuild
+++ b/Kbuild
@@ -524,7 +524,6 @@
-DWLAN_FEATURE_VOWIFI \
-DWLAN_FEATURE_11AC \
-DWLAN_FEATURE_P2P_DEBUG \
- -DWLAN_FEATURE_TDLS_DEBUG \
-DWLAN_ENABLE_AGEIE_ON_SCAN_RESULTS \
-DWLANTL_DEBUG\
-DWLAN_ACTIVEMODE_OFFLOAD_FEATURE \
@@ -567,6 +566,7 @@
#normally, TDLS negative behavior is not needed
ifeq ($(CONFIG_QCOM_TDLS),y)
CDEFINES += -DFEATURE_WLAN_TDLS
+CDEFINES += -DWLAN_FEATURE_TDLS_DEBUG
CDEFINES += -DCONFIG_TDLS_IMPLICIT
#CDEFINES += -DFEATURE_WLAN_TDLS_NEGATIVE
#Code under FEATURE_WLAN_TDLS_INTERNAL is ported from volans, This code