qcacld-3.0: Add support for security scoring
Add support for security score. On the basis of score, host will select AP for initial connection and roaming. Change-Id: I041a1b0c1456d7f01dd07e9b282996c56755655e CRs-Fixed: 3113213
This commit is contained in:

committed by
Madan Koyyalamudi

parent
3bf75d584b
commit
5a5a3deb12
@@ -4323,6 +4323,8 @@ send_roam_scan_offload_ap_profile_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
score_param->bw_weightage_pcnt = ap_profile->param.bw_weightage;
|
||||
score_param->band_weightage_pcnt = ap_profile->param.band_weightage;
|
||||
score_param->nss_weightage_pcnt = ap_profile->param.nss_weightage;
|
||||
score_param->security_weightage_pcnt =
|
||||
ap_profile->param.security_weightage;
|
||||
score_param->esp_qbss_weightage_pcnt =
|
||||
ap_profile->param.esp_qbss_weightage;
|
||||
score_param->beamforming_weightage_pcnt =
|
||||
@@ -4339,32 +4341,37 @@ send_roam_scan_offload_ap_profile_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
score_param->sae_pk_ap_weightage_pcnt =
|
||||
ap_profile->param.sae_pk_ap_weightage;
|
||||
send_update_mlo_roam_params(score_param, ap_profile);
|
||||
wmi_debug("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 APTX %d roam score algo %d subnet id %d sae-pk %d",
|
||||
score_param->disable_bitmap, score_param->rssi_weightage_pcnt,
|
||||
score_param->ht_weightage_pcnt,
|
||||
score_param->vht_weightage_pcnt,
|
||||
score_param->he_weightage_pcnt, score_param->bw_weightage_pcnt,
|
||||
score_param->band_weightage_pcnt,
|
||||
score_param->nss_weightage_pcnt,
|
||||
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_ap_tx_pwr_weightage_pcnt,
|
||||
score_param->vendor_roam_score_algorithm_id,
|
||||
score_param->oce_ap_subnet_id_weightage_pcnt,
|
||||
score_param->sae_pk_ap_weightage_pcnt);
|
||||
wmi_debug("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 APTX %d roam score algo %d subnet id %d sae-pk %d security %d",
|
||||
score_param->disable_bitmap, score_param->rssi_weightage_pcnt,
|
||||
score_param->ht_weightage_pcnt,
|
||||
score_param->vht_weightage_pcnt,
|
||||
score_param->he_weightage_pcnt,
|
||||
score_param->bw_weightage_pcnt,
|
||||
score_param->band_weightage_pcnt,
|
||||
score_param->nss_weightage_pcnt,
|
||||
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_ap_tx_pwr_weightage_pcnt,
|
||||
score_param->vendor_roam_score_algorithm_id,
|
||||
score_param->oce_ap_subnet_id_weightage_pcnt,
|
||||
score_param->sae_pk_ap_weightage_pcnt,
|
||||
score_param->security_weightage_pcnt);
|
||||
|
||||
score_param->bw_scoring.score_pcnt = ap_profile->param.bw_index_score;
|
||||
score_param->band_scoring.score_pcnt =
|
||||
ap_profile->param.band_index_score;
|
||||
score_param->nss_scoring.score_pcnt =
|
||||
ap_profile->param.nss_index_score;
|
||||
score_param->security_scoring.score_pcnt =
|
||||
ap_profile->param.security_index_score;
|
||||
|
||||
wmi_debug("bw_index_score %x band_index_score %x nss_index_score %x",
|
||||
wmi_debug("bw_index_score %x band_index_score %x nss_index_score %x security_index_score %x",
|
||||
score_param->bw_scoring.score_pcnt,
|
||||
score_param->band_scoring.score_pcnt,
|
||||
score_param->nss_scoring.score_pcnt);
|
||||
score_param->nss_scoring.score_pcnt,
|
||||
score_param->security_scoring.score_pcnt);
|
||||
|
||||
score_param->rssi_scoring.best_rssi_threshold =
|
||||
(-1) * ap_profile->param.rssi_scoring.best_rssi_threshold;
|
||||
|
Reference in New Issue
Block a user