From d7fd30617f110e07456c034bbcbebaab56c10031 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 8 Apr 2010 22:47:44 +0200 Subject: [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. --- openbsc/src/abis_rsl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbsc/src') diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c index 51c200b27..e3d778d9a 100644 --- a/openbsc/src/abis_rsl.c +++ b/openbsc/src/abis_rsl.c @@ -1260,6 +1260,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 */ -- cgit v1.2.3