diff options
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-08 22:47:44 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-09 11:53:12 +0200
commit5c011366c972cc8d721b7f08d12a614dc6b49a15 (patch)
parent79e2d4230dca5e5c41febe323dacc765adc43b88 (diff)
[rsl] Check the assumption that RF Channel Release is sent during release
We assume that the lchan_free will initiate the release and that when we handle the RLL release indication or the release request as part of the shutdown sequence.
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c
index 80a0a0843..d313d054a 100644
--- a/openbsc/src/abis_rsl.c
+++ b/openbsc/src/abis_rsl.c
@@ -1249,6 +1249,12 @@ static int rsl_rx_rll_err_ind(struct msgb *msg)
static void rsl_handle_release(struct gsm_lchan *lchan)
+ if (lchan->state != LCHAN_S_REL_REQ)
+ LOGP(DRSL, LOGL_ERROR, "RF release on %s but state %s\n",
+ gsm_lchan_name(lchan),
+ gsm_lchans_name(lchan->state));
/* we can now releae the channel on the BTS/Abis side */
/* FIXME: officially we need to start T3111 and wait for
* some grace period */