From f89876778a8a84d68c049297effddc70f8e221de Mon Sep 17 00:00:00 2001 From: Xin Zhe Khooi <khooixz@comp.nus.edu.sg> Date: Sat, 9 Mar 2024 02:06:34 +0000 Subject: [PATCH] RRC: Remove check for UE with random ID in RRC Setup Request From the spec, it does not seem to be mandated to check that the random identity needs to be unique within a cell. Also, from experience we see that this only happens when the same UE "comes back"; so since one UE can only have one connection, the other RRC UE contexts (with the same identity) should be removed at some point, anyway, leaving only one with the same identity. --- openair2/RRC/NR/rrc_gNB.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/openair2/RRC/NR/rrc_gNB.c b/openair2/RRC/NR/rrc_gNB.c index f0df5996a3f..3b73bae843a 100644 --- a/openair2/RRC/NR/rrc_gNB.c +++ b/openair2/RRC/NR/rrc_gNB.c @@ -1160,14 +1160,6 @@ static void rrc_handle_RRCSetupRequest(gNB_RRC_INST *rrc, rrcSetupRequest->ue_Identity.choice.randomValue.buf, rrcSetupRequest->ue_Identity.choice.randomValue.size); - /* if there is already a registered UE (with another RNTI) with this random_value, - * the current one must be removed from MAC/PHY (zombie UE) - */ - if ((ue_context_p = rrc_gNB_ue_context_random_exist(rrc, random_value))) { - LOG_W(NR_RRC, "new UE rnti (coming with random value) is already there, removing UE %x from MAC/PHY\n", msg->crnti); - AssertFatal(false, "not implemented\n"); - } - ue_context_p = rrc_gNB_create_ue_context(assoc_id, msg->crnti, rrc, random_value, msg->gNB_DU_ue_id); } else if (NR_InitialUE_Identity_PR_ng_5G_S_TMSI_Part1 == rrcSetupRequest->ue_Identity.present) { /* <5G-S-TMSI> = <AMF Set ID><AMF Pointer><5G-TMSI> 48-bit */ -- GitLab