diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-08 22:47:44 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-31 21:30:37 +0800 |
commit | d7fd30617f110e07456c034bbcbebaab56c10031 (patch) | |
tree | 774417e716822e42e18b65cfd6764ee169304ef7 | |
parent | dbc5fae576d4c3c32a534a8e625c48e7177ab7d1 (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.
-rw-r--r-- | openbsc/src/abis_rsl.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |