qcacmn: Send vendor_roam_score_algorithm ini to firmware
vendor_roam_score_algorithm is added in order to enable/disable roam score algorithm. With this roam score Algorithm, AP score will be calculated based on below equation: AP Score = (RSSIfactor * rssiweight(0.65)) + (CUfactor *cuweight(0.35)) Add vendor_roam_score_algorithm inside scoring_param and inside function send_roam_scan_offload_ap_profile_cmd_tlv populate score_param->vendor_roam_score_algorithm_id from ap profile. Change-Id: I21bb788d96a34c3bf237f0d304e51a7f4664d2ee CRs-Fixed: 2517492
This commit is contained in:
@@ -397,7 +397,8 @@ struct param_slot_scoring {
|
||||
* @rssi_scoring: RSSI scoring information.
|
||||
* @esp_qbss_scoring: ESP/QBSS scoring percentage information
|
||||
* @oce_wan_scoring: OCE WAN metrics percentage information
|
||||
*/
|
||||
* @vendor_roam_score_algorithm: Prefered algorithm for roam candidate selection
|
||||
*/
|
||||
struct scoring_param {
|
||||
uint32_t disable_bitmap;
|
||||
int32_t rssi_weightage;
|
||||
@@ -416,6 +417,7 @@ struct scoring_param {
|
||||
uint32_t nss_index_score;
|
||||
uint32_t roam_score_delta;
|
||||
uint32_t roam_trigger_bitmap;
|
||||
uint32_t vendor_roam_score_algorithm;
|
||||
struct rssi_scoring rssi_scoring;
|
||||
struct param_slot_scoring esp_qbss_scoring;
|
||||
struct param_slot_scoring oce_wan_scoring;
|
||||
|
@@ -1572,8 +1572,10 @@ send_roam_scan_offload_ap_profile_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
score_param->pcl_weightage_pcnt = ap_profile->param.pcl_weightage;
|
||||
score_param->oce_wan_weightage_pcnt =
|
||||
ap_profile->param.oce_wan_weightage;
|
||||
score_param->vendor_roam_score_algorithm_id =
|
||||
ap_profile->param.vendor_roam_score_algorithm;
|
||||
|
||||
WMI_LOGD("Score params weightage: disable_bitmap %x rssi %d ht %d vht %d he %d BW %d band %d NSS %d ESP %d BF %d PCL %d OCE WAN %d",
|
||||
WMI_LOGD("Score params weightage: disable_bitmap %x rssi %d ht %d vht %d he %d BW %d band %d NSS %d ESP %d BF %d PCL %d OCE WAN %d roam score algo %d",
|
||||
score_param->disable_bitmap, score_param->rssi_weightage_pcnt,
|
||||
score_param->ht_weightage_pcnt,
|
||||
score_param->vht_weightage_pcnt,
|
||||
@@ -1583,7 +1585,8 @@ send_roam_scan_offload_ap_profile_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
score_param->esp_qbss_weightage_pcnt,
|
||||
score_param->beamforming_weightage_pcnt,
|
||||
score_param->pcl_weightage_pcnt,
|
||||
score_param->oce_wan_weightage_pcnt);
|
||||
score_param->oce_wan_weightage_pcnt,
|
||||
score_param->vendor_roam_score_algorithm_id);
|
||||
|
||||
score_param->bw_scoring.score_pcnt = ap_profile->param.bw_index_score;
|
||||
score_param->band_scoring.score_pcnt =
|
||||
|
Reference in New Issue
Block a user