aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-06-08 00:50:52 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2021-06-08 03:01:58 +0200
commit9f913bec2c197b9cde50a40610aaae231cc3ffb1 (patch)
tree820b216100ad5b05246aeb54beecc7fbda628fdb /src/osmo-bsc
parentd4dbf235edce76b495ca0dbcbec9c939be412948 (diff)
cosmetic prep: hodec2: move is_upgrade_to_tchf() further up
Diffstat (limited to 'src/osmo-bsc')
-rw-r--r--src/osmo-bsc/handover_decision_2.c14
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.
*/