diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2014-01-23 16:00:11 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-03-10 13:38:07 +0100 |
commit | 8ade45e795d1ee531423d529dfa2c441ece1196a (patch) | |
tree | 8c31c34dd28ece47104246de80f3ec5c27ef513a /src/common/handover.c | |
parent | 3058854535f08e12f6d8dd4f35490ecef40b3040 (diff) |
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.
Diffstat (limited to 'src/common/handover.c')
-rw-r--r-- | src/common/handover.c | 45 |
1 files changed, 45 insertions, 0 deletions
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 <laforge@gnumonks.org> + * Andreas Eversberg <jolly@eversberg.eu> + * (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 <http://www.gnu.org/licenses/>. + * + */ + +#include <stdlib.h> +#include <stdint.h> +#include <errno.h> + +#include <osmocom/gsm/protocol/gsm_04_08.h> +#include <osmocom/gsm/rsl.h> + +#include <osmo-bts/bts.h> +#include <osmo-bts/bts_model.h> +#include <osmo-bts/rsl.h> +#include <osmo-bts/logging.h> +#include <osmo-bts/handover.h> + +/* 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; +} |