srsLTE: removed overlap bytes check in RLC AM

This commit is contained in:
Xavier Arteaga 2020-01-23 14:21:40 +01:00 committed by Xavier Arteaga
parent 5872e763bf
commit 8b6ba1aacf
1 changed files with 0 additions and 6 deletions

View File

@ -1829,12 +1829,6 @@ bool rlc_am_lte::rlc_am_lte_rx::add_segment_and_check(rlc_amd_rx_pdu_segments_t*
n = it->buf->N_bytes - overlap;
}
// Check overlapped data is matching
if (memcmp(&full_pdu->msg[it->header.so], it->buf->msg, overlap) != 0) {
log->warning("Overlapped data between segments does not match. Discarding PDU.\n");
return false;
}
// Copy data itself
memcpy(&full_pdu->msg[full_pdu->N_bytes], &it->buf->msg[overlap], n);
full_pdu->N_bytes += n;