qcacld-3.0: Use new enum to check the max percentage for the score

Use new enum to check the max percentage for the score.

Change-Id: I7a040f7604a426d659e732c2853fbacc2b6a5a35
CRs-Fixed: 2673982
This commit is contained in:
Abhishek Singh
2020-04-28 12:10:01 +05:30
committed by nshrivas
szülő 5632b4865b
commit 758eff24ba
3 fájl változott, egészen pontosan 2 új sor hozzáadva és 26 régi sor törölve

Fájl megtekintése

@@ -1733,9 +1733,9 @@ mlme_limit_max_per_index_score(uint32_t per_index_score)
for (i = 0; i < MAX_INDEX_PER_INI; i++) {
score = WLAN_GET_SCORE_PERCENTAGE(per_index_score, i);
if (score > MAX_INDEX_SCORE)
if (score > MAX_PCT_SCORE)
WLAN_SET_SCORE_PERCENTAGE(per_index_score,
MAX_INDEX_SCORE, i);
MAX_PCT_SCORE, i);
}
return per_index_score;