hodec2: fix is_upgrade_to_tchf() for requirement A

Add missing REQUIREMENT_A_TCHF to form a full REQUIREMENT_TCHF_MASK.
That allows detecting TCH/F -> TCH/H upgrades also in the requirement A
flags, where we look for any viable lchan.

Prepares for upcoming patch Id40d1cf8b58410c7d4eb87407fe8b8106e352438
which implements TCH/H to TCH/F upgrades within the same cell.

Related: SYS#5198 SYS#5365
Change-Id: Ic44615b314782423bab0ceef5810311776f92754
This commit is contained in:
Neels Hofmeyr 2021-06-08 01:23:36 +02:00
parent 9f913bec2c
commit 9da036fe6e
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ static bool is_upgrade_to_tchf(const struct ho_candidate *c, uint8_t for_require
{
return c->current.lchan
&& (c->current.lchan->type == GSM_LCHAN_TCH_H)
&& ((c->requirements & for_requirement) & (REQUIREMENT_B_TCHF | REQUIREMENT_C_TCHF));
&& ((c->requirements & for_requirement) & REQUIREMENT_TCHF_MASK);
}
static unsigned int ts_usage_count(struct gsm_bts_trx_ts *ts)