aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/handover_decision_2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bsc/handover_decision_2.c')
-rw-r--r--src/osmo-bsc/handover_decision_2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/osmo-bsc/handover_decision_2.c b/src/osmo-bsc/handover_decision_2.c
index a8fff6319..60b14b0b2 100644
--- a/src/osmo-bsc/handover_decision_2.c
+++ b/src/osmo-bsc/handover_decision_2.c
@@ -625,9 +625,17 @@ static uint8_t check_requirements_remote_bss(struct gsm_lchan *lchan,
{
uint8_t requirement = 0;
unsigned int penalty_time;
+ struct gsm_bts *current_bts = lchan->ts->trx->bts;
/* Requirement A */
+ /* the handover/assignment must not be disabled */
+ if (!ho_get_hodec2_inter_bsc_active(current_bts->ho)) {
+ LOGPHOLCHANTOREMOTE(lchan, cil, LOGL_DEBUG,
+ "not a candidate, inter-BSC handover is disabled from this BTS\n");
+ return 0;
+ }
+
/* the handover penalty timer must not run for this bts */
penalty_time = conn_penalty_time_remaining(lchan->conn, cil);
if (penalty_time) {