summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/system_information.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-29 23:06:22 +0100
committerHarald Welte <laforge@gnumonks.org>2015-01-01 12:57:35 +0100
commit7ff77ec713c6569715077344563ff9ab1719619c (patch)
treefe91f7ae36a957dba83c60cc5aa34aadb775c6b7 /openbsc/src/libbsc/system_information.c
parentf86852ce0bc7d4c854d6f6825f74ab30be64b5c5 (diff)
smscb: Prepare to fill in the info for CBCH in SI4
Pass the number of bytes the rest octet for si4 should fill.
Diffstat (limited to 'openbsc/src/libbsc/system_information.c')
-rw-r--r--openbsc/src/libbsc/system_information.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libbsc/system_information.c b/openbsc/src/libbsc/system_information.c
index 8a6d02671..5071b0693 100644
--- a/openbsc/src/libbsc/system_information.c
+++ b/openbsc/src/libbsc/system_information.c
@@ -595,7 +595,7 @@ static int generate_si4(uint8_t *output, struct gsm_bts *bts)
/* SI4 Rest Octets (10.5.2.35), containing
Optional Power offset, GPRS Indicator,
Cell Identity, LSA ID, Selection Parameter */
- rc = rest_octets_si4(restoct, &si_info);
+ rc = rest_octets_si4(restoct, &si_info, output + GSM_MACBLOCK_LEN - restoct);
return l2_plen + 1 + rc;
}