aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-01-05 17:51:17 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-18 18:14:49 +0100
commitaf3d5c508c9ca3ebae9388d3e09c5d7726db4f5c (patch)
tree00dbf95af936c1fc59196580d047265e1b0c1085 /openbsc/tests
parentafcf23001e600bedc51db08a22846dada9bc06b3 (diff)
sgsn: Pass subscriber error causes to the GMM layer
This patch extends gsm0408_gprs_access_denied and gsm0408_gprs_access_cancelled to accept GMM cause codes. These are then passed to the MS, unless gsm0408_gprs_access_cancelled is called with cause 0 (no error -> updateProcedure). Since gsm0408_gprs_access_denied uses GMM_CAUSE_GPRS_NOTALLOWED if the cause is not set, and the subscriber's error_cause is never set (and thus always 0), the SGSN's behaviour does not change with this patch. Sponsored-by: On-Waves ehf Conflicts: openbsc/include/openbsc/gprs_sgsn.h [hfreyther: Conflict due the removal of the unused authenticate flag]
Diffstat (limited to 'openbsc/tests')
-rw-r--r--openbsc/tests/sgsn/sgsn_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/tests/sgsn/sgsn_test.c b/openbsc/tests/sgsn/sgsn_test.c
index d9cb84212..ef8661b12 100644
--- a/openbsc/tests/sgsn/sgsn_test.c
+++ b/openbsc/tests/sgsn/sgsn_test.c
@@ -1278,7 +1278,7 @@ static void test_gmm_cancel(void)
OSMO_ASSERT(sgsn_tx_counter == 0);
/* cancel */
- gsm0408_gprs_access_cancelled(ctx);
+ gsm0408_gprs_access_cancelled(ctx, 0);
/* verify that things are gone */
OSMO_ASSERT(count(gprs_llme_list()) == 0);