From fbfe76bdc542bc9d928b7708ee4475430124628f Mon Sep 17 00:00:00 2001 From: francescomani Date: Mon, 5 May 2025 18:18:42 +0200 Subject: [PATCH] fix size of access_ue_list the current UE list is zero-terminated (see e.g., the UE_iterator macro). --- openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h b/openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h index 43dcbab20d..561f55339c 100644 --- a/openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h +++ b/openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h @@ -761,7 +761,7 @@ typedef struct { // last element always NULL pthread_mutex_t mutex; NR_UE_info_t *connected_ue_list[MAX_MOBILES_PER_GNB + 1]; - NR_UE_info_t *access_ue_list[NR_NB_RA_PROC_MAX]; + NR_UE_info_t *access_ue_list[NR_NB_RA_PROC_MAX + 1]; // bitmap of CSI-RS already scheduled in current slot int sched_csirs; uid_allocator_t uid_allocator;