From 261a0b6895d52d8cfe554c3c7dc1e8200f5fae67 Mon Sep 17 00:00:00 2001 From: Abdul Muqtadeer Ahmed Date: Tue, 19 Jan 2021 11:18:10 +0530 Subject: [PATCH] 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 --- .../dispatcher/inc/cfg_fwol_generic.h | 24 +++++++++++++++++-- core/wma/src/wma_main.c | 3 ++- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/components/fw_offload/dispatcher/inc/cfg_fwol_generic.h b/components/fw_offload/dispatcher/inc/cfg_fwol_generic.h index 460bdc95ce5c..c8c0ad5d82f4 100644 --- a/components/fw_offload/dispatcher/inc/cfg_fwol_generic.h +++ b/components/fw_offload/dispatcher/inc/cfg_fwol_generic.h @@ -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") +/* + * + * g_enable_pci_gen - To enable pci gen switch + * @Default: 0 + * + * Related: None + * + * Supported Feature: PCI + * + * Usage: External + * + * + */ + +#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 diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index c8740e041ed6..e38db43d7903 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -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;