From fc3bcee00fab502d7ecfa78b8078f83d12557cc4 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 26 Jun 2019 16:56:18 +0200 Subject: bsc_subscr_conn_fsm: Use gscon_bssmap_clear() helper on send failure Change-Id: I45b42b76c260a5bac416ad3a5761918a8ab59f86 --- src/osmo-bsc/bsc_subscr_conn_fsm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/osmo-bsc/bsc_subscr_conn_fsm.c b/src/osmo-bsc/bsc_subscr_conn_fsm.c index 7b9f912b2..0830deece 100644 --- a/src/osmo-bsc/bsc_subscr_conn_fsm.c +++ b/src/osmo-bsc/bsc_subscr_conn_fsm.c @@ -984,7 +984,6 @@ static void gsm0808_send_rsl_dtap(struct gsm_subscriber_connection *conn, { uint8_t sapi; int rc; - struct msgb *resp = NULL; if (!conn->lchan) { LOGP(DMSC, LOGL_ERROR, @@ -1027,8 +1026,7 @@ static void gsm0808_send_rsl_dtap(struct gsm_subscriber_connection *conn, failed_to_send: LOGPFSML(conn->fi, LOGL_ERROR, "Tx BSSMAP CLEAR REQUEST to MSC\n"); - resp = gsm0808_create_clear_rqst(GSM0808_CAUSE_EQUIPMENT_FAILURE); - gscon_sigtran_send(conn, resp); + gscon_bssmap_clear(conn, GSM0808_CAUSE_EQUIPMENT_FAILURE); osmo_fsm_inst_state_chg(conn->fi, ST_ACTIVE, 0, 0); } -- cgit v1.2.3