From 8ade45e795d1ee531423d529dfa2c441ece1196a Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Thu, 23 Jan 2014 16:00:11 +0100 Subject: handover: Set basic values for handover, remember the activation reason Introduce the handover.h/handover.c and initialize handover parameters in OML and remember the activation through RSL. --- src/common/handover.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/common/handover.c (limited to 'src/common/handover.c') diff --git a/src/common/handover.c b/src/common/handover.c new file mode 100644 index 00000000..c40219db --- /dev/null +++ b/src/common/handover.c @@ -0,0 +1,45 @@ +/* Paging message encoding + queue management */ + +/* (C) 2012-2013 by Harald Welte + * Andreas Eversberg + * (C) 2014 by Holger Hans Peter Freyther + * + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +#include +#include +#include + +#include +#include + +#include +#include +#include +#include +#include + +/* release handover state */ +void handover_reset(struct gsm_lchan *lchan) +{ + /* Stop T3105 */ + osmo_timer_del(&lchan->ho.t3105); + + /* Handover process is done */ + lchan->ho.active = HANDOVER_NONE; +} -- cgit v1.2.3