diff options
authorHolger Hans Peter Freyther <>2011-12-29 23:27:11 +0100
committerHolger Hans Peter Freyther <>2012-01-15 00:02:54 +0100
commitc55f0a54150e26866aa7e8c65099f28add0d6761 (patch)
parent7173f63eed051a8b1e533682633e9c23859238ed (diff)
Revert "libbsc: Log if a channel is freed with lchan->state != LCHAN_S_NONE"
In case of a failed channel we still want the channel to not be re-allocated right away but keep it closed/unused for (T3109 + T311). rsl_rx_rf_chan_rel_ack has a check to not set the channel to S_NONE in case the channel is in the error state. Add the camp Harald added a timer to set the channel back to the none state in case the RF Channel Release is not acked. This reverts commit fc462dd59ee4772f06c9f2477b36b3f166a8e74b.
1 files changed, 0 insertions, 4 deletions
diff --git a/openbsc/src/libbsc/chan_alloc.c b/openbsc/src/libbsc/chan_alloc.c
index 6f4fe20f8..c0bdc1be9 100644
--- a/openbsc/src/libbsc/chan_alloc.c
+++ b/openbsc/src/libbsc/chan_alloc.c
@@ -299,10 +299,6 @@ void lchan_free(struct gsm_lchan *lchan)
sig.type = lchan->type;
lchan->type = GSM_LCHAN_NONE;
- if (lchan->state != LCHAN_S_NONE) {
- LOGP(DRLL, LOGL_NOTICE, "Freeing lchan with state %s - setting to NONE\n", gsm_lchans_name(lchan->state));
- lchan->state = LCHAN_S_NONE;
- }
if (lchan->conn) {
struct lchan_signal_data sig;