path: root/openbsc/src/chan_alloc.c
diff options
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-10-28 14:23:39 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-10-29 04:20:21 +0100
commit5ba6f480926bee1eeeaf2997a5f18a4a533d5374 (patch)
treec17db5e8027caa72f2b82e0836b0bd6ef5527def /openbsc/src/chan_alloc.c
parent5ea731338d9497e26b8bde1483de7c768f17c244 (diff)
[lchan] Keep track which SAPIs has been established with the BTS
Keep track of which SAPIs have been established either by the BTS (from the MS) or by us. This can be used by the on-waves BSC code to figure out if a new request should be made.
Diffstat (limited to 'openbsc/src/chan_alloc.c')
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c
index 541c6c35e..7464aa96b 100644
--- a/openbsc/src/chan_alloc.c
+++ b/openbsc/src/chan_alloc.c
@@ -212,6 +212,9 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type)
lchan->type = type;
lchan->use_count = 0;
+ /* clear sapis */
+ memset(lchan->sapis, 0, sizeof(lchan->sapis));
/* Configure the time and start it so it will be closed */
lchan->release_timer.cb = auto_release_channel;
lchan->release_timer.data = lchan;