Sfoglia il codice sorgente

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
Abdul Muqtadeer Ahmed 4 anni fa
parent
commit
fdd65fd9ea

+ 22 - 2
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
@@ -837,6 +837,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) \
@@ -867,6 +886,7 @@
 	CFG(CFG_SET_ENABLE_ILP) \
 	CFG(CFG_ENABLE_FW_WOW_MODULE_LOG_LEVEL) \
 	CFG(CFG_SAP_SHO_CONFIG) \
-	CFG(CFG_DISABLE_HW_ASSIST)
+	CFG(CFG_DISABLE_HW_ASSIST) \
+	CFG(CFG_ENABLE_PCI_GEN)
 
 #endif

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

@@ -345,6 +345,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;