encoding: correct encoding of CRBB in ACK/NACK when not byte aligned

The last bits of the CRBB (compressed receive block bitmap) was incorrect
encoded when the CRBB is not byte aligned.

Related: OS#3728
Change-Id: I7261aa71b37d7ead52992f8db462f72a3804988e
This commit is contained in:
Alexander Couzens 2019-05-31 17:19:53 +02:00 committed by laforge
parent 5c3783b7e8
commit 3f640773f3
1 changed files with 1 additions and 1 deletions

View File

@ -965,7 +965,7 @@ static void write_packet_ack_nack_desc_egprs(
crbb_len = crbb_len - 8;
iter++;
} else {
bitvec_write_field(dest, &wp, crbb_bitmap[iter], crbb_len);
bitvec_write_field(dest, &wp, crbb_bitmap[iter] >> (8 - crbb_len), crbb_len);
crbb_len = 0;
}
}