nr,gnb,rrc: Ignore measurementReports from UE while RRC Reconfiguration procedure is not yet complete.

This commit is contained in:
Francisco 2021-10-15 20:50:08 +01:00 committed by Francisco Paisana
parent abe2c8cba4
commit 277e6f2998
1 changed files with 9 additions and 6 deletions

View File

@ -397,13 +397,16 @@ void rrc::ue::parse_ul_dcch(uint32_t lcid, srsran::unique_byte_buffer_t pdu)
}
break;
case ul_dcch_msg_type_c::c1_c_::types::meas_report:
if (mobility_handler != nullptr) {
mobility_handler->handle_ue_meas_report(ul_dcch_msg.msg.c1().meas_report(), std::move(original_pdu));
if (state == RRC_STATE_REGISTERED) {
if (mobility_handler != nullptr) {
mobility_handler->handle_ue_meas_report(ul_dcch_msg.msg.c1().meas_report(), std::move(original_pdu));
}
if (endc_handler != nullptr) {
endc_handler->handle_ue_meas_report(ul_dcch_msg.msg.c1().meas_report());
}
} else {
parent->logger.warning("Received MeasReport but no mobility configuration is available");
}
if (endc_handler != nullptr) {
endc_handler->handle_ue_meas_report(ul_dcch_msg.msg.c1().meas_report());
parent->logger.warning(
"measurementReport for rnti=0x%x ignored. Cause: RRC Reconfiguration is not yet complete", rnti);
}
break;
case ul_dcch_msg_type_c::c1_c_::types::ue_info_resp_r9: