From 1c6f394234d8655abf96e4bca713c7ea48e99045 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 16 Jun 2010 12:05:56 +0800 Subject: [PATCH] si13: Use the correct pseudo length for the SI13 message The GSM04.08 Section 10.5.2.19 specifies the L2 Pseudo Length and the length does not include rest octets, so we will need to use a zero for the length. The patch is coming from Dieter Spaar. --- openbsc/src/system_information.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbsc/src/system_information.c b/openbsc/src/system_information.c index eb4ac7c83..337f756ce 100644 --- a/openbsc/src/system_information.c +++ b/openbsc/src/system_information.c @@ -451,7 +451,8 @@ static int generate_si13(u_int8_t *output, struct gsm_bts *bts) if (ret < 0) return ret; - si13->header.l2_plen = ret & 0xff; + /* length is coded in bit 2 an up */ + si13->header.l2_plen = 0x01; return sizeof (*si13) + ret; }