From eba5a128edbedf3684f52f9398d917fd6c87b4b0 Mon Sep 17 00:00:00 2001 From: Varun Reddy Yeturu Date: Wed, 12 Apr 2017 23:04:11 -0700 Subject: qcacld-2.0: Fix Kbuild to enable WLAN debugfs support Currently, the CONFIG_WLAN_POWER_DEBUGFS is 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: I90593315855e4dc363f00526e2e878a48748767d CRs-Fixed: 2033107 --- Kbuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Kbuild b/Kbuild index 3afca807c15e..ae5e617d044e 100644 --- a/Kbuild +++ b/Kbuild @@ -76,11 +76,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 PMKSA patches, hence enabling this flag CONFIG_PRIMA_WLAN_OKC := y @@ -158,6 +153,11 @@ ifeq ($(KERNEL_BUILD), 0) endif +#Enable Power debugfs feature only if debug_fs is enabled +ifeq ($(CONFIG_DEBUG_FS), y) +CONFIG_WLAN_POWER_DEBUGFS := y +endif + ifdef CPTCFG_QCA_CLD_WLAN WLAN_ROOT := $(BACKPORT_PWD)/drivers/staging/qcacld-2.0 CONFIG_QCA_CLD_WLAN=$(CPTCFG_QCA_CLD_WLAN) -- cgit v1.2.3