From d5df9a1d0d996acf0d090793231cae3346f6fbd4 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 20 Jul 2018 05:35:47 +0200 Subject: lchan_fsm: add in_release_handler flag If a release event is being handled, ignore other ricocheting release events until that release handling has concluded. For example, if an lchan is regularly released, it signals the lchan RTP FSM to release, which then calls back to say "RTP is released" on termination -- this should not trigger other state changes than the initial release intends. Change-Id: Iec41e006b6ab9d0f618d36925341f9536353e5d8 --- include/osmocom/bsc/gsm_data.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/osmocom/bsc') diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h index 12bc5c354..448924c06 100644 --- a/include/osmocom/bsc/gsm_data.h +++ b/include/osmocom/bsc/gsm_data.h @@ -525,6 +525,10 @@ struct gsm_lchan { /* RSL error code, RSL_ERR_* */ uint8_t rsl_error_cause; + /* If a release event is being handled, ignore other ricocheting release events until that + * release handling has concluded. */ + bool in_release_handler; + /* The logical channel type */ enum gsm_chan_t type; /* RSL channel mode */ -- cgit v1.2.3