aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/bsc_subscr_conn_fsm.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-06-26 16:56:18 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-06-26 16:56:51 +0200
commitfc3bcee00fab502d7ecfa78b8078f83d12557cc4 (patch)
tree98ad123e673e1cf83bc9b9edc6876fde7941bf50 /src/osmo-bsc/bsc_subscr_conn_fsm.c
parentad5b8ce326499f6c7006be95716a4550f53fbb65 (diff)
bsc_subscr_conn_fsm: Use gscon_bssmap_clear() helper on send failure
Diffstat (limited to 'src/osmo-bsc/bsc_subscr_conn_fsm.c')
-rw-r--r--src/osmo-bsc/bsc_subscr_conn_fsm.c4
1 files changed, 1 insertions, 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);
}