diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-08-22 20:25:54 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-08-22 20:29:44 +0200 |
commit | 77de691b4215578dbfbb7b0a4fb57df862938f2c (patch) | |
tree | 0a7ca95b3ea7d2227f1367a972adc3831d66fd3a /src | |
parent | 5bdbcf461890e9732fede6fa6f19cee5e1ee3f73 (diff) |
handover2 congestion check only with algorithm 2
Change-Id: Ieb9f5f4227c72f4633de3e2d06b5ee292b09dee6
Diffstat (limited to 'src')
-rw-r--r-- | src/osmo-bsc/handover_decision_2.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/osmo-bsc/handover_decision_2.c b/src/osmo-bsc/handover_decision_2.c index 0e24c0d47..48570adc8 100644 --- a/src/osmo-bsc/handover_decision_2.c +++ b/src/osmo-bsc/handover_decision_2.c @@ -1822,6 +1822,7 @@ static void bts_congestion_check(struct gsm_bts *bts) { int min_free_tchf, min_free_tchh; int tchf_count, tchh_count; + int algo; global_ho_reason = HO_REASON_CONGESTION; @@ -1832,9 +1833,14 @@ static void bts_congestion_check(struct gsm_bts *bts) } /* only check BTS if handover or assignment is enabled */ - if (!ho_get_hodec2_as_active(bts->ho) - && !ho_get_ho_active(bts->ho)) { - LOGPHOBTS(bts, LOGL_DEBUG, "No congestion check: Assignment and Handover both disabled\n"); + if (!ho_get_ho_active(bts->ho)) { + LOGPHOBTS(bts, LOGL_DEBUG, "No congestion check: Handover disabled\n"); + return; + } + + algo = ho_get_algorithm(bts->ho); + if (algo != 2) { + LOGPHOBTS(bts, LOGL_DEBUG, "No congestion check: Handover Algorithm is not 2 (is %d)\n", algo); return; } |