From 4c7080ec3f5034f2732817bf4bcd25a39a2ad255 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Thu, 1 Feb 2024 16:38:24 +0100 Subject: [PATCH] E1 bearer ctx handler: correctly index (single) DRB --- openair2/LAYER2/nr_pdcp/cucp_cuup_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/LAYER2/nr_pdcp/cucp_cuup_handler.c b/openair2/LAYER2/nr_pdcp/cucp_cuup_handler.c index d113905c0a..ec4dc7d167 100644 --- a/openair2/LAYER2/nr_pdcp/cucp_cuup_handler.c +++ b/openair2/LAYER2/nr_pdcp/cucp_cuup_handler.c @@ -185,7 +185,7 @@ void e1_bearer_context_setup(const e1ap_bearer_setup_req_t *req) &resp_n3); AssertFatal(ret >= 0, "Unable to create GTP Tunnel for NG-U\n"); AssertFatal(resp_n3.num_tunnels == req_pdu->numDRB2Setup, "could not create all tunnels\n"); - resp_pdu->teId = resp_n3.gnb_NGu_teid[i]; + resp_pdu->teId = resp_n3.gnb_NGu_teid[0]; memcpy(&resp_pdu->tlAddress, &resp_n3.gnb_addr.buffer, 4); // create PDCP bearers. This will also create SDAP bearers