From 8863cba92649bb232e9ae701d66487d4b344d95f Mon Sep 17 00:00:00 2001 From: Rachit Kankane Date: Tue, 5 Jun 2018 17:31:48 +0530 Subject: [PATCH] qcacld-3.0: Add Kbuild config for no of WoW filter Total 16 number of WoW filters are PoRed for Genoa. Define CONFIG_PMO_WOW_FILTERS in genoa defconfigs with value 16. Change-Id: Iba3d9875c954b32a3f22cfd639f4508beb36a5d5 CRs-Fixed: 2257033 --- Kbuild | 3 +++ components/pmo/dispatcher/inc/wlan_pmo_wow_public_struct.h | 2 ++ configs/genoa.snoc.debug_defconfig | 3 +++ configs/genoa.snoc.perf_defconfig | 2 ++ 4 files changed, 10 insertions(+) diff --git a/Kbuild b/Kbuild index 6c1febe4b4b1..9e46b31b8ea0 100644 --- a/Kbuild +++ b/Kbuild @@ -1950,6 +1950,9 @@ ifdef CONFIG_CFG_NUM_RX_IND_RECORD ccflags-y += -DOL_RX_INDICATION_MAX_RECORDS=$(CONFIG_CFG_NUM_RX_IND_RECORD) endif +ifdef CONFIG_CFG_PMO_WOW_FILTERS_MAX +ccflags-y += -DPMO_WOW_FILTERS_MAX=$(CONFIG_CFG_PMO_WOW_FILTERS_MAX) +endif KBUILD_CPPFLAGS += $(cppflags-y) diff --git a/components/pmo/dispatcher/inc/wlan_pmo_wow_public_struct.h b/components/pmo/dispatcher/inc/wlan_pmo_wow_public_struct.h index 6e3bb0991dcf..78badb9e01bc 100644 --- a/components/pmo/dispatcher/inc/wlan_pmo_wow_public_struct.h +++ b/components/pmo/dispatcher/inc/wlan_pmo_wow_public_struct.h @@ -28,7 +28,9 @@ #define _WLAN_PMO_WOW_PUBLIC_STRUCT_H_ +#ifndef PMO_WOW_FILTERS_MAX #define PMO_WOW_FILTERS_MAX 22 +#endif #define PMO_WOWL_PTRN_MAX_SIZE 146 #define PMO_WOWL_PTRN_MASK_MAX_SIZE 19 diff --git a/configs/genoa.snoc.debug_defconfig b/configs/genoa.snoc.debug_defconfig index f8acdd097f56..b130271661ba 100644 --- a/configs/genoa.snoc.debug_defconfig +++ b/configs/genoa.snoc.debug_defconfig @@ -175,4 +175,7 @@ CONFIG_ENABLE_SMMU_S1_TRANSLATION := y endif endif +# WoW filter configs +CONFIG_CFG_PMO_WOW_FILTERS_MAX := 16 + ################################### diff --git a/configs/genoa.snoc.perf_defconfig b/configs/genoa.snoc.perf_defconfig index 0ea581929288..b6fd9ab83693 100644 --- a/configs/genoa.snoc.perf_defconfig +++ b/configs/genoa.snoc.perf_defconfig @@ -182,5 +182,7 @@ CONFIG_CFG_NUM_WMI_MGMT_EVENT_HISTORY := 16 CONFIG_CFG_NUM_TX_RX_HISTOGRAM := 16 CONFIG_CFG_NUM_RX_IND_RECORD := 1024 +# WoW filer configs +CONFIG_CFG_PMO_WOW_FILTERS_MAX := 16 ###################################