From 6959e3c1101f59968825d144ade1d53116f538ba Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Fri, 12 May 2017 11:20:53 +0200 Subject: gsm_04_08: Add missing GSM cause value Table 10.5.157 in 10.5.6.6 of 3GPP TS 04.08 is badly formatted. The first value 0x19 "LLC or SNDCP failure" is in the same line as the heading and has not been included in the struct_value so far. Table 10.5.157 in 10.5.6.6 of 3GPP TS 24.008 fixes this formatting issue and also defines two more values 0x08 and 0x18 which are now added to the struct value_string. Change-Id: I5bcc52f739ff0677011d024448afcc2a54869638 --- include/osmocom/gsm/protocol/gsm_04_08_gprs.h | 3 +++ src/gsm/gsm_04_08_gprs.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/osmocom/gsm/protocol/gsm_04_08_gprs.h b/include/osmocom/gsm/protocol/gsm_04_08_gprs.h index cda1e48b..def8dfcd 100644 --- a/include/osmocom/gsm/protocol/gsm_04_08_gprs.h +++ b/include/osmocom/gsm/protocol/gsm_04_08_gprs.h @@ -206,6 +206,9 @@ extern const struct value_string *gsm48_gmm_cause_names; /* Chapter 10.4.6.6 / Table 10.5.157 */ enum gsm48_gsm_cause { + GSM_CAUSE_OPER_DET_BARR = 0x08, + GSM_CAUSE_MBMS_CAP_INSUF = 0x18, + GSM_CAUSE_LLC_SNDCP_FAIL = 0x19, GSM_CAUSE_INSUFF_RSRC = 0x1a, GSM_CAUSE_MISSING_APN = 0x1b, GSM_CAUSE_UNKNOWN_PDP = 0x1c, diff --git a/src/gsm/gsm_04_08_gprs.c b/src/gsm/gsm_04_08_gprs.c index 6f0baba9..5fef208a 100644 --- a/src/gsm/gsm_04_08_gprs.c +++ b/src/gsm/gsm_04_08_gprs.c @@ -75,6 +75,9 @@ const struct value_string *gsm48_gmm_cause_names = gsm48_gmm_cause_names_; /* 10.5.6.6 SM Cause / Table 10.5.157 */ const struct value_string gsm48_gsm_cause_names_[] = { + { GSM_CAUSE_OPER_DET_BARR, "Operator Determined Barring" }, + { GSM_CAUSE_MBMS_CAP_INSUF, "MBMS bearer capabilities insufficient for the service" }, + { GSM_CAUSE_LLC_SNDCP_FAIL, "LLC or SNDCP failure" }, { GSM_CAUSE_INSUFF_RSRC, "Insufficient resources" }, { GSM_CAUSE_MISSING_APN, "Missing or unknown APN" }, { GSM_CAUSE_UNKNOWN_PDP, "Unknown PDP address or PDP type" }, -- cgit v1.2.3