diff --git a/wmi/inc/wmi_unified_roam_param.h b/wmi/inc/wmi_unified_roam_param.h index 50aec4557e..dd91c35f07 100644 --- a/wmi/inc/wmi_unified_roam_param.h +++ b/wmi/inc/wmi_unified_roam_param.h @@ -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; diff --git a/wmi/src/wmi_unified_roam_tlv.c b/wmi/src/wmi_unified_roam_tlv.c index 21f892d27d..281790e6a9 100644 --- a/wmi/src/wmi_unified_roam_tlv.c +++ b/wmi/src/wmi_unified_roam_tlv.c @@ -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 =