rrc: print release cause when receiving rrc connection release

This commit is contained in:
Andre Puschmann 2020-02-12 09:48:07 +01:00
parent 6b96d21732
commit 51864bc03c
2 changed files with 4 additions and 4 deletions

View File

@ -573,7 +573,7 @@ private:
void ho_failed();
void start_ho();
void start_go_idle();
void rrc_connection_release();
void rrc_connection_release(const std::string& cause);
void radio_link_failure();
void leave_connected();
void stop_timers();

View File

@ -1332,10 +1332,10 @@ void rrc::handle_rrc_con_reconfig(uint32_t lcid, rrc_conn_recfg_s* reconfig)
}
/* Actions upon reception of RRCConnectionRelease 5.3.8.3 */
void rrc::rrc_connection_release()
void rrc::rrc_connection_release(const std::string& cause)
{
// Save idleModeMobilityControlInfo, etc.
rrc_log->console("Received RRC Connection Release\n");
rrc_log->console("Received RRC Connection Release (releaseCause: %s)\n", cause.c_str());
start_go_idle();
}
@ -1981,7 +1981,7 @@ void rrc::parse_dl_dcch(uint32_t lcid, unique_byte_buffer_t pdu)
handle_ue_capability_enquiry(c1->ue_cap_enquiry());
break;
case dl_dcch_msg_type_c::c1_c_::types::rrc_conn_release:
rrc_connection_release();
rrc_connection_release(c1->rrc_conn_release().crit_exts.c1().rrc_conn_release_r8().release_cause.to_string());
break;
default:
rrc_log->error("The provided DL-CCCH message type is not recognized or supported\n");