From 2ee056bf4553aa2505d037a1467aa0f0bf7f6643 Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Fri, 4 Apr 2025 16:35:58 +0200 Subject: [PATCH] Add definition for maximum number of slices according to 3GPP specs --- common/platform_constants.h | 2 ++ openair2/COMMON/f1ap_messages_types.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/platform_constants.h b/common/platform_constants.h index 2f54208306..3b59068a1f 100644 --- a/common/platform_constants.h +++ b/common/platform_constants.h @@ -80,6 +80,8 @@ #define NB_RAB_MAX 11 /* from LTE_maxDRB in LTE_asn_constant.h */ #define RAB_OFFSET 0x000F +#define MAX_NUM_SLICES 1024 + // RLC Entity #define RLC_TX_MAXSIZE 10000000 #define RLC_RX_MAXSIZE 10000000 diff --git a/openair2/COMMON/f1ap_messages_types.h b/openair2/COMMON/f1ap_messages_types.h index 53740c1bde..14ad0b5dc7 100644 --- a/openair2/COMMON/f1ap_messages_types.h +++ b/openair2/COMMON/f1ap_messages_types.h @@ -25,6 +25,7 @@ #include #include #include "common/5g_platform_types.h" +#include "common/platform_constants.h" //-------------------------------------------------------------------------------------------// // Defines to access message fields. @@ -140,7 +141,7 @@ typedef struct f1ap_served_cell_info_t { // Number of slice support items (max 16, could be increased to as much as 1024) uint16_t num_ssi; - nssai_t nssai[16]; + nssai_t nssai[MAX_NUM_SLICES]; f1ap_mode_t mode; union {