From ea52802762b7e485d5d9aa4aa6f30b4c88425a53 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 18 Nov 2009 22:57:02 +0100 Subject: [lchan] RSL and RR need the multirate config, place it in the lchan Both GSM 04.08 RR and GSM 08.58 RSL need the multirate config in the channel modify. Place the config in the lchan, change the gsm48 methods to not take the argument, change the RSL implementation to make use of it with the right IE. The other code should use the t(l)v_put routines as well but were left untouched for now. --- openbsc/src/chan_alloc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbsc/src/chan_alloc.c') diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c index bd3ec85b2..7ba679c87 100644 --- a/openbsc/src/chan_alloc.c +++ b/openbsc/src/chan_alloc.c @@ -215,6 +215,9 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type) /* clear sapis */ memset(lchan->sapis, 0, ARRAY_SIZE(lchan->sapis)); + /* clear multi rate config */ + memset(&lchan->mr_conf, 0, sizeof(lchan->mr_conf)); + /* Configure the time and start it so it will be closed */ lchan->release_timer.cb = auto_release_channel; lchan->release_timer.data = lchan; -- cgit v1.2.3