aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/rest_octets.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/rest_octets.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/rest_octets.c')
-rw-r--r--openbsc/src/libbsc/rest_octets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libbsc/rest_octets.c b/openbsc/src/libbsc/rest_octets.c
index 41bf5050b..4545794a9 100644
--- a/openbsc/src/libbsc/rest_octets.c
+++ b/openbsc/src/libbsc/rest_octets.c
@@ -141,13 +141,13 @@ static int append_lsa_params(struct bitvec *bv,
}
/* Generate SI4 Rest Octets (Chapter 10.5.2.35) */
-int rest_octets_si4(uint8_t *data, const struct gsm48_si_ro_info *si4)
+int rest_octets_si4(uint8_t *data, const struct gsm48_si_ro_info *si4, int len)
{
struct bitvec bv;
memset(&bv, 0, sizeof(bv));
bv.data = data;
- bv.data_len = 10; /* FIXME: up to ? */
+ bv.data_len = len;
/* SI4 Rest Octets O */
append_selection_params(&bv, &si4->selection_params);