From 83ca9edfd1d25e1e2eaef23114b68f77cff55876 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 11 Oct 2018 16:42:52 +0200 Subject: gscon_forget_lchan(): no Clear Request after Clear Command Send a BSSMAP Clear Request only if we are not already in ST_CLEARING, i.e. haven't received a BSSMAP Clear Command yet. Related: osmo-ttcn3-hacks If772dbbc5f9790d3f911465e1303dd0a99811154 Change-Id: Idc749068580da45e821e0af04cfa14cc7ce5c432 --- src/osmo-bsc/bsc_subscr_conn_fsm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osmo-bsc/bsc_subscr_conn_fsm.c b/src/osmo-bsc/bsc_subscr_conn_fsm.c index 32375d47f..3c9be56e7 100644 --- a/src/osmo-bsc/bsc_subscr_conn_fsm.c +++ b/src/osmo-bsc/bsc_subscr_conn_fsm.c @@ -644,7 +644,9 @@ void gscon_forget_lchan(struct gsm_subscriber_connection *conn, struct gsm_lchan conn->ho.new_lchan = NULL; if (conn->lchan == lchan) conn->lchan = NULL; - if (!conn->lchan) + + if (conn->fi->state != ST_CLEARING + && !conn->lchan) gscon_bssmap_clear(conn, GSM0808_CAUSE_EQUIPMENT_FAILURE); } -- cgit v1.2.3