From b375a804bfb87cc2bb1d8d34c545d193b8260590 Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Wed, 30 Nov 2022 16:22:52 +0100 Subject: [PATCH] Cleanup of NUMBER_OF_NR_UE_MAX and its references - this defition is obsolete --- common/openairinterface5g_limits.h | 2 -- openair1/SIMULATION/NR_PHY/ulsim.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/openairinterface5g_limits.h b/common/openairinterface5g_limits.h index f420722350..2349941cf2 100644 --- a/common/openairinterface5g_limits.h +++ b/common/openairinterface5g_limits.h @@ -27,7 +27,6 @@ # ifndef PHYSIM # ifndef UE_EXPANSION # define NUMBER_OF_UE_MAX 40 -# define NUMBER_OF_NR_UE_MAX 4 # define NUMBER_OF_CONNECTED_eNB_MAX 1 # define NUMBER_OF_CONNECTED_gNB_MAX 1 # else @@ -37,7 +36,6 @@ # endif # else # define NUMBER_OF_UE_MAX 4 -# define NUMBER_OF_NR_UE_MAX 4 # define NUMBER_OF_CONNECTED_eNB_MAX 1 # define NUMBER_OF_CONNECTED_gNB_MAX 1 # endif diff --git a/openair1/SIMULATION/NR_PHY/ulsim.c b/openair1/SIMULATION/NR_PHY/ulsim.c index 631ef803d9..315fa9a013 100644 --- a/openair1/SIMULATION/NR_PHY/ulsim.c +++ b/openair1/SIMULATION/NR_PHY/ulsim.c @@ -308,7 +308,7 @@ int main(int argc, char **argv) int tx_offset; int32_t txlev_sum = 0, atxlev[4]; int start_rb = 0; - int UE_id =0; // [hna] only works for UE_id = 0 because NUMBER_OF_NR_UE_MAX is set to 1 (phy_init_nr_gNB causes segmentation fault) + int UE_id = 0; int print_perf = 0; cpuf = get_cpu_freq_GHz(); int msg3_flag = 0;