rrc: print release cause when receiving rrc connection release

master
Andre Puschmann 5 years ago
parent 6b96d21732
commit 51864bc03c

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

@ -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 */ /* 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. // 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(); 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()); handle_ue_capability_enquiry(c1->ue_cap_enquiry());
break; break;
case dl_dcch_msg_type_c::c1_c_::types::rrc_conn_release: 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; break;
default: default:
rrc_log->error("The provided DL-CCCH message type is not recognized or supported\n"); rrc_log->error("The provided DL-CCCH message type is not recognized or supported\n");

Loading…
Cancel
Save