aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-08-22 20:25:54 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2019-08-22 20:29:44 +0200
commit77de691b4215578dbfbb7b0a4fb57df862938f2c (patch)
tree0a7ca95b3ea7d2227f1367a972adc3831d66fd3a
parent5bdbcf461890e9732fede6fa6f19cee5e1ee3f73 (diff)
handover2 congestion check only with algorithm 2
-rw-r--r--src/osmo-bsc/handover_decision_2.c12
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;
}