diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2021-06-08 00:50:52 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2021-06-08 03:01:58 +0200 |
commit | 9f913bec2c197b9cde50a40610aaae231cc3ffb1 (patch) | |
tree | 820b216100ad5b05246aeb54beecc7fbda628fdb /src/osmo-bsc | |
parent | d4dbf235edce76b495ca0dbcbec9c939be412948 (diff) |
cosmetic prep: hodec2: move is_upgrade_to_tchf() further up
Preparation for Id40d1cf8b58410c7d4eb87407fe8b8106e352438
Related: SYS#5198 SYS#5365
Change-Id: I3fd0e257e033c573017ce62e3efc19b094acf73c
Diffstat (limited to 'src/osmo-bsc')
-rw-r--r-- | src/osmo-bsc/handover_decision_2.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/osmo-bsc/handover_decision_2.c b/src/osmo-bsc/handover_decision_2.c index b2027d9db..3e86a9289 100644 --- a/src/osmo-bsc/handover_decision_2.c +++ b/src/osmo-bsc/handover_decision_2.c @@ -167,6 +167,13 @@ static enum ho_reason global_ho_reason; static void congestion_check_cb(void *arg); +static bool is_upgrade_to_tchf(const struct ho_candidate *c, uint8_t for_requirement) +{ + return c->current.lchan + && (c->current.lchan->type == GSM_LCHAN_TCH_H) + && ((c->requirements & for_requirement) & (REQUIREMENT_B_TCHF | REQUIREMENT_C_TCHF)); +} + static unsigned int ts_usage_count(struct gsm_bts_trx_ts *ts) { struct gsm_lchan *lchan; @@ -1535,13 +1542,6 @@ static bool lchan_is_on_dynamic_ts(struct gsm_lchan *lchan) || lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_PDCH; } -static bool is_upgrade_to_tchf(const struct ho_candidate *c, uint8_t for_requirement) -{ - return c->current.lchan - && (c->current.lchan->type == GSM_LCHAN_TCH_H) - && ((c->requirements & for_requirement) & (REQUIREMENT_B_TCHF | REQUIREMENT_C_TCHF)); -} - /* Given two candidates, pick the one that should rather be moved during handover. * Return the better candidate in out-parameters best_cand and best_avg_db. */ |