From 66706812514c4baca743ad3a07e4556d48b6cded Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 17 Dec 2009 22:23:21 +0100 Subject: don't try multiple concurrent handovers for 1 channel --- openbsc/src/handover_logic.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbsc/src/handover_logic.c') diff --git a/openbsc/src/handover_logic.c b/openbsc/src/handover_logic.c index 68cdcba07..9da8baf91 100644 --- a/openbsc/src/handover_logic.c +++ b/openbsc/src/handover_logic.c @@ -88,6 +88,11 @@ int bsc_handover_start(struct gsm_lchan *old_lchan, struct gsm_bts *bts) static u_int8_t ho_ref; int rc; + /* don't attempt multiple handovers for the same lchan at + * the same time */ + if (bsc_ho_by_old_lchan(old_lchan)) + return -EBUSY; + DEBUGP(DHO, "(old_lchan on BTS %u, new BTS %u): ", old_lchan->ts->trx->bts->nr, bts->nr); -- cgit v1.2.3