qcacld-3.0: Set twt ap sta count in target config

Provide defines in Kbuild to set twt ap sta count
in target config

Change-Id: Ie7be53d2cb003c1176b6dec26d22f833288308c0
CRs-Fixed: 2730789
This commit is contained in:
Visweswara Tanuku 2020-07-13 19:42:29 +05:30 • committed by snandini
commit 6363f77af4
4 changed files with 20 additions and 3 deletions

3
Kbuild
View file

@ -2537,6 +2537,9 @@ cppflags-$(CONFIG_DIRECT_BUF_RX_ENABLE) += -DDBR_MULTI_SRNG_ENABLE
endif
cppflags-$(CONFIG_WMI_CMD_STRINGS) += -DWMI_CMD_STRINGS
cppflags-$(CONFIG_WLAN_FEATURE_TWT) += -DWLAN_SUPPORT_TWT
ifdef CONFIG_WLAN_TWT_SAP_STA_COUNT
ccflags-y += -DWLAN_TWT_SAP_STA_COUNT=$(CONFIG_WLAN_TWT_SAP_STA_COUNT)
endif
cppflags-$(CONFIG_WLAN_DISABLE_EXPORT_SYMBOL) += -DWLAN_DISABLE_EXPORT_SYMBOL
cppflags-$(CONFIG_WIFI_POS_CONVERGED) += -DWIFI_POS_CONVERGED
cppflags-$(CONFIG_WIFI_POS_LEGACY) += -DFEATURE_OEM_DATA_SUPPORT

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2014-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2011, 2014-2020 The Linux Foundation. All rights reserved.
*
*
*
@ -261,4 +261,13 @@
*/
#define CFG_TGT_NUM_OCB_SCHEDULES 2
/*
* Default TWT AP STA Count
*/
#if defined(WLAN_SUPPORT_TWT) && defined(WLAN_TWT_SAP_STA_COUNT)
#define CFG_TGT_DEFAULT_TWT_AP_STA_COUNT WLAN_TWT_SAP_STA_COUNT
#else
#define CFG_TGT_DEFAULT_TWT_AP_STA_COUNT 0
#endif /* WLAN_SUPPORT_TWT && WLAN_TWT_SAP_STA_COUNT */
#endif /*__WLAN_TGT_DEF_CONFIG_H__ */

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@ -300,4 +300,9 @@
*/
#define CFG_TGT_NUM_OCB_SCHEDULES 2
/*
* Default TWT AP STA Count
*/
#define CFG_TGT_DEFAULT_TWT_AP_STA_COUNT 0
#endif /*__WLAN_TGT_DEF_CONFIG_H__ */

View file

@ -345,7 +345,7 @@ static void wma_set_default_tgt_config(tp_wma_handle wma_handle,
tgt_cfg->num_ocb_vdevs = CFG_TGT_NUM_OCB_VDEVS;
tgt_cfg->num_ocb_channels = CFG_TGT_NUM_OCB_CHANNELS;
tgt_cfg->num_ocb_schedules = CFG_TGT_NUM_OCB_SCHEDULES;
tgt_cfg->twt_ap_sta_count = CFG_TGT_DEFAULT_TWT_AP_STA_COUNT;
tgt_cfg->mgmt_comp_evt_bundle_support = true;
tgt_cfg->tx_msdu_new_partition_id_support = true;