From 163976f050883d06341558691f7b8228b707776c Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 3 Jun 2021 16:34:55 +0100 Subject: [PATCH] Fix releasing on on RRC and not on S1AP on integrity failure. --- srsenb/src/stack/rrc/rrc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srsenb/src/stack/rrc/rrc.cc b/srsenb/src/stack/rrc/rrc.cc index ec8b0912e..428f840ad 100644 --- a/srsenb/src/stack/rrc/rrc.cc +++ b/srsenb/src/stack/rrc/rrc.cc @@ -14,6 +14,7 @@ #include "srsenb/hdr/stack/rrc/rrc_cell_cfg.h" #include "srsenb/hdr/stack/rrc/rrc_mobility.h" #include "srsenb/hdr/stack/rrc/rrc_paging.h" +#include "srsenb/hdr/stack/s1ap/s1ap.h" #include "srsran/asn1/asn1_utils.h" #include "srsran/asn1/rrc_utils.h" #include "srsran/common/bcd_helpers.h" @@ -293,7 +294,7 @@ 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 failure indication, rnti=0x%u, lcid=%u", rnti, lcid); - release_ue(rnti); + s1ap->user_release(rnti, asn1::s1ap::cause_radio_network_opts::unspecified); } /*******************************************************************************