ue,rrc_nr: Add dummy handler for RRC Release to avoid logging an unhandled message error

master
Bedran Karakoc 3 years ago committed by Bedran Karakoc
parent 37280307b5
commit d448eac941

@ -148,6 +148,7 @@ private:
void handle_rrc_reconfig(const asn1::rrc_nr::rrc_recfg_s& reconfig); void handle_rrc_reconfig(const asn1::rrc_nr::rrc_recfg_s& reconfig);
void handle_dl_info_transfer(const asn1::rrc_nr::dl_info_transfer_s& dl_info_transfer); void handle_dl_info_transfer(const asn1::rrc_nr::dl_info_transfer_s& dl_info_transfer);
void handle_security_mode_command(const asn1::rrc_nr::security_mode_cmd_s& smc); void handle_security_mode_command(const asn1::rrc_nr::security_mode_cmd_s& smc);
void handle_rrc_release(const asn1::rrc_nr::rrc_release_s& rrc_release);
void generate_as_keys(); void generate_as_keys();
srsran::task_sched_handle task_sched; srsran::task_sched_handle task_sched;

@ -311,6 +311,11 @@ void rrc_nr::decode_dl_dcch(uint32_t lcid, unique_byte_buffer_t pdu)
task_sched.defer_task([this, smc]() { handle_security_mode_command(smc); }); task_sched.defer_task([this, smc]() { handle_security_mode_command(smc); });
break; break;
} }
case dl_dcch_msg_type_c::c1_c_::types::rrc_release: {
rrc_release_s rrc_release = c1->rrc_release();
task_sched.defer_task([this, rrc_release]() { handle_rrc_release(rrc_release); });
break;
}
default: default:
logger.error("The provided DL-DCCH message type is not recognized or supported"); logger.error("The provided DL-DCCH message type is not recognized or supported");
break; break;
@ -2117,6 +2122,11 @@ void rrc_nr::handle_security_mode_command(const asn1::rrc_nr::security_mode_cmd_
pdcp->enable_encryption(lcid, DIRECTION_TXRX); pdcp->enable_encryption(lcid, DIRECTION_TXRX);
} }
void rrc_nr::handle_rrc_release(const asn1::rrc_nr::rrc_release_s& rrc_release)
{
logger.info("RRC Release not handled yet");
}
// Security helper used by Security Mode Command and Mobility handling routines // Security helper used by Security Mode Command and Mobility handling routines
void rrc_nr::generate_as_keys() void rrc_nr::generate_as_keys()
{ {

Loading…
Cancel
Save