From d406a847c4e80aa7e0e849116b3124e6be47b88b Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 14 Aug 2011 14:33:10 +0200 Subject: rsl: add timer to release channel if we don't get release req ack/nack This patch adds a timer to release the channel after 4 seconds if we don't get a release request ack/nack from the BTS. This should fix the problem with channels in release request state in the Nokia metrostation. --- openbsc/include/openbsc/chan_alloc.h | 3 +++ openbsc/include/openbsc/gsm_data_shared.h | 1 + 2 files changed, 4 insertions(+) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/chan_alloc.h b/openbsc/include/openbsc/chan_alloc.h index 5eda312ac..443e39bb3 100644 --- a/openbsc/include/openbsc/chan_alloc.h +++ b/openbsc/include/openbsc/chan_alloc.h @@ -48,6 +48,9 @@ void lchan_reset(struct gsm_lchan *lchan); /* Release the given lchan */ int lchan_release(struct gsm_lchan *lchan, int sach_deact, int reason); +/* Schedule release request timer */ +void lchan_timer_rel_req_schedule(struct gsm_lchan *lchan); + struct load_counter { unsigned int total; unsigned int used; diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h index 89375cf42..099b8082a 100644 --- a/openbsc/include/openbsc/gsm_data_shared.h +++ b/openbsc/include/openbsc/gsm_data_shared.h @@ -183,6 +183,7 @@ struct gsm_lchan { struct osmo_timer_list T3111; struct osmo_timer_list error_timer; struct osmo_timer_list act_timer; + struct osmo_timer_list rel_timer; /* table of neighbor cell measurements */ struct neigh_meas_proc neigh_meas[MAX_NEIGH_MEAS]; -- cgit v1.2.3