summaryrefslogtreecommitdiffstats
path: root/openbsc/src/system_information.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/system_information.c')
-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 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;
}