Procházet zdrojové kódy

qcacld-3.0: Remove unused INI gFirstScanBucketThreshold

Currently INI: gFirstScanBucketThreshold is not used
while LFR2/LFR3 roaming.

Remove unused INI gFirstScanBucketThreshold

Change-Id: Ifa909fc57d3ac3da696369fcffc390826f393b44
CRs-Fixed: 2767372
Abhinav Kumar před 4 roky
rodič
revize
aad917a899

+ 0 - 2
components/mlme/core/src/wlan_mlme_main.c

@@ -1627,8 +1627,6 @@ static void mlme_init_lfr_cfg(struct wlan_objmgr_psoc *psoc,
 		cfg_get(psoc, CFG_LFR_EARLY_STOP_SCAN_MIN_THRESHOLD);
 	lfr->early_stop_scan_max_threshold =
 		cfg_get(psoc, CFG_LFR_EARLY_STOP_SCAN_MAX_THRESHOLD);
-	lfr->first_scan_bucket_threshold =
-		cfg_get(psoc, CFG_LFR_FIRST_SCAN_BUCKET_THRESHOLD);
 	lfr->roam_dense_traffic_threshold =
 		cfg_get(psoc, CFG_LFR_ROAM_DENSE_TRAFFIC_THRESHOLD);
 	lfr->roam_dense_rssi_thre_offset =

+ 0 - 31
components/mlme/dispatcher/inc/cfg_mlme_lfr.h

@@ -320,36 +320,6 @@
 	CFG_VALUE_OR_DEFAULT, \
 	"Set early stop scan max")
 
-/*
- * <ini>
- * gFirstScanBucketThreshold - Set first scan bucket
- * threshold
- * @Min: -50
- * @Max: -30
- * @Default: -30
- *
- * This ini will configure the first scan bucket
- * threshold to the mentioned value and all the AP's which
- * have RSSI under this threshold will fall under this
- * bucket. This configuration item used to tweak and
- * test the input for internal algorithm.
- *
- * Related: None
- *
- * Supported Feature: Scan
- *
- * Usage: Internal
- *
- * </ini>
- */
-#define CFG_LFR_FIRST_SCAN_BUCKET_THRESHOLD CFG_INI_INT( \
-	"gFirstScanBucketThreshold", \
-	-50, \
-	-30, \
-	-30, \
-	CFG_VALUE_OR_DEFAULT, \
-	"Set first scan bucket")
-
 /*
  * <ini>
  * gtraffic_threshold - Dense traffic threshold
@@ -2799,7 +2769,6 @@
 	CFG(CFG_LFR_EARLY_STOP_SCAN_ENABLE) \
 	CFG(CFG_LFR_EARLY_STOP_SCAN_MIN_THRESHOLD) \
 	CFG(CFG_LFR_EARLY_STOP_SCAN_MAX_THRESHOLD) \
-	CFG(CFG_LFR_FIRST_SCAN_BUCKET_THRESHOLD) \
 	CFG(CFG_LFR_ROAM_DENSE_TRAFFIC_THRESHOLD) \
 	CFG(CFG_LFR_ROAM_DENSE_RSSI_THRE_OFFSET) \
 	CFG(CFG_LFR_ROAM_DENSE_MIN_APS) \

+ 0 - 11
components/mlme/dispatcher/inc/wlan_mlme_ucfg_api.h

@@ -1130,17 +1130,6 @@ ucfg_mlme_get_roaming_triggers(struct wlan_objmgr_psoc *psoc)
 }
 #endif
 
-/**
- * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
- * @psoc: pointer to psoc object
- * @val:  first scan bucket threshold
- *
- * Return: QDF Status
- */
-QDF_STATUS
-ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
-					  uint8_t *val);
-
 /**
  * ucfg_mlme_is_mawc_enabled() - MAWC enabled or not
  * @psoc: pointer to psoc object

+ 0 - 17
components/mlme/dispatcher/src/wlan_mlme_ucfg_api.c

@@ -792,23 +792,6 @@ ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
 }
 #endif
 
-QDF_STATUS
-ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
-					  uint8_t *val)
-{
-	struct wlan_mlme_psoc_ext_obj *mlme_obj;
-
-	mlme_obj = mlme_get_psoc_ext_obj(psoc);
-	if (!mlme_obj) {
-		*val = cfg_default(CFG_LFR_FIRST_SCAN_BUCKET_THRESHOLD);
-		return QDF_STATUS_E_INVAL;
-	}
-
-	*val = mlme_obj->cfg.lfr.first_scan_bucket_threshold;
-
-	return QDF_STATUS_SUCCESS;
-}
-
 QDF_STATUS
 ucfg_mlme_is_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool *val)
 {