qcacld-3.0: Kbuild: Define CONFIG_CHANNEL_HOPPING_ALL_BANDS
Currently the switch -DCHANNEL_HOPPING_ALL_BANDS is inferred by
examining a seemingly unrelated configuration option. In order to
clearly separate setting the configuration from applying the
configuration create a new CONFIG_CHANNEL_HOPPING_ALL_BANDS
configuration parameter.
Change-Id: Icc9aef38445cdcd9269210b578b1e1be2fe18ac9
CRs-Fixed: 2224811
diff --git a/Kbuild b/Kbuild
index 049fc4d..302fcaa 100644
--- a/Kbuild
+++ b/Kbuild
@@ -545,6 +545,10 @@
endif
endif
+ifeq ($(CONFIG_ARCH_MSM8996), y)
+CONFIG_CHANNEL_HOPPING_ALL_BANDS := y
+endif
+
ifneq ($(CONFIG_HIF_USB), y)
CONFIG_WLAN_LOGGING_SOCK_SVC := y
endif
@@ -2292,9 +2296,7 @@
ccflags-y += -DCONFIG_TUFELLO_DUAL_FW_SUPPORT
endif
-ifeq ($(CONFIG_ARCH_MSM8996), y)
-ccflags-y += -DCHANNEL_HOPPING_ALL_BANDS
-endif
+ccflags-$(CONFIG_CHANNEL_HOPPING_ALL_BANDS) += -DCHANNEL_HOPPING_ALL_BANDS
#Enable Signed firmware support for split binary format
ccflags-$(CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT) += -DQCA_SIGNED_SPLIT_BINARY_SUPPORT