From 6c4196e3efb9a9a37f1e80d5aec24bc47a07463e Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 26 Nov 2012 19:53:41 +0100 Subject: mobile: Do not print MDL-Error 'ignoring' and then aborting anyway. The current code mentioned it will ignore the MDL-Error and then printed it will abort. Only print the abortion message and print the RSL error name. --- src/host/layer23/src/mobile/gsm48_rr.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/host/layer23/src/mobile/gsm48_rr.c b/src/host/layer23/src/mobile/gsm48_rr.c index ac984be0..f907d35a 100644 --- a/src/host/layer23/src/mobile/gsm48_rr.c +++ b/src/host/layer23/src/mobile/gsm48_rr.c @@ -5003,16 +5003,8 @@ static int gsm48_rr_mdl_error_ind(struct osmocom_ms *ms, struct msgb *msg) uint8_t cause = rllh->data[2]; uint8_t link_id = rllh->link_id; - switch (cause) { - case RLL_CAUSE_SEQ_ERR: - case RLL_CAUSE_UNSOL_DM_RESP_MF: - break; - default: - LOGP(DRR, LOGL_NOTICE, "MDL-Error (cause %d) ignoring\n", - cause); - } - - LOGP(DRR, LOGL_NOTICE, "MDL-Error (cause %d) aborting\n", cause); + LOGP(DRR, LOGL_NOTICE, "MDL-Error (cause %s/%d) aborting\n", + rsl_err_name(cause), cause); /* disconnect the (main) signalling link */ nmsg = gsm48_l3_msgb_alloc(); -- cgit v1.2.3