summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2017-05-12 11:20:53 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-12 13:53:12 +0000
commit6959e3c1101f59968825d144ade1d53116f538ba (patch)
treedc8f7fabe8b8905da671d5b9fb8e70c602df690a
parent13f476282732c81f3e7d7eb6c47c9645725c7451 (diff)
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
-rw-r--r--include/osmocom/gsm/protocol/gsm_04_08_gprs.h3
-rw-r--r--src/gsm/gsm_04_08_gprs.c3
2 files changed, 6 insertions, 0 deletions
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" },