Explorar el Código

qcacld-3.0: Add aliasing for gNeighborLookupThreshold ini

Based on new requirement, add aliasing for gNeighborLookupThreshold
ini and update the range of this ini as well.

Change-Id: I0a62e209d6a62001d6aec48849c4900062ae5bc7
CRs-Fixed: 3011060
Ashish Kumar Dhanotiya hace 3 años
padre
commit
0f6fd1f8db

+ 1 - 1
components/mlme/core/src/wlan_mlme_main.c

@@ -1754,7 +1754,7 @@ static void mlme_init_lfr_cfg(struct wlan_objmgr_psoc *psoc,
 	lfr->neighbor_scan_min_timer_period =
 		cfg_get(psoc, CFG_LFR_NEIGHBOR_SCAN_MIN_TIMER_PERIOD);
 	lfr->neighbor_lookup_rssi_threshold =
-		cfg_get(psoc, CFG_LFR_NEIGHBOR_LOOKUP_RSSI_THRESHOLD);
+		abs(cfg_get(psoc, CFG_LFR_NEIGHBOR_LOOKUP_RSSI_THRESHOLD));
 	lfr->opportunistic_scan_threshold_diff =
 		cfg_get(psoc, CFG_LFR_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF);
 	lfr->roam_rescan_rssi_diff =

+ 5 - 5
components/mlme/dispatcher/inc/cfg_mlme_lfr.h

@@ -1403,9 +1403,9 @@
 
 /*
  * <ini>
- * gNeighborLookupThreshold - Set neighbor lookup rssi
+ * gNeighborLookupThreshold/RoamRSSI_Trigger - Set neighbor lookup rssi
  * threshold
- * @Min: 10
+ * @Min: -100
  * @Max: 120
  * @Default: 78
  *
@@ -1419,9 +1419,9 @@
  *
  * </ini>
  */
-#define CFG_LFR_NEIGHBOR_LOOKUP_RSSI_THRESHOLD CFG_INI_UINT( \
-	"gNeighborLookupThreshold", \
-	10, \
+#define CFG_LFR_NEIGHBOR_LOOKUP_RSSI_THRESHOLD CFG_INI_INT( \
+	"gNeighborLookupThreshold RoamRSSI_Trigger", \
+	-100, \
 	120, \
 	78, \
 	CFG_VALUE_OR_DEFAULT, \