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
Esse commit está contido em:
Pragaspathi Thilagaraj
2018-12-24 14:46:53 +05:30
commit de nshrivas
commit 39d616074e
5 arquivos alterados com 44 adições e 12 exclusões

Ver arquivo

@@ -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

Ver arquivo

@@ -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;
};
/*