aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/handover_decision_2.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-06-08 01:23:36 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2021-06-08 03:02:01 +0200
commit9da036fe6e50af544e7dcfafa0dff036385efb3b (patch)
treeb1ae707ad8c1461cdca5e92d5d5f23c1887d2d69 /src/osmo-bsc/handover_decision_2.c
parent9f913bec2c197b9cde50a40610aaae231cc3ffb1 (diff)
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
Diffstat (limited to 'src/osmo-bsc/handover_decision_2.c')
-rw-r--r--src/osmo-bsc/handover_decision_2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc/handover_decision_2.c b/src/osmo-bsc/handover_decision_2.c
index 3e86a9289..a866293a0 100644
--- a/src/osmo-bsc/handover_decision_2.c
+++ b/src/osmo-bsc/handover_decision_2.c
@@ -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)