From 81543bcdd21f03b8a5aff9a19b6406439f27c6fe Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 4 Jul 2009 09:40:05 +0200 Subject: release channel on ERROR INDICATION This was proposed by Andreas Eversberg. I made it conditional on the T200 timer expired cause, as I'm not sure if we really should give up that quickly on other errors such as just simply receiving an unsolicited response. --- openbsc/src/abis_rsl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbsc') diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c index c2ef9e5cf..b1c15c02b 100644 --- a/openbsc/src/abis_rsl.c +++ b/openbsc/src/abis_rsl.c @@ -1106,6 +1106,9 @@ static int rsl_rx_rll_err_ind(struct msgb *msg) DEBUGPC(DRLL, "cause=0x%02x", rlm_cause[1]); + if (rlm_cause[1] == RLL_CAUSE_T200_EXPIRED) + return rsl_chan_release(msg->lchan); + return 0; } -- cgit v1.2.3