Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f417628 authored by Surya Prakash Sivaraj's avatar Surya Prakash Sivaraj
Browse files

qcacld-3.0: Change best candidate weight from 100 to 200

With new scoring parameters, host calculates candidate
scores equal to the best candidate score, and connects
with best candidate, without considering the bssid hint
from userspace.

Increase the max limit of the best candidate from 10000
to 20000, to keep score of preferred candidate at the top.

Change-Id: I31a71a715eb3ad29987886558e20cf2a9fec66e9
CRs-Fixed: 3084044
parent 8e0a4e61
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
 * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -1831,9 +1832,9 @@ static void mlme_init_scoring_cfg(struct wlan_objmgr_psoc *psoc,
	 * If configured weights are greater than max weight,
	 * fallback to default weights
	 */
	if (total_weight > BEST_CANDIDATE_MAX_WEIGHT) {
	if (total_weight > MAX_BSS_SCORE) {
		mlme_legacy_err("Total weight greater than %d, using default weights",
				BEST_CANDIDATE_MAX_WEIGHT);
				MAX_BSS_SCORE);
		scoring_cfg->weight_cfg.rssi_weightage = RSSI_WEIGHTAGE;
		scoring_cfg->weight_cfg.ht_caps_weightage =
						HT_CAPABILITY_WEIGHTAGE;