qcacld-3.0: Add a new ini param to enable PCI gen switch

Add a new ini param to enable/disable PCI gen switch

Change-Id: Ie8c61dbfb9834aac96a95eb935521e1bc4b3b835
CRs-Fixed: 2865861
This commit is contained in:
Abdul Muqtadeer Ahmed 2021-01-19 11:18:10 +05:30 • committed by snandini
commit 261a0b6895
2 changed files with 24 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2021 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
@ -808,6 +808,25 @@
0, \
"Disable HW assist feature in FW")
/*
* <ini>
* g_enable_pci_gen - To enable pci gen switch
* @Default: 0
*
* Related: None
*
* Supported Feature: PCI
*
* Usage: External
*
* </ini>
*/
#define CFG_ENABLE_PCI_GEN CFG_INI_BOOL( \
"g_enable_pci_gen", \
0, \
"enable pci gen")
#define CFG_FWOL_GENERIC_ALL \
CFG_FWOL_DHCP \
CFG(CFG_ENABLE_ANI) \
@ -837,6 +856,7 @@
CFG(CFG_SET_SAP_XLNA_BYPASS) \
CFG(CFG_SET_ENABLE_ILP) \
CFG(CFG_ENABLE_FW_WOW_MODULE_LOG_LEVEL) \
CFG(CFG_DISABLE_HW_ASSIST)
CFG(CFG_DISABLE_HW_ASSIST) \
CFG(CFG_ENABLE_PCI_GEN)
#endif

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2021 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
@ -357,6 +357,7 @@ static void wma_set_default_tgt_config(tp_wma_handle wma_handle,
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->enable_pci_gen = cfg_get(wma_handle->psoc, CFG_ENABLE_PCI_GEN);
tgt_cfg->mgmt_comp_evt_bundle_support = true;
tgt_cfg->tx_msdu_new_partition_id_support = true;