From 7554fd1b5e49c809dbb95967cfc6f146e15f505a Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 23 Apr 2018 17:07:18 +0200 Subject: log two RA Update Request failure causes Change-Id: Ic9c8a492abf5a707b37d9c8888c59be6e51541b8 --- src/gprs/gprs_gmm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c index 275cdbcc4..642c738d0 100644 --- a/src/gprs/gprs_gmm.c +++ b/src/gprs/gprs_gmm.c @@ -1616,6 +1616,9 @@ static int gsm48_rx_gmm_ra_upd_req(struct sgsn_mm_ctx *mmctx, struct msgb *msg, /* MS Radio Access Capability 10.5.5.12a */ ms_ra_acc_cap_len = *cur++; if (ms_ra_acc_cap_len > 52) { + LOGP(DMM, LOGL_ERROR, + "Rejecting GMM RA Update Request: MS Radio Access Capability too long" + " (ms_ra_acc_cap_len = %u > 52)\n", ms_ra_acc_cap_len); reject_cause = GMM_CAUSE_PROTO_ERR_UNSPEC; goto rejected; } @@ -1668,6 +1671,7 @@ static int gsm48_rx_gmm_ra_upd_req(struct sgsn_mm_ctx *mmctx, struct msgb *msg, mmctx = sgsn_mm_ctx_by_ptmsi(tmsi); } #else + LOGP(DMM, LOGL_ERROR, "Rejecting GMM RA Update Request: No Iu support\n"); goto rejected; #endif } @@ -1704,6 +1708,7 @@ static int gsm48_rx_gmm_ra_upd_req(struct sgsn_mm_ctx *mmctx, struct msgb *msg, /* The MS has to perform GPRS attach */ /* Device is still IMSI attached for CS but initiate GPRS ATTACH, * see GSM 04.08, 4.7.5.1.4 and G.6 */ + LOGMMCTXP(LOGL_ERROR, mmctx, "Rejecting GMM RA Update Request: MS should GMM Attach first\n"); reject_cause = GMM_CAUSE_IMPL_DETACHED; goto rejected; } -- cgit v1.2.3