aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bssap.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/bssap.c')
-rw-r--r--openbsc/src/bssap.c5
1 files changed, 3 insertions, 2 deletions
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) {