Prechádzať zdrojové kódy

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: I81ece854a2d8b34f232e03c8ab835161d58c56b1
CRs-Fixed: 3355346
Divyajyothi Goparaju 2 rokov pred
rodič
commit
61d3b23a1c

+ 31 - 4
umac/mlme/connection_mgr/dispatcher/inc/cfg_mlme_score_params.h

@@ -26,10 +26,16 @@
 #define RoamAPScore_RSSIWeight_min 0
 #define RoamAPScore_RSSIWeight_max 100
 #define RoamAPScore_RSSIWeight_default 65
+# define ROAMAPSCORE_CUWEIGHT_MIN 0
+# define ROAMAPSCORE_CUWEIGHT_MAX 100
+# define ROAMAPSCORE_CUWEIGHT_DEFAULT 35
 #else
 #define RoamAPScore_RSSIWeight_min 0
 #define RoamAPScore_RSSIWeight_max 100
 #define RoamAPScore_RSSIWeight_default 20
+# define ROAMAPSCORE_CUWEIGHT_MIN 0
+# define ROAMAPSCORE_CUWEIGHT_MAX 100
+# define ROAMAPSCORE_CUWEIGHT_DEFAULT 25
 #endif
 /*
  * <ini>
@@ -278,7 +284,7 @@
 
 /*
  * <ini>
- * channel_congestion_weightage/RoamAPScore_CUWeight - channel Congestion
+ * channel_congestion_weightage - channel Congestion
  * Weightage to
  * calculate best candidate
  * @Min: 0
@@ -296,11 +302,32 @@
  *
  * </ini>
  */
+
+/*
+ * <ini>
+ * RoamAPScore_CUWeight - roamapscore cu weight
+ * Weightage to
+ * calculate best candidate
+ * @Min: 0
+ * @Max: 100
+ * @Default: 35
+ *
+ * This ini is used to increase/decrease channel congestion weightage in
+ * candidate selection. Congestion is measured with the help of ESP/QBSS load.
+ *
+ * Related: num_esp_qbss_slots
+ *
+ * Supported Feature: STA Candidate selection
+ *
+ * Usage: External
+ *
+ * </ini>
+ */
 #define CFG_SCORING_CHAN_CONGESTION_WEIGHTAGE CFG_INI_UINT( \
 	"channel_congestion_weightage RoamAPScore_CUWeight", \
-	0, \
-	100, \
-	25, \
+	ROAMAPSCORE_CUWEIGHT_MIN, \
+	ROAMAPSCORE_CUWEIGHT_MAX, \
+	ROAMAPSCORE_CUWEIGHT_DEFAULT, \
 	CFG_VALUE_OR_DEFAULT, \
 	"Channel Congestion Weightage")