|
|
@ -314,14 +314,14 @@ void test_rrc_nr_2nd_reconfiguration(srsran::task_scheduler& task_sched,
|
|
|
|
asn1::unbounded_octstring<false> NAS_msg;
|
|
|
|
asn1::unbounded_octstring<false> NAS_msg;
|
|
|
|
NAS_msg.from_string("c574defc80ba722bffb8eacb6f8a163e3222cf1542ac529f6980bb15e0bf12d9f2b29f11fb458ec9");
|
|
|
|
NAS_msg.from_string("c574defc80ba722bffb8eacb6f8a163e3222cf1542ac529f6980bb15e0bf12d9f2b29f11fb458ec9");
|
|
|
|
|
|
|
|
|
|
|
|
// STEP 2 - Trigger and send RRCReconfiguration command (gNB -> UE)
|
|
|
|
|
|
|
|
rrc_obj.establish_rrc_bearer(rnti, 1, NAS_msg, srsran::srb_to_lcid(srsran::nr_srb::srb1), 9);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Test whether there exists the SRB1 initiated in the Connection Establishment
|
|
|
|
// Test whether there exists the SRB1 initiated in the Connection Establishment
|
|
|
|
// We test this as the SRB1 was set up in a different function
|
|
|
|
// We test this as the SRB1 was set up in a different function
|
|
|
|
TESTASSERT_EQ(rnti, pdcp.last_sdu_rnti);
|
|
|
|
TESTASSERT_EQ(rnti, pdcp.last_sdu_rnti);
|
|
|
|
TESTASSERT_EQ(srsran::srb_to_lcid(srsran::nr_srb::srb1), pdcp.last_sdu_lcid);
|
|
|
|
TESTASSERT_EQ(srsran::srb_to_lcid(srsran::nr_srb::srb1), pdcp.last_sdu_lcid);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// STEP 2 - Trigger and send RRCReconfiguration command (gNB -> UE)
|
|
|
|
|
|
|
|
rrc_obj.establish_rrc_bearer(rnti, 1, NAS_msg, 4, 9);
|
|
|
|
|
|
|
|
|
|
|
|
dl_dcch_msg_s dl_dcch_msg;
|
|
|
|
dl_dcch_msg_s dl_dcch_msg;
|
|
|
|
{
|
|
|
|
{
|
|
|
|
asn1::cbit_ref bref{pdcp.last_sdu->data(), pdcp.last_sdu->size()};
|
|
|
|
asn1::cbit_ref bref{pdcp.last_sdu->data(), pdcp.last_sdu->size()};
|
|
|
|