qcacld-3.0: Fix roam scoring weightage ini configuration
To ensure the total weigtage of various factors doesn't exceed 100, there is a check in mlme_init_scoring_cfg(). If the total weightage for roam score exceeds 100, the default values are pushed for the weight configs. In this computation, the enable/disable value is also added, which results in configuration only upto 99%. Fix this weight configuration and remove the enable flag value addition to the total weight. Change-Id: I15cf70428b2e8afa2203299dae98c287e5e2222d CRs-Fixed: 2527361
This commit is contained in:
parent
c7283b8779
commit
dd6a45dace
@ -1750,8 +1750,7 @@ static void mlme_init_scoring_cfg(struct wlan_objmgr_psoc *psoc,
|
|||||||
scoring_cfg->weight_cfg.oce_wan_weightage =
|
scoring_cfg->weight_cfg.oce_wan_weightage =
|
||||||
cfg_get(psoc, CFG_SCORING_OCE_WAN_WEIGHTAGE);
|
cfg_get(psoc, CFG_SCORING_OCE_WAN_WEIGHTAGE);
|
||||||
|
|
||||||
total_weight = scoring_cfg->enable_scoring_for_roam +
|
total_weight = scoring_cfg->weight_cfg.rssi_weightage +
|
||||||
scoring_cfg->weight_cfg.rssi_weightage +
|
|
||||||
scoring_cfg->weight_cfg.ht_caps_weightage +
|
scoring_cfg->weight_cfg.ht_caps_weightage +
|
||||||
scoring_cfg->weight_cfg.vht_caps_weightage +
|
scoring_cfg->weight_cfg.vht_caps_weightage +
|
||||||
scoring_cfg->weight_cfg.he_caps_weightage +
|
scoring_cfg->weight_cfg.he_caps_weightage +
|
||||||
|
Loading…
Reference in New Issue
Block a user