hodec2: do not keep candidates with zero requirements met

When check_requirements() returns zero, do not keep such an entry in the
candidates list at all. This removes logging confusion, where some "candidates"
are still listed even though not meeting any handover requirements.

Change-Id: I12e48292d5731cb601165c870b9570003bc488ec
This commit is contained in:
Neels Hofmeyr 2020-08-10 21:12:46 +02:00
parent f5dab9a2c8
commit 9ed0d17d53
1 changed files with 7 additions and 0 deletions

View File

@ -861,6 +861,10 @@ static void collect_assignment_candidate(struct gsm_lchan *lchan, struct ho_cand
};
debug_candidate(&c, 0, tchf_count, tchh_count);
if (!c.requirements)
return;
clist[*candidates] = c;
(*candidates)++;
}
@ -966,6 +970,9 @@ static void collect_handover_candidate(struct gsm_lchan *lchan, struct neigh_mea
debug_candidate(&c, av_rxlev, tchf_count, tchh_count);
if (!c.requirements)
return;
clist[*candidates] = c;
(*candidates)++;
}