From 84ffd14a8fa3f23f516bc7afc4132cd504a8fb86 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Thu, 5 Oct 2023 12:36:26 +0200 Subject: [PATCH] Correctly handle UE Ctxt Modif RRC container The RRC container is to be handled by the msg handler in mac_rrc_dl_handler.c. Therefore, don't forward the RRC message, but copy it into the message so the handler can take the action. --- openair2/F1AP/f1ap_du_ue_context_management.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/openair2/F1AP/f1ap_du_ue_context_management.c b/openair2/F1AP/f1ap_du_ue_context_management.c index b9d29303f0..851ced9176 100644 --- a/openair2/F1AP/f1ap_du_ue_context_management.c +++ b/openair2/F1AP/f1ap_du_ue_context_management.c @@ -927,16 +927,7 @@ int DU_handle_UE_CONTEXT_MODIFICATION_REQUEST(instance_t instance, sctp_assoc_t f1ap_ue_context_modification_req->rrc_container = malloc(ieRRC->value.choice.RRCContainer.size); memcpy(f1ap_ue_context_modification_req->rrc_container, ieRRC->value.choice.RRCContainer.buf, ieRRC->value.choice.RRCContainer.size); - protocol_ctxt_t ctxt; - // decode RRC Container and act on the message type - ctxt.rntiMaybeUEid = f1ap_ue_context_modification_req->gNB_DU_ue_id; - ctxt.instance = instance; - ctxt.module_id = instance; - ctxt.enb_flag = 1; - ctxt.eNB_index = instance; - mem_block_t *pdcp_pdu_p = get_free_mem_block(ieRRC->value.choice.RRCContainer.size, __func__); - memcpy(&pdcp_pdu_p->data[0], ieRRC->value.choice.RRCContainer.buf, ieRRC->value.choice.RRCContainer.size); - du_rlc_data_req(&ctxt, 1, 0x00, 1, 1, 0, ieRRC->value.choice.RRCContainer.size, pdcp_pdu_p); + f1ap_ue_context_modification_req->rrc_container_length = ieRRC->value.choice.RRCContainer.size; } else { LOG_E(F1AP, " RRCContainer in UEContextModificationRequestIEs size id 0\n"); }