|
@@ -1772,6 +1772,8 @@ static void mlme_init_scoring_cfg(struct wlan_objmgr_psoc *psoc,
|
|
cfg_get(psoc, CFG_SCORING_OCE_WAN_WEIGHTAGE);
|
|
cfg_get(psoc, CFG_SCORING_OCE_WAN_WEIGHTAGE);
|
|
scoring_cfg->weight_cfg.oce_ap_tx_pwr_weightage =
|
|
scoring_cfg->weight_cfg.oce_ap_tx_pwr_weightage =
|
|
cfg_get(psoc, CFG_OCE_AP_TX_PWR_WEIGHTAGE);
|
|
cfg_get(psoc, CFG_OCE_AP_TX_PWR_WEIGHTAGE);
|
|
|
|
+ scoring_cfg->weight_cfg.oce_subnet_id_weightage =
|
|
|
|
+ cfg_get(psoc, CFG_OCE_SUBNET_ID_WEIGHTAGE);
|
|
|
|
|
|
total_weight = scoring_cfg->weight_cfg.rssi_weightage +
|
|
total_weight = scoring_cfg->weight_cfg.rssi_weightage +
|
|
scoring_cfg->weight_cfg.ht_caps_weightage +
|
|
scoring_cfg->weight_cfg.ht_caps_weightage +
|
|
@@ -1784,7 +1786,8 @@ static void mlme_init_scoring_cfg(struct wlan_objmgr_psoc *psoc,
|
|
scoring_cfg->weight_cfg.pcl_weightage +
|
|
scoring_cfg->weight_cfg.pcl_weightage +
|
|
scoring_cfg->weight_cfg.channel_congestion_weightage +
|
|
scoring_cfg->weight_cfg.channel_congestion_weightage +
|
|
scoring_cfg->weight_cfg.oce_wan_weightage +
|
|
scoring_cfg->weight_cfg.oce_wan_weightage +
|
|
- scoring_cfg->weight_cfg.oce_ap_tx_pwr_weightage;
|
|
|
|
|
|
+ scoring_cfg->weight_cfg.oce_ap_tx_pwr_weightage +
|
|
|
|
+ scoring_cfg->weight_cfg.oce_subnet_id_weightage;
|
|
|
|
|
|
/*
|
|
/*
|
|
* If configured weights are greater than max weight,
|
|
* If configured weights are greater than max weight,
|
|
@@ -1812,6 +1815,8 @@ static void mlme_init_scoring_cfg(struct wlan_objmgr_psoc *psoc,
|
|
scoring_cfg->weight_cfg.oce_wan_weightage = OCE_WAN_WEIGHTAGE;
|
|
scoring_cfg->weight_cfg.oce_wan_weightage = OCE_WAN_WEIGHTAGE;
|
|
scoring_cfg->weight_cfg.oce_ap_tx_pwr_weightage =
|
|
scoring_cfg->weight_cfg.oce_ap_tx_pwr_weightage =
|
|
OCE_AP_TX_POWER_WEIGHTAGE;
|
|
OCE_AP_TX_POWER_WEIGHTAGE;
|
|
|
|
+ scoring_cfg->weight_cfg.oce_subnet_id_weightage =
|
|
|
|
+ OCE_SUBNET_ID_WEIGHTAGE;
|
|
}
|
|
}
|
|
|
|
|
|
scoring_cfg->rssi_score.best_rssi_threshold =
|
|
scoring_cfg->rssi_score.best_rssi_threshold =
|