Browse Source

qcacld-3.0: Add default target configs for Genoa

Add Genoa specific default target configurations for
offload configs, max tx pattern config and max sta
vdev config

Change-Id: Id682b1103d87021e207de335721805515db6a932
CRs-Fixed: 2258999
jsreekum 6 years ago
parent
commit
ac44b92ac6
4 changed files with 36 additions and 0 deletions
  1. 20 0
      Kbuild
  2. 13 0
      configs/genoa.common
  3. 2 0
      core/wma/inc/wma_internal.h
  4. 1 0
      core/wma/src/wma_main.c

+ 20 - 0
Kbuild

@@ -2030,10 +2030,30 @@ ifdef CONFIG_CFG_PMO_WOW_FILTERS_MAX
 ccflags-y += -DPMO_WOW_FILTERS_MAX=$(CONFIG_CFG_PMO_WOW_FILTERS_MAX)
 endif
 
+ifdef CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV
+ccflags-y += -DCFG_TGT_DEFAULT_GTK_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV)
+endif
+
+ifdef CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV
+ccflags-y += -DCFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV)
+endif
+
+ifdef CONFIG_CFG_MAX_PERIODIC_TX_PTRNS
+ccflags-y += -DWMA_MAXNUM_PERIODIC_TX_PTRNS=$(CONFIG_CFG_MAX_PERIODIC_TX_PTRNS)
+endif
+
+ifdef CONFIG_CFG_MAX_STA_VDEVS
+ccflags-y += -DCFG_TGT_DEFAULT_MAX_STA_VDEVS=$(CONFIG_CFG_MAX_STA_VDEVS)
+endif
+
 ifdef CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS
 ccflags-y += -DNUM_OF_ADDITIONAL_FW_PEERS=$(CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS)
 endif
 
+ifdef CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES
+ccflags-y += -DCFG_TGT_NUM_TDLS_CONN_TABLE_ENTRIES=$(CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES)
+endif
+
 KBUILD_CPPFLAGS += $(cppflags-y)
 
 # Currently, for versions of gcc which support it, the kernel Makefile

+ 13 - 0
configs/genoa.common

@@ -138,6 +138,19 @@ endif
 # WoW filer configs
 CONFIG_CFG_PMO_WOW_FILTERS_MAX := 16
 
+# Offload configs
+CONFIG_CFG_GTK_OFFLOAD_MAX_VDEV := 2
+CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV := 1
+
+# Max Periodic Tx Pattern Config
+CONFIG_CFG_MAX_PERIODIC_TX_PTRNS := 2
+
+# Max Sta Vdev Config
+CONFIG_CFG_MAX_STA_VDEVS := 2
+
 # Additional peers sent to firmware
 CONFIG_CFG_NUM_OF_ADDITIONAL_FW_PEERS := 0
+
+# Number of TDLS peers that each Tdls vdev can track
+CONFIG_CFG_NUM_OF_TDLS_CONN_TABLE_ENTRIES := 4
 ###################################

+ 2 - 0
core/wma/inc/wma_internal.h

@@ -83,7 +83,9 @@
 /* The maximum number of patterns that can be transmitted by the firmware
  *  and maximum patterns size.
  */
+#ifndef WMA_MAXNUM_PERIODIC_TX_PTRNS
 #define WMA_MAXNUM_PERIODIC_TX_PTRNS 6
+#endif
 
 #define WMI_MAX_HOST_CREDITS 2
 #define WMI_WOW_REQUIRED_CREDITS 1

+ 1 - 0
core/wma/src/wma_main.c

@@ -287,6 +287,7 @@ static void wma_set_default_tgt_config(tp_wma_handle wma_handle,
 		CFG_TGT_MAX_MULTICAST_FILTER_ENTRIES;
 	tgt_cfg->num_wow_filters = 0;
 	tgt_cfg->num_keep_alive_pattern = WMA_MAXNUM_PERIODIC_TX_PTRNS;
+	tgt_cfg->num_max_sta_vdevs = CFG_TGT_DEFAULT_MAX_STA_VDEVS;
 	tgt_cfg->keep_alive_pattern_size = 0;
 	tgt_cfg->max_tdls_concurrent_sleep_sta =
 		CFG_TGT_NUM_TDLS_CONC_SLEEP_STAS;