lib,rlc_am_nr: fixed incorrectly adding to many segments when receiving a status report with an SO.

This commit is contained in:
Pedro Alvarez 2022-02-04 17:14:21 +00:00
parent 5e8b7b5ebe
commit 4bbbc8ffde
1 changed files with 1 additions and 1 deletions

View File

@ -1078,7 +1078,7 @@ void rlc_am_nr_tx::handle_control_pdu(uint8_t* payload, uint32_t nof_bytes)
for (std::list<rlc_amd_tx_pdu_nr::pdu_segment>::iterator segm = pdu.segment_list.begin();
segm != pdu.segment_list.end();
segm++) {
if (segm->so >= nack.so_start && nack.so_end <= (segm->so + segm->payload_len)) {
if (segm->so >= nack.so_start && segm->so < nack.so_end) {
rlc_amd_retx_t& retx = retx_queue.push();
retx.sn = nack_sn;
retx.sdu_end = pdu.sdu_buf->N_bytes;