Disable sending and handling status report on SRBs

This commit is contained in:
Pedro Alvarez 2021-03-01 20:05:59 +00:00 committed by Francisco Paisana
parent 81cc8de2b7
commit 0d020a7f07
1 changed files with 18 additions and 0 deletions

View File

@ -421,6 +421,12 @@ void pdcp_entity_lte::send_status_report()
return;
}
// Don't send status report on SRBs
if (not is_drb()) {
logger.debug("Trying to send PDCP Status Report on SRB");
return;
}
if (not cfg.status_report_required) {
logger.info("Not sending PDCP Status Report as status report required is not set");
return;
@ -495,6 +501,18 @@ void pdcp_entity_lte::send_status_report()
// Section 5.3.2 receive operation
void pdcp_entity_lte::handle_status_report_pdu(unique_byte_buffer_t pdu)
{
// Don't handle status report on SRBs
if (not is_drb()) {
logger.debug("Not handling PDCP Status Report on SRB");
return;
}
// Check wether RLC AM is being used.
if (rlc->rb_is_um(lcid)) {
logger.info("Not handling PDCP Status Report if RLC is not AM");
return;
}
logger.info("Handling Status Report PDU. Size=%ld", pdu->N_bytes);
uint32_t fms = 0;