From fd6d164471dad6178352c0a04352d676a9975677 Mon Sep 17 00:00:00 2001 From: Varun Reddy Yeturu Date: Wed, 12 Apr 2017 23:19:54 -0700 Subject: [PATCH] qcacld-3.0: Fix Kbuild to enable WLAN debugfs support Currently, the CONFIG_WLAN_POWER_DEBUGFS and CONFIG_WLAN_DEBUGFS are not enabled for statically loaded driver. This results in missing subsystem power stats. The reason for that is the enabling of this macro is conditionally done under KERNEL_BUILD=0. This commit enables the macro to be also conditionally done under all values of KERNEL_BUILD Change-Id: I2824fdbb438b37ee58a95a6ea889be5e7691bef5 CRs-Fixed: 2033114 --- Kbuild | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Kbuild b/Kbuild index d469de9505..c3d58f1662 100644 --- a/Kbuild +++ b/Kbuild @@ -86,11 +86,6 @@ ifeq ($(KERNEL_BUILD), 0) #Flag to enable Legacy Fast Roaming3(LFR3) CONFIG_QCACLD_WLAN_LFR3 := y - #Enable Power debugfs feature only if debug_fs is enabled - ifeq ($(CONFIG_DEBUG_FS), y) - CONFIG_WLAN_POWER_DEBUGFS := y - endif - # JB kernel has CPU enablement patches, so enable ifeq ($(CONFIG_ROME_IF),pci) CONFIG_PRIMA_WLAN_11AC_HIGH_TP := y @@ -225,12 +220,15 @@ endif # Flag to enable MCC to SCC switch feature CONFIG_MCC_TO_SCC_SWITCH := y -ifeq ($(CONFIG_DEBUG_FS), y) - # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel - # configuration. - CONFIG_WLAN_DEBUGFS := y endif +#Enable WLAN/Power debugfs feature only if debug_fs is enabled +ifeq ($(CONFIG_DEBUG_FS), y) + # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel + # configuration. + CONFIG_WLAN_DEBUGFS := y + + CONFIG_WLAN_POWER_DEBUGFS := y endif # If not set, assume, Common driver is with in the build tree