Browse Source

qcacld-3.0: Update default values of INI items

Update default values of INI items to most commonly used values
in WCNSS_qcom_cfg.ini file on commercial devices.

Change-Id: Ibf1e22406951855a4e726fb8105913a53d3c33ee
CRs-Fixed: 2874758
Alan Chen 4 years ago
parent
commit
073531fc1e

+ 4 - 0
Kbuild

@@ -3603,6 +3603,10 @@ ifdef CONFIG_QDF_TIMER_MULTIPLIER_FRAC
 ccflags-y += -DQDF_TIMER_MULTIPLIER_FRAC=$(CONFIG_QDF_TIMER_MULTIPLIER_FRAC)
 endif
 
+ifdef CONFIG_DP_LEGACY_MODE_CSM_DEFAULT_DISABLE
+ccflags-y += -DDP_LEGACY_MODE_CSM_DEFAULT_DISABLE=$(CONFIG_DP_LEGACY_MODE_CSM_DEFAULT_DISABLE)
+endif
+
 # configure log buffer size
 ifdef CONFIG_CFG_NUM_DP_TRACE_RECORD
 ccflags-y += -DMAX_QDF_DP_TRACE_RECORDS=$(CONFIG_CFG_NUM_DP_TRACE_RECORD)

+ 5 - 5
components/mlme/dispatcher/inc/cfg_mlme_acs.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
@@ -28,7 +28,7 @@
  * acs_with_more_param- Enable acs calculation with more param.
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * This ini is used to enable acs calculation with more param.
  *
@@ -43,7 +43,7 @@
 
 #define CFG_ACS_WITH_MORE_PARAM CFG_INI_BOOL( \
 		"acs_with_more_param", \
-		0, \
+		1, \
 		"Enable ACS with more param")
 
 /*
@@ -51,7 +51,7 @@
  * AutoChannelSelectWeight - ACS channel weight
  * @Min: 0
  * @Max: 0xFFFFFFFF
- * @Default: 0x000000FF
+ * @Default: 0x00fafafa
  *
  * This ini is used to adjust weight of factors in
  * acs algorithm.
@@ -75,7 +75,7 @@
 		"AutoChannelSelectWeight", \
 		0, \
 		0xFFFFFFFF, \
-		0x000000FF, \
+		0x00fafafa, \
 		CFG_VALUE_OR_DEFAULT, \
 		"Adjust weight factor in ACS")
 

+ 7 - 7
components/mlme/dispatcher/inc/cfg_mlme_chainmask.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2019, 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
@@ -26,9 +26,9 @@
 /*
  * <ini>
  * gSetTxChainmask1x1 - Sets Transmit chain mask.
- * @Min: 1
+ * @Min: 0
  * @Max: 3
- * @Default: 0
+ * @Default: 1
  *
  * This ini Sets Transmit chain mask.
  *
@@ -50,16 +50,16 @@
 				"gSetTxChainmask1x1", \
 				0, \
 				3, \
-				0, \
+				1, \
 				CFG_VALUE_OR_DEFAULT, \
 				"1x1 VHT Tx Chainmask")
 
 /*
  * <ini>
  * gSetRxChainmask1x1 - Sets Receive chain mask.
- * @Min: 1
+ * @Min: 0
  * @Max: 3
- * @Default: 0
+ * @Default: 1
  *
  * This ini is  used to set Receive chain mask.
  *
@@ -81,7 +81,7 @@
 				"gSetRxChainmask1x1", \
 				0, \
 				3, \
-				0, \
+				1, \
 				CFG_VALUE_OR_DEFAULT, \
 				"1x1 VHT Rx Chainmask")
 

+ 11 - 11
components/mlme/dispatcher/inc/cfg_mlme_fe_wmm.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
@@ -315,7 +315,7 @@
  * InfraUapsdVoSrvIntv - Set Uapsd service interval for voice
  * @Min: 0
  * @Max: 4294967295UL
- * @Default: 20
+ * @Default: 0
  *
  * This ini is used to set Uapsd service interval(in ms) for voice.
  *
@@ -331,7 +331,7 @@
 		"InfraUapsdVoSrvIntv", \
 		0, \
 		4294967295UL, \
-		20, \
+		0, \
 		CFG_VALUE_OR_DEFAULT, \
 		"Infra uapsd vo srv intv")
 
@@ -365,7 +365,7 @@
  * InfraUapsdViSrvIntv - Set Uapsd service interval for video
  * @Min: 0
  * @Max: 4294967295UL
- * @Default: 300
+ * @Default: 0
  *
  * This ini is used to set Uapsd service interval(in ms) for video.
  *
@@ -382,7 +382,7 @@
 		"InfraUapsdViSrvIntv", \
 		0, \
 		4294967295UL, \
-		300, \
+		0, \
 		CFG_VALUE_OR_DEFAULT, \
 		"Infra uapsd vi srv intv")
 
@@ -546,7 +546,7 @@
  * InfraUapsdBeSrvIntv - Set Uapsd service interval for BE
  * @Min: 0
  * @Max: 4294967295UL
- * @Default: 300
+ * @Default: 0
  *
  * This ini is used to set Uapsd service interval(in ms) for BE
  *
@@ -562,7 +562,7 @@
 		"InfraUapsdBeSrvIntv", \
 		0, \
 		4294967295UL, \
-		300, \
+		0, \
 		CFG_VALUE_OR_DEFAULT, \
 		"Infra uapsd be srv intv")
 
@@ -731,7 +731,7 @@
  * InfraUapsdBkSrvIntv - Set Uapsd service interval for BK
  * @Min: 0
  * @Max: 4294967295UL
- * @Default: 300
+ * @Default: 0
  *
  * This ini is used to set Uapsd service interval(in ms) for BK
  *
@@ -747,7 +747,7 @@
 		"InfraUapsdBkSrvIntv", \
 		0, \
 		4294967295UL, \
-		300, \
+		0, \
 		CFG_VALUE_OR_DEFAULT, \
 		"Infra uapsd bk srv intv")
 
@@ -971,7 +971,7 @@
  * gAddTSWhenACMIsOff - Set ACM value for AC
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * This ini is used to set ACM value for AC
  *
@@ -985,7 +985,7 @@
  */
 #define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF CFG_INI_BOOL( \
 		"gAddTSWhenACMIsOff", \
-		0, \
+		1, \
 		"ACM value for AC")
 
 /*

+ 3 - 3
components/mlme/dispatcher/inc/cfg_mlme_feature_flag.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
@@ -200,7 +200,7 @@
  * gChannelBondingMode5GHz - Configures Channel Bonding in 5 GHz
  * @Min: 0
  * @Max: 10
- * @Default: 0
+ * @Default: 1
  *
  * This ini is used to set default channel bonding mode 5GHZ
  *
@@ -218,7 +218,7 @@
 	"gChannelBondingMode5GHz", \
 	0, \
 	10, \
-	0, \
+	1, \
 	CFG_VALUE_OR_DEFAULT, \
 	"Configures Channel Bonding in 5 GHz")
 

+ 4 - 4
components/mlme/dispatcher/inc/cfg_mlme_generic.h

@@ -89,7 +89,7 @@ enum monitor_mode_concurrency {
  * enable_rtt_mac_randomization - Enable/Disable rtt mac randomization
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * Usage: External
  *
@@ -97,7 +97,7 @@ enum monitor_mode_concurrency {
  */
 #define CFG_ENABLE_RTT_MAC_RANDOMIZATION CFG_INI_BOOL( \
 	"enable_rtt_mac_randomization", \
-	0, \
+	1, \
 	"Enable RTT MAC randomization")
 
 #define CFG_RTT3_ENABLE CFG_BOOL( \
@@ -316,7 +316,7 @@ enum monitor_mode_concurrency {
  * gEnableLpassSupport - Enable/disable LPASS Support
  * @Min: 0 (disabled)
  * @Max: 1 (enabled)
- * @Default: 0 (disabled)
+ * @Default: 1 (disabled) if WLAN_FEATURE_LPSS is defined, 0 otherwise
  *
  * Related: None
  *
@@ -329,7 +329,7 @@ enum monitor_mode_concurrency {
 #ifdef WLAN_FEATURE_LPSS
 #define CFG_ENABLE_LPASS_SUPPORT CFG_INI_BOOL( \
 	"gEnableLpassSupport", \
-	0, \
+	1, \
 	"Enable LPASS Support")
 #else
 #define CFG_ENABLE_LPASS_SUPPORT CFG_BOOL( \

+ 5 - 5
components/mlme/dispatcher/inc/cfg_mlme_ht_caps.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
@@ -81,7 +81,7 @@
  * gEnableTXSTBC - Enables/disables Tx STBC capability in STA mode
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * This ini is used to set default Tx STBC capability
  *
@@ -95,7 +95,7 @@
  */
 #define CFG_TX_STBC_ENABLE CFG_INI_BOOL( \
 		"gEnableTXSTBC", \
-		0, \
+		1, \
 		"Tx STBC capability")
 
 /*
@@ -344,7 +344,7 @@
  * ght_mpdu_density - Configuration option for HT MPDU density
  * @Min: 0
  * @Max: 7
- * @Default: 7
+ * @Default: 4
  *
  * This ini is used to set default MPDU Density
  *
@@ -370,7 +370,7 @@
 	"ght_mpdu_density", \
 	0, \
 	7, \
-	7, \
+	4, \
 	CFG_VALUE_OR_DEFAULT, \
 	"MPDU Density")
 

+ 4 - 4
components/mlme/dispatcher/inc/cfg_mlme_lfr.h

@@ -1157,7 +1157,7 @@
  * FastRoamEnabled - Enable fast roaming
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * This ini is used to inform FW to enable fast roaming
  *
@@ -1171,7 +1171,7 @@
  */
 #define CFG_LFR_FEATURE_ENABLED CFG_INI_BOOL( \
 	"FastRoamEnabled", \
-	0, \
+	1, \
 	"Enable fast roaming")
 
 /*
@@ -1671,7 +1671,7 @@
  * gAllowDFSChannelRoam - Allow dfs channel in roam
  * @Min: 0
  * @Max: 2
- * @Default: 0
+ * @Default: 1
  *
  * This ini is used to set default dfs channel
  *
@@ -1687,7 +1687,7 @@
 	"gAllowDFSChannelRoam", \
 	0, \
 	2, \
-	0, \
+	1, \
 	CFG_VALUE_OR_DEFAULT, \
 	"Allow dfs channel in roam")
 

+ 3 - 3
components/mlme/dispatcher/inc/cfg_mlme_sap.h

@@ -451,7 +451,7 @@
  * gCountryCodePriority - Priority to set country code
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * This ini is used to set default gCountryCodePriority
  *
@@ -459,13 +459,13 @@
  *
  * Supported Feature: SAP
  *
- * Usage: Internal/External
+ * Usage: Internal
  *
  * </ini>
  */
 #define CFG_COUNTRY_CODE_PRIORITY CFG_INI_BOOL( \
 			"gCountryCodePriority", \
-			0, \
+			1, \
 			"Country code priority")
 
 /*

+ 3 - 3
components/mlme/dispatcher/inc/cfg_mlme_twt.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2018, 2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2018, 2020-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
@@ -71,7 +71,7 @@
  * bcast_twt - to bcast twt capability.
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * This cfg is used to bcast twt capability.
  *
@@ -85,7 +85,7 @@
  */
 #define CFG_BCAST_TWT CFG_INI_BOOL( \
 		"bcast_twt", \
-		0, \
+		1, \
 		"Bcast TWT")
 
 /*

+ 23 - 23
components/mlme/dispatcher/inc/cfg_mlme_vht_caps.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
@@ -187,7 +187,7 @@
  * gEnableTxBFin20MHz - Enables TXBF in 20mhz
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * Related: NA
  *
@@ -199,7 +199,7 @@
  */
 #define CFG_VHT_ENABLE_TXBF_IN_20MHZ CFG_INI_BOOL( \
 		"gEnableTxBFin20MHz", \
-		0, \
+		1, \
 		"VHT ENABLE TXBF 20MHZ")
 
 #define CFG_VHT_MU_BEAMFORMER_CAP CFG_BOOL( \
@@ -247,7 +247,7 @@
  * gVhtRxMCS - VHT Rx MCS capability for 1x1 mode
  * @Min: 0
  * @Max: 2
- * @Default: 0
+ * @Default: 2
  *
  * This ini is  used to set VHT Rx MCS capability for 1x1 mode.
  * 0, MCS0-7
@@ -266,7 +266,7 @@
 		"gVhtRxMCS", \
 		0, \
 		2, \
-		0, \
+		2, \
 		CFG_VALUE_OR_DEFAULT, \
 		"VHT Rx MCS")
 
@@ -275,7 +275,7 @@
  * gVhtTxMCS - VHT Tx MCS capability for 1x1 mode
  * @Min: 0
  * @Max: 2
- * @Default: 0
+ * @Default: 2
  *
  * This ini is  used to set VHT Tx MCS capability for 1x1 mode.
  * 0, MCS0-7
@@ -294,7 +294,7 @@
 		"gVhtTxMCS", \
 		0, \
 		2, \
-		0, \
+		2, \
 		CFG_VALUE_OR_DEFAULT, \
 		"VHT Tx MCS")
 
@@ -303,7 +303,7 @@
  * gVhtRxMCS2x2 - VHT Rx MCS capability for 2x2 mode
  * @Min: 0
  * @Max: 2
- * @Default: 0
+ * @Default: 2
  *
  * This ini is  used to set VHT Rx MCS capability for 2x2 mode.
  * 0, MCS0-7
@@ -322,7 +322,7 @@
 		"gVhtRxMCS2x2", \
 		0, \
 		2, \
-		0, \
+		2, \
 		CFG_VALUE_OR_DEFAULT, \
 		"VHT Rx MCS 2x2")
 
@@ -331,7 +331,7 @@
  * gVhtTxMCS2x2 - VHT Tx MCS capability for 2x2 mode
  * @Min: 0
  * @Max: 2
- * @Default: 0
+ * @Default: 2
  *
  * This ini is  used to set VHT Tx MCS capability for 2x2 mode.
  * 0, MCS0-7
@@ -350,7 +350,7 @@
 		"gVhtTxMCS2x2", \
 		0, \
 		2, \
-		0, \
+		2, \
 		CFG_VALUE_OR_DEFAULT, \
 		"VHT Tx MCS 2x2")
 
@@ -379,7 +379,7 @@
  * gEnable2x2 - Enables/disables VHT Tx/Rx MCS values for 2x2
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * This ini disables/enables 2x2 mode. If this is zero then DUT operates as 1x1
  *
@@ -396,7 +396,7 @@
  */
 #define CFG_VHT_ENABLE_2x2_CAP_FEATURE CFG_INI_BOOL( \
 		"gEnable2x2", \
-		0, \
+		1, \
 		"VHT Enable 2x2")
 
 /*
@@ -404,7 +404,7 @@
  * gEnableMuBformee - Enables/disables multi-user (MU) beam formee capability
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * This ini enables/disables multi-user (MU) beam formee
  * capability
@@ -422,7 +422,7 @@
  */
 #define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE CFG_INI_BOOL( \
 		"gEnableMuBformee", \
-		0, \
+		1, \
 		"VHT Enable MU Beamformee")
 
 /*
@@ -472,7 +472,7 @@
  * gEnableVhtFor24GHzBand - Enable VHT for 2.4GHZ in SAP mode
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * Related: NA
  *
@@ -484,7 +484,7 @@
  */
 #define CFG_ENABLE_VHT_FOR_24GHZ CFG_INI_BOOL( \
 		"gEnableVhtFor24GHzBand", \
-		0, \
+		1, \
 		"VHT Enable for 24GHz")
 
 /*
@@ -513,7 +513,7 @@
  * gVhtAmpduLenExponent - maximum receive AMPDU size configuration
  * @Min: 0
  * @Max: 7
- * @Default: 3
+ * @Default: 7
  *
  * Related: NA
  *
@@ -527,7 +527,7 @@
 		"gVhtAmpduLenExponent", \
 		0, \
 		7, \
-		3, \
+		7, \
 		CFG_VALUE_OR_DEFAULT, \
 		"VHT AMPDU Len in Exponent")
 
@@ -536,7 +536,7 @@
  * gVhtMpduLen - VHT MPDU length
  * @Min: 0
  * @Max: 2
- * @Default: 0
+ * @Default: 2
  *
  * Related: NA
  *
@@ -550,7 +550,7 @@
 		"gVhtMpduLen", \
 		0, \
 		2, \
-		0, \
+		2, \
 		CFG_VALUE_OR_DEFAULT, \
 		"VHT MPDU Length")
 
@@ -559,7 +559,7 @@
  * gEnableTxBFeeSAP - Enable / Disable Tx beamformee in SAP mode
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * Related: NA
  *
@@ -571,7 +571,7 @@
  */
 #define CFG_VHT_ENABLE_TXBF_SAP_MODE CFG_INI_BOOL( \
 			"gEnableTxBFeeSAP", \
-			0, \
+			1, \
 			"Enable tx bf sap mode")
 
 /*

+ 6 - 0
configs/default_defconfig

@@ -1263,4 +1263,10 @@ ifeq ($(CONFIG_CNSS_QCA6750), y)
 ifeq ($(CONFIG_FW_THERMAL_THROTTLE), y)
 CONFIG_WLAN_THERMAL_MULTI_CLIENT_SUPPORT := y
 endif
+
+ifeq ($(CONFIG_LITHIUM), y)
+CONFIG_DP_LEGACY_MODE_CSM_DEFAULT_DISABLE := 1
+else
+CONFIG_DP_LEGACY_MODE_CSM_DEFAULT_DISABLE := 0
+endif
 endif

+ 4 - 4
core/dp/ol/inc/cfg_legacy_dp.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2019, 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
@@ -26,7 +26,7 @@
 /*
  * <ini>
  * gEnableFlowSteering - Enable rx traffic flow steering
- * @Default: false
+ * @Default: true
  *
  * Enable Rx traffic flow steering to enable Rx interrupts on multiple CEs based
  * on the flows. Different CEs<==>different IRQs<==>probably different CPUs.
@@ -40,7 +40,7 @@
  #define CFG_DP_FLOW_STEERING_ENABLED \
 		CFG_INI_BOOL( \
 		"gEnableFlowSteering", \
-		false, \
+		true, \
 		"")
 
 /*
@@ -58,7 +58,7 @@
  */
 #define CFG_DP_MAX_MSDUS_PER_RXIND \
 	CFG_INI_UINT("maxMSDUsPerRxInd", \
-	4, 32, 32, CFG_VALUE_OR_DEFAULT, \
+	4, 32, 8, CFG_VALUE_OR_DEFAULT, \
 	"Max number of MSDUs per HTT RX INORDER IND msg")
 
 /*