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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user