Browse Source

qcacmn: Give valid range of value for aliasing INI

There are two different name with different range of value for
aliasing INI's. So, it should pick the valid range of value wrt INI
name.

Change-Id: I1b3f8b276a65f2e1659dd4e3ede8512513e3da71
CRs-Fixed: 3268728
Nagalakshmi 2 years ago
parent
commit
2b7b671b37
1 changed files with 12 additions and 3 deletions
  1. 12 3
      umac/mlme/connection_mgr/dispatcher/inc/cfg_mlme_score_params.h

+ 12 - 3
umac/mlme/connection_mgr/dispatcher/inc/cfg_mlme_score_params.h

@@ -22,6 +22,15 @@
 #ifndef __CFG_MLME_SCORE_PARAMS_H
 #ifndef __CFG_MLME_SCORE_PARAMS_H
 #define __CFG_MLME_SCORE_PARAMS_H
 #define __CFG_MLME_SCORE_PARAMS_H
 
 
+#ifdef CONNECTION_ROAMING_CFG
+#define RoamAPScore_RSSIWeight_min 0
+#define RoamAPScore_RSSIWeight_max 100
+#define RoamAPScore_RSSIWeight_default 65
+#else
+#define RoamAPScore_RSSIWeight_min 0
+#define RoamAPScore_RSSIWeight_max 100
+#define RoamAPScore_RSSIWeight_default 20
+#endif
 /*
 /*
  * <ini>
  * <ini>
  * rssi_weightage/RoamAPScore_RSSIWeight - RSSI Weightage to calculate best
  * rssi_weightage/RoamAPScore_RSSIWeight - RSSI Weightage to calculate best
@@ -43,9 +52,9 @@
  */
  */
 #define CFG_SCORING_RSSI_WEIGHTAGE CFG_INI_UINT( \
 #define CFG_SCORING_RSSI_WEIGHTAGE CFG_INI_UINT( \
 	"rssi_weightage RoamAPScore_RSSIWeight", \
 	"rssi_weightage RoamAPScore_RSSIWeight", \
-	0, \
-	100, \
-	20, \
+	RoamAPScore_RSSIWeight_min, \
+	RoamAPScore_RSSIWeight_max, \
+	RoamAPScore_RSSIWeight_default, \
 	CFG_VALUE_OR_DEFAULT, \
 	CFG_VALUE_OR_DEFAULT, \
 	"RSSI Weightage")
 	"RSSI Weightage")