diff options
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. */ |