diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-10-31 05:41:05 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-20 17:35:45 +0100 |
commit | 42c636b6c810b1b4462586e3ca498779da978d30 (patch) | |
tree | e7da52d974c45f840a35e7f6743c5e393ef7e574 /openbsc/src/bssap.c | |
parent | a0a55f555ee28ca12b6e3a0a6d1865496399b9fc (diff) |
[bssap] Fix generation of the failure message
Diffstat (limited to 'openbsc/src/bssap.c')
-rw-r--r-- | openbsc/src/bssap.c | 5 |
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) { |