From ec932147b091f102c8453efe507a0d2a15c5636c Mon Sep 17 00:00:00 2001 From: Varun Reddy Yeturu Date: Fri, 13 Nov 2015 08:11:43 -0800 Subject: [PATCH] qcacld-3.0: Change the range of values for Early Stop Scan feature Change the range of values for early stop scan feature configuration items as per firmware expectations. CRs-Fixed: 939185 Change-Id: I7d893cd1ed44a71bffaab22121f052288b14b640 --- core/hdd/inc/wlan_hdd_cfg.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index 82c99e896b6c..0e2e2fd236c3 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -2723,25 +2723,25 @@ enum dot11p_mode { #define CFG_EARLY_STOP_SCAN_ENABLE_DEFAULT (0) /* * Early stop scan minimum threshold is the minimum threshold + * to be considered for stopping the scan. The algorithm starts + * with a scan on the greedy channel list with the maximum threshold + * and steps down the threshold by 20% for each further channel. + * It can step down on each channel but cannot go lower than the minimum + * threshold. + */ +#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD "gEarlyStopScanMinThreshold" +#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_MIN (-80) +#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_MAX (-70) +#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_DEFAULT (-78) +/* + * Early stop scan maximum threshold is the maximum threshold * at which the candidate AP should be to be qualified as a * potential roam candidate and good enough to stop the roaming scan */ -#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD "gEarlyStopScanMinThreshold" -#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_MIN (-60) -#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_MAX (-40) -#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_DEFAULT (-45) -/* - * Early stop scan maximum threshold is the maximum threshold - * to be considered for stopping the scan. The algorithm starts - * with a scan on the greedy channel list with the minimum threshold - * and steps up the threshold by 20% for each further channel. - * It can step up on each channel but cannot exceed the maximum - * threshold. - */ #define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD "gEarlyStopScanMaxThreshold" -#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_MIN (-80) -#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_MAX (-70) -#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_DEFAULT (-78) +#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_MIN (-60) +#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_MAX (-40) +#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_DEFAULT (-45) /*--------------------------------------------------------------------------- Type declarations