From 66dad294a51e7a39528f059c75061a0661f471a8 Mon Sep 17 00:00:00 2001
From: Y_Tomita <tomita.y@jp.fujitsu.com>
Date: Wed, 24 Oct 2018 18:26:24 +0900
Subject: [PATCH] Change define NUMBER_OF_UE_MAX to avoid unexpected access.

---
 targets/COMMON/openairinterface5g_limits.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
 mode change 100644 => 100755 targets/COMMON/openairinterface5g_limits.h

diff --git a/targets/COMMON/openairinterface5g_limits.h b/targets/COMMON/openairinterface5g_limits.h
old mode 100644
new mode 100755
index 1c27f65585..82a9f7df02
--- a/targets/COMMON/openairinterface5g_limits.h
+++ b/targets/COMMON/openairinterface5g_limits.h
@@ -15,7 +15,12 @@
 #        define NUMBER_OF_eNB_MAX 7
 #        define NUMBER_OF_RU_MAX 32
 #        ifndef UE_EXPANSION
-#                define NUMBER_OF_UE_MAX 20
+/* if the value of MAX_MOBILES_PER_ENB and NUMBER_OF_UE_MAX is different,
+eNB process will exit because unexpected access happens.
+Now some parts are using NUMBER_OF_UE_MAX
+and the other are using MAX_MOBILES_PER_ENB in for-loop.
+*/
+#                define NUMBER_OF_UE_MAX 16
 #                define NUMBER_OF_CONNECTED_eNB_MAX 3
 #        else
 #                define NUMBER_OF_UE_MAX 256
-- 
GitLab