From 91f47de3ccd1cb1883a0c2097d5875a6c384ed6d Mon Sep 17 00:00:00 2001 From: Francisco Date: Tue, 16 Nov 2021 18:38:11 +0000 Subject: [PATCH] nr,gnb,rrc: forward nas pdu from rrc setup complete to ngap for the initial ue message --- srsgnb/src/stack/rrc/rrc_nr_ue.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srsgnb/src/stack/rrc/rrc_nr_ue.cc b/srsgnb/src/stack/rrc/rrc_nr_ue.cc index 6a5f743fe..e60734d4b 100644 --- a/srsgnb/src/stack/rrc/rrc_nr_ue.cc +++ b/srsgnb/src/stack/rrc/rrc_nr_ue.cc @@ -932,7 +932,8 @@ void rrc_nr::ue::handle_rrc_setup_complete(const asn1::rrc_nr::rrc_setup_complet // Create UE context in NGAP using ngap_cause_t = asn1::ngap_nr::rrcestablishment_cause_opts::options; auto ngap_cause = (ngap_cause_t)ctxt.connection_cause.value; // NGAP and RRC causes seem to have a 1-1 mapping - parent->ngap->initial_ue(rnti, uecfg.carriers[0].cc, ngap_cause, {}, ctxt.setup_ue_id); + parent->ngap->initial_ue( + rnti, uecfg.carriers[0].cc, ngap_cause, msg.crit_exts.rrc_setup_complete().ded_nas_msg, ctxt.setup_ue_id); } /// TS 38.331, SecurityModeCommand