aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-16 12:05:56 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-16 12:05:56 +0800
commitf3759a4934276d946f90df4b3e8055b0a6287b17 (patch)
treee378d143f998f911bcd6a9c313f57d92040fa15e
parent5bfb9102affc861bc478ad8279e587e82c60c6bd (diff)
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.
-rw-r--r--openbsc/src/system_information.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/system_information.c b/openbsc/src/system_information.c
index eb4ac7c8..337f756c 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;
}