浏览代码

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 年之前
父节点
当前提交
2b7b671b37
共有 1 个文件被更改,包括 12 次插入3 次删除
  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
 #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>
  * rssi_weightage/RoamAPScore_RSSIWeight - RSSI Weightage to calculate best
@@ -43,9 +52,9 @@
  */
 #define CFG_SCORING_RSSI_WEIGHTAGE CFG_INI_UINT( \
 	"rssi_weightage RoamAPScore_RSSIWeight", \
-	0, \
-	100, \
-	20, \
+	RoamAPScore_RSSIWeight_min, \
+	RoamAPScore_RSSIWeight_max, \
+	RoamAPScore_RSSIWeight_default, \
 	CFG_VALUE_OR_DEFAULT, \
 	"RSSI Weightage")