aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/rest_octets.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/rest_octets.c')
-rw-r--r--openbsc/src/rest_octets.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/src/rest_octets.c b/openbsc/src/rest_octets.c
index 6226203ec..6c8c40314 100644
--- a/openbsc/src/rest_octets.c
+++ b/openbsc/src/rest_octets.c
@@ -37,7 +37,7 @@ int rest_octets_si1(u_int8_t *data, u_int8_t *nch_pos)
memset(&bv, 0, sizeof(bv));
bv.data = data;
- bv.data_len = 2;
+ bv.data_len = 1;
if (nch_pos) {
bitvec_set_bit(&bv, H);
@@ -45,7 +45,7 @@ int rest_octets_si1(u_int8_t *data, u_int8_t *nch_pos)
} else
bitvec_set_bit(&bv, L);
- bitvec_spare_padding(&bv, 15);
+ bitvec_spare_padding(&bv, 7);
return 0;
}
@@ -95,7 +95,7 @@ int rest_octets_si3(u_int8_t *data, const struct gsm48_si_ro_info *si3)
memset(&bv, 0, sizeof(bv));
bv.data = data;
- bv.data_len = 5;
+ bv.data_len = 4;
/* Optional Selection Parameters */
append_selection_params(&bv, &si3->selection_params);
@@ -141,7 +141,7 @@ int rest_octets_si4(u_int8_t *data, const struct gsm48_si_ro_info *si4)
memset(&bv, 0, sizeof(bv));
bv.data = data;
- bv.data_len = 11; /* FIXME: up to ? */
+ bv.data_len = 10; /* FIXME: up to ? */
/* SI4 Rest Octets O */
append_selection_params(&bv, &si4->selection_params);
@@ -340,7 +340,7 @@ int rest_octets_si13(u_int8_t *data, const struct gsm48_si13_info *si13)
memset(&bv, 0, sizeof(bv));
bv.data = data;
- bv.data_len = 21;
+ bv.data_len = 20;
if (0) {
/* No rest octets */