From 17f2eaa558b90854740f18566978f172e9217237 Mon Sep 17 00:00:00 2001 From: Sreeshma Shiv Date: Wed, 15 May 2024 12:54:28 +0530 Subject: [PATCH] TAC-Octet String to integer conversion function corrections -Corrected the conversion function used in CU_handle_F1_SETUP_REQUEST -Corrected the conversion function in CU_handle_gNB_DU_CONFIGURATION_UPDATE --- openair2/F1AP/f1ap_cu_interface_management.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openair2/F1AP/f1ap_cu_interface_management.c b/openair2/F1AP/f1ap_cu_interface_management.c index 92c1840350..360a2323aa 100644 --- a/openair2/F1AP/f1ap_cu_interface_management.c +++ b/openair2/F1AP/f1ap_cu_interface_management.c @@ -158,7 +158,7 @@ int CU_handle_F1_SETUP_REQUEST(instance_t instance, sctp_assoc_t assoc_id, uint3 if (servedCellInformation->fiveGS_TAC) { req->cell[i].info.tac = malloc(sizeof(*req->cell[i].info.tac)); AssertFatal(req->cell[i].info.tac != NULL, "out of memory\n"); - OCTET_STRING_TO_INT16(servedCellInformation->fiveGS_TAC, *req->cell[i].info.tac); + OCTET_STRING_TO_INT24(servedCellInformation->fiveGS_TAC, *req->cell[i].info.tac); LOG_D(F1AP, "req->tac[%d] %d \n", i, *req->cell[i].info.tac); } @@ -636,7 +636,7 @@ int CU_handle_gNB_DU_CONFIGURATION_UPDATE(instance_t instance, sctp_assoc_t asso if (servedCellInformation->fiveGS_TAC) { req->cell_to_modify[i].info.tac = malloc(sizeof(*req->cell_to_modify[i].info.tac)); AssertFatal(req->cell_to_modify[i].info.tac != NULL, "out of memory\n"); - OCTET_STRING_TO_INT16(servedCellInformation->fiveGS_TAC, *req->cell_to_modify[i].info.tac); + OCTET_STRING_TO_INT24(servedCellInformation->fiveGS_TAC, *req->cell_to_modify[i].info.tac); LOG_D(F1AP, "req->tac[%d] %d \n", i, *req->cell_to_modify[i].info.tac); }