Release UE upon reception of integrity error.

master
Pedro Alvarez 4 years ago
parent 299d2ee35d
commit a53b321ab8

@ -301,8 +301,7 @@ void pdcp_entity_lte::handle_srb_pdu(srsran::unique_byte_buffer_t pdu)
// Perfrom integrity checks
if (integrity_direction == DIRECTION_RX || integrity_direction == DIRECTION_TXRX) {
bool pdu_valid = integrity_verify(pdu->msg, pdu->N_bytes, count, mac);
if (not pdu_valid) {
if (not integrity_verify(pdu->msg, pdu->N_bytes, count, mac)) {
logger.error(pdu->msg, pdu->N_bytes, "%s Dropping PDU", rrc->get_rb_name(lcid));
rrc->notify_pdcp_integrity_error(lcid);
return; // Discard

@ -292,7 +292,8 @@ void rrc::write_pdu(uint16_t rnti, uint32_t lcid, srsran::unique_byte_buffer_t p
void rrc::notify_pdcp_integrity_error(uint16_t rnti, uint32_t lcid)
{
logger.warning("Received Integrity Protection failured indication, rnti=0x%u, lcid=%u", rnti, lcid);
logger.warning("Received integrity protection failure indication, rnti=0x%u, lcid=%u", rnti, lcid);
release_ue(rnti);
}
/*******************************************************************************

@ -1622,7 +1622,7 @@ void rrc::write_pdu(uint32_t lcid, unique_byte_buffer_t pdu)
void rrc::notify_pdcp_integrity_error(uint32_t lcid)
{
logger.warning("Received Integrity Protection failured indication, rnti=0x%u, lcid=%u", lcid);
logger.warning("Received integrity protection failure indication, lcid=%u", lcid);
}
void rrc::process_pdu(uint32_t lcid, srsran::unique_byte_buffer_t pdu)

Loading…
Cancel
Save