mirror of https://github.com/PentHertz/srsLTE.git
lib,rlc_am_nr: fix wrong buffer state calculation for segment RETXes
when SO=0
This commit is contained in:
parent
d7a32a0ea5
commit
abfa113576
|
@ -1229,7 +1229,7 @@ int segment_retx_and_loose_segments_test(rlc_am_nr_sn_size_t sn_size)
|
||||||
uint32_t expected_buffer_state = (header_size + payload_size) * NBUFS;
|
uint32_t expected_buffer_state = (header_size + payload_size) * NBUFS;
|
||||||
TESTASSERT_EQ(expected_buffer_state, rlc1.get_buffer_state());
|
TESTASSERT_EQ(expected_buffer_state, rlc1.get_buffer_state());
|
||||||
|
|
||||||
// Read 5 PDUs from RLC1 (1 byte each)
|
// Read 5 PDUs from RLC1 (each with a full SDU)
|
||||||
for (int i = 0; i < NBUFS; i++) {
|
for (int i = 0; i < NBUFS; i++) {
|
||||||
uint32_t len = rlc1.read_pdu(pdu_bufs[i].msg, header_size + payload_size);
|
uint32_t len = rlc1.read_pdu(pdu_bufs[i].msg, header_size + payload_size);
|
||||||
pdu_bufs[i].N_bytes = len;
|
pdu_bufs[i].N_bytes = len;
|
||||||
|
|
Loading…
Reference in New Issue