Prechádzať zdrojové kódy

qcacld-3.0: Move gMaxConcurrentActiveSessions from HDD to Plcy manager

As part of new INI/CFG model, move gMaxConcurrentActiveSessions
ownership from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: Iac1451fc457d9bceee73596affdae54895917040
Krunal Soni 6 rokov pred
rodič
commit
83d4960206
2 zmenil súbory, kde vykonal 0 pridanie a 33 odobranie
  1. 0 24
      core/hdd/inc/wlan_hdd_cfg.h
  2. 0 9
      core/hdd/src/wlan_hdd_cfg.c

+ 0 - 24
core/hdd/inc/wlan_hdd_cfg.h

@@ -4699,28 +4699,6 @@ enum hdd_link_speed_rpt_type {
 
 #endif /* MSM_PLATFORM */
 
-/*
- * <ini>
- * gMaxConcurrentActiveSessions - Maximum number of concurrent connections.
- * @Min: 1
- * @Max: 4
- * @Default: 3
- *
- * This ini is used to configure the maximum number of concurrent connections.
- *
- * Related: None.
- *
- * Supported Feature: Concurrency
- *
- * Usage: Internal/External
- *
- * </ini>
- */
-#define CFG_MAX_CONCURRENT_CONNECTIONS_NAME        "gMaxConcurrentActiveSessions"
-#define CFG_MAX_CONCURRENT_CONNECTIONS_DEFAULT     (3)
-#define CFG_MAX_CONCURRENT_CONNECTIONS_MIN         (1)
-#define CFG_MAX_CONCURRENT_CONNECTIONS_MAX         (4)
-
 /*
  * <ini>
  * gIgnoreCAC - Used to ignore CAC
@@ -7690,8 +7668,6 @@ struct hdd_config {
 
 	uint8_t enableFwModuleLogLevel[FW_MODULE_LOG_LEVEL_STRING_LENGTH];
 
-	uint8_t gMaxConcurrentActiveSessions;
-
 	uint8_t ignoreCAC;
 
 	bool enable_sap_mandatory_chan_list;

+ 0 - 9
core/hdd/src/wlan_hdd_cfg.c

@@ -1957,13 +1957,6 @@ struct reg_table_entry g_registry_table[] = {
 			    VAR_FLAGS_NONE,
 			    (void *)CFG_ENABLE_CONCURRENT_STA_DEFAULT),
 
-	REG_VARIABLE(CFG_MAX_CONCURRENT_CONNECTIONS_NAME, WLAN_PARAM_Integer,
-		     struct hdd_config, gMaxConcurrentActiveSessions,
-		     VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
-		     CFG_MAX_CONCURRENT_CONNECTIONS_DEFAULT,
-		     CFG_MAX_CONCURRENT_CONNECTIONS_MIN,
-		     CFG_MAX_CONCURRENT_CONNECTIONS_MAX),
-
 	REG_VARIABLE(CFG_IGNORE_CAC_NAME, WLAN_PARAM_Integer,
 		     struct hdd_config, ignoreCAC,
 		     VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
@@ -4265,8 +4258,6 @@ QDF_STATUS hdd_set_policy_mgr_user_cfg(struct hdd_context *hdd_ctx)
 
 	user_cfg->enable_mcc_adaptive_scheduler =
 		hdd_ctx->config->enableMCCAdaptiveScheduler;
-	user_cfg->max_concurrent_active_sessions =
-		hdd_ctx->config->gMaxConcurrentActiveSessions;
 
 	status = ucfg_mlme_get_vht_enable2x2(hdd_ctx->psoc,
 					     &user_cfg->enable2x2);