From 42c636b6c810b1b4462586e3ca498779da978d30 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 31 Oct 2009 05:41:05 +0100 Subject: [bssap] Fix generation of the failure message --- openbsc/src/bssap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openbsc/src') diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c index 0f8cb53c1..4e5e2d5c6 100644 --- a/openbsc/src/bssap.c +++ b/openbsc/src/bssap.c @@ -679,12 +679,13 @@ struct msgb *bssmap_create_assignment_failure(u_int8_t cause, u_int8_t *rr_cause if (!msg) return NULL; - msg->l3h = msgb_put(msg, 5); + msg->l3h = msgb_put(msg, 6); msg->l3h[0] = BSSAP_MSG_BSS_MANAGEMENT; msg->l3h[1] = 0xff; msg->l3h[2] = BSS_MAP_MSG_ASSIGMENT_FAILURE; msg->l3h[3] = GSM0808_IE_CAUSE; - msg->l3h[4] = cause; + msg->l3h[4] = 1; + msg->l3h[5] = cause; /* RR cause 3.2.2.22 */ if (rr_cause) { -- cgit v1.2.3