modify RLC AM retx test to provide exactly a MAC opportunity of the size

that is reported as buffer state
This commit is contained in:
Andre Puschmann 2019-07-09 20:29:34 +02:00 committed by Ismael Gomez
parent aa6652155c
commit 9f3a947c02
1 changed files with 3 additions and 2 deletions

View File

@ -432,11 +432,12 @@ bool retx_test()
timers.step_all();
}
assert(4 == rlc2.get_buffer_state());
uint32_t buffer_state = rlc2.get_buffer_state();
assert(4 == buffer_state);
// Read status PDU from RLC2
byte_buffer_t status_buf;
len = rlc2.read_pdu(status_buf.msg, 10); // 10 bytes is enough to hold the status
len = rlc2.read_pdu(status_buf.msg, buffer_state); // provide exactly the reported buffer state
status_buf.N_bytes = len;
// Write status PDU to RLC1