瀏覽代碼

qcacld-3.0: Add new WCNSS_qcom.ini "bss_load_bss_sample_time"

Add new ini item "bss_load_sample_time" to send the monitor
time window for which the beacons are to be sampled to collect
the bss load information.
Also add changes to send bss load trigger parameters only during
RSO start during initial connection

Change-Id: I61d1f3745b56199838fc886f1ed3a05786653501
CRs-Fixed: 2372147
Pragaspathi Thilagaraj 6 年之前
父節點
當前提交
16e4c43594
共有 3 個文件被更改,包括 32 次插入4 次删除
  1. 1 0
      mlme/core/src/wlan_mlme_main.c
  2. 26 2
      mlme/dispatcher/inc/cfg_mlme_lfr.h
  3. 5 2
      mlme/dispatcher/inc/wlan_mlme_public_struct.h

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

@@ -1321,6 +1321,7 @@ mlme_init_bss_load_trigger_params(struct wlan_objmgr_psoc *psoc,
 	bss_load_trig->enabled =
 		cfg_get(psoc, CFG_ENABLE_BSS_LOAD_TRIGGERED_ROAM);
 	bss_load_trig->threshold = cfg_get(psoc, CFG_BSS_LOAD_THRESHOLD);
+	bss_load_trig->sample_time = cfg_get(psoc, CFG_BSS_LOAD_SAMPLE_TIME);
 }
 
 static void mlme_init_lfr_cfg(struct wlan_objmgr_psoc *psoc,

+ 26 - 2
mlme/dispatcher/inc/cfg_mlme_lfr.h

@@ -1851,7 +1851,7 @@
  * enable_bss_load_roam_trigger - enable/disable bss load based roam trigger
  * @Min: 0
  * @Max: 1
- * @Default: 1
+ * @Default: 0
  *
  * This ini when enabled, allows the firmware to roam when bss load outpaces
  * the configured bss load threshold. When this ini is disabled, firmware
@@ -1867,7 +1867,7 @@
  */
 #define CFG_ENABLE_BSS_LOAD_TRIGGERED_ROAM CFG_INI_BOOL( \
 			"enable_bss_load_roam_trigger", \
-			1, \
+			0, \
 			"enable bss load triggered roaming")
 
 /*
@@ -1896,6 +1896,29 @@
 		CFG_VALUE_OR_DEFAULT, \
 		"bss load threshold")
 
+/*
+ * <ini>
+ * bss_load_sample_time - Time in milliseconds for which the bss load values
+ * obtained from the beacons is sampled.
+ * @Min: 0
+ * @Max: 0xffffffff
+ * @Default: 10000
+ *
+ * Related: None
+ *
+ * Supported Feature: Roaming
+ *
+ * Usage: External
+ *
+ * </ini>
+ */
+#define CFG_BSS_LOAD_SAMPLE_TIME CFG_INI_UINT( \
+			"bss_load_sample_time", \
+			0, \
+			0xffffffff, \
+			10000, \
+			CFG_VALUE_OR_DEFAULT, \
+			"bss load sampling time")
 
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
 /*
@@ -2024,6 +2047,7 @@
 	CFG(CFG_LFR_DELAY_BEFORE_VDEV_STOP) \
 	CFG(CFG_ENABLE_BSS_LOAD_TRIGGERED_ROAM) \
 	CFG(CFG_BSS_LOAD_THRESHOLD) \
+	CFG(CFG_BSS_LOAD_SAMPLE_TIME) \
 	ROAM_OFFLOAD_ALL \
 	LFR_ESE_ALL
 

+ 5 - 2
mlme/dispatcher/inc/wlan_mlme_public_struct.h

@@ -1166,12 +1166,15 @@ enum roaming_dfs_channel_type {
 
 /*
  * struct bss_load_trigger - parameters related to bss load triggered roam
- * @enabled - flag to check if this trigger is enabled/disabled
- * @threshold - Bss load threshold value above which roaming should start
+ * @enabled: flag to check if this trigger is enabled/disabled
+ * @threshold: Bss load threshold value above which roaming should start
+ * @sample_time: Time duration in milliseconds for which the bss load value
+ * should be monitored
  */
 struct bss_load_trigger {
 	bool enabled;
 	uint32_t threshold;
+	uint32_t sample_time;
 };
 
 /*