Browse Source

qcacmn: 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: Ie3a4ce2cbf4bc2352d5ebc5be939a47818a6d594
CRs-Fixed: 2874759
Alan Chen 4 năm trước cách đây
mục cha
commit
1370e032e9
2 tập tin đã thay đổi với 18 bổ sung12 xóa
  1. 6 6
      umac/scan/dispatcher/inc/wlan_scan_cfg.h
  2. 12 6
      wlan_cfg/cfg_dp.h

+ 6 - 6
umac/scan/dispatcher/inc/wlan_scan_cfg.h

@@ -184,7 +184,7 @@ enum scan_mode_6ghz {
  * active_max_channel_time_6g - Set max time for active 6G channel scan
  * @Min: 0
  * @Max: 10000
- * @Default: 40
+ * @Default: 60
  *
  * This ini is used to set maximum time in msecs spent in active 6G channel scan
  *
@@ -197,7 +197,7 @@ enum scan_mode_6ghz {
  */
 #define CFG_ACTIVE_MAX_6G_CHANNEL_TIME CFG_INI_UINT(\
 		"active_max_channel_time_6g",\
-		0, 10000, 40,\
+		0, 10000, 60,\
 		CFG_VALUE_OR_DEFAULT, "active dwell time for 6G channels")
 
 /*
@@ -205,7 +205,7 @@ enum scan_mode_6ghz {
  * passive_max_channel_time_6g - Set max time for passive 6G channel scan
  * @Min: 0
  * @Max: 10000
- * @Default: 30
+ * @Default: 60
  *
  * This ini is used to set maximum time in msecs spent in passive 6G chan scan
  *
@@ -218,7 +218,7 @@ enum scan_mode_6ghz {
  */
 #define CFG_PASSIVE_MAX_6G_CHANNEL_TIME CFG_INI_UINT(\
 		"passive_max_channel_time_6g",\
-		0, 10000, 30,\
+		0, 10000, 60,\
 		CFG_VALUE_OR_DEFAULT, "passive dwell time for 6G channels")
 
 /*
@@ -288,7 +288,7 @@ enum scan_mode_6ghz {
  * during host scan with conneciton
  * @Min: 0
  * @Max: 4
- * @Default: 2
+ * @Default: 1
  *
  * This ini will set the algo used in dwell time optimization
  * during host scan with connection.
@@ -310,7 +310,7 @@ enum scan_mode_6ghz {
  */
 #define CFG_ADAPTIVE_SCAN_DWELL_MODE CFG_INI_UINT(\
 			"hostscan_adaptive_dwell_mode",\
-			0, 4, PLATFORM_VALUE(2, 0),\
+			0, 4, PLATFORM_VALUE(1, 0),\
 			CFG_VALUE_OR_DEFAULT,\
 			"Enable adaptive dwell mode")
 

+ 12 - 6
wlan_cfg/cfg_dp.h

@@ -374,6 +374,7 @@
 #define WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE 16384
 #define WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE_MIN 1
 #define WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE_MAX 16384
+#define WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE_DEFAULT 128
 
 #define WLAN_CFG_PKTLOG_BUFFER_SIZE 10
 #define WLAN_CFG_PKTLOG_MIN_BUFFER_SIZE 1
@@ -933,7 +934,7 @@
 	CFG_INI_UINT("dp_rx_flow_search_table_size", \
 		WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE_MIN, \
 		WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE_MAX, \
-		WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE, \
+		WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE_DEFAULT, \
 		CFG_VALUE_OR_DEFAULT, \
 		"DP Rx Flow Search Table Size in number of entries")
 
@@ -958,7 +959,7 @@
  * dp_rx_fisa_enable - Control Rx datapath FISA
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: 1
  *
  * This ini is used to enable DP Rx FISA feature
  *
@@ -966,12 +967,12 @@
  *
  * Supported Feature: STA,P2P and SAP IPA disabled terminating
  *
- * Usage: Internal/External
+ * Usage: Internal
  *
  * </ini>
  */
 #define CFG_DP_RX_FISA_ENABLE \
-	CFG_INI_BOOL("dp_rx_fisa_enable", false, \
+	CFG_INI_BOOL("dp_rx_fisa_enable", true, \
 		     "Enable/Disable DP Rx FISA")
 
 #define CFG_DP_RXDMA_MONITOR_RX_DROP_THRESHOLD \
@@ -1028,7 +1029,8 @@
  * legacy_mode_csum_disable - Disable csum offload for legacy 802.11abg modes
  * @Min: 0
  * @Max: 1
- * @Default: 0
+ * @Default: Default value indicating if checksum should be disabled for
+ * legacy WLAN modes
  *
  * This ini is used to disable HW checksum offload capability for legacy
  * connections
@@ -1039,9 +1041,13 @@
  *
  * </ini>
  */
+#ifndef DP_LEGACY_MODE_CSM_DEFAULT_DISABLE
+#define DP_LEGACY_MODE_CSM_DEFAULT_DISABLE 1
+#endif
 
 #define CFG_DP_LEGACY_MODE_CSUM_DISABLE \
-	CFG_INI_BOOL("legacy_mode_csum_disable", false, \
+	CFG_INI_BOOL("legacy_mode_csum_disable", \
+		     DP_LEGACY_MODE_CSM_DEFAULT_DISABLE, \
 		     "Enable/Disable legacy mode checksum")
 
 #define CFG_DP_RX_BUFF_POOL_ENABLE \