summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-11-26 19:53:41 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-11-26 19:53:41 +0100
commit6c4196e3efb9a9a37f1e80d5aec24bc47a07463e (patch)
tree01c36a0376fc357a2ffd01aa16fcfe33e1fd8e62
parent2076448d458ce1271dcd4d584fe276a8b8857e35 (diff)
mobile: Do not print MDL-Error 'ignoring' and then aborting anyway.zecke/work-with-nitb
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.
-rw-r--r--src/host/layer23/src/mobile/gsm48_rr.c12
1 files 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 ac984be..f907d35 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();