[rest_octets] Change data_len to the sizes of the spec
Is that right?
This commit is contained in:
parent
6a9fa7308d
commit
4cffc45cbc
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue