From 49b5e62d7713452d27a828eb71621761145a7afd Mon Sep 17 00:00:00 2001
From: knopp <knopp@mycompany.com>
Date: Wed, 5 Aug 2015 13:00:26 +0000
Subject: [PATCH] removed bug introduced in ra_procedures.c

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7766 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 openair2/LAYER2/MAC/ra_procedures.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/openair2/LAYER2/MAC/ra_procedures.c b/openair2/LAYER2/MAC/ra_procedures.c
index b62c8e66ed3..84fa2a99d97 100644
--- a/openair2/LAYER2/MAC/ra_procedures.c
+++ b/openair2/LAYER2/MAC/ra_procedures.c
@@ -122,7 +122,7 @@ void get_prach_resources(module_id_t module_idP,
   RACH_ConfigCommon_t *rach_ConfigCommon = NULL;
   uint8_t noGroupB = 0;
   uint8_t f_id = 0,num_prach=0;
-  int numberOfRA_Preambles = (1+rach_ConfigCommon->preambleInfo.numberOfRA_Preambles)<<2;  
+  int numberOfRA_Preambles;
   int messageSizeGroupA;
   int sizeOfRA_PreamblesGroupA;
   int messagePowerOffsetGroupB;
@@ -142,6 +142,8 @@ void get_prach_resources(module_id_t module_idP,
     return; // not reached
   }
 
+  numberOfRA_Preambles = (1+rach_ConfigCommon->preambleInfo.numberOfRA_Preambles)<<2;  
+
   if (rach_ConfigDedicated) {   // This is for network controlled Mobility, later
     if (rach_ConfigDedicated->ra_PRACH_MaskIndex != 0) {
       prach_resources->ra_PreambleIndex = rach_ConfigDedicated->ra_PreambleIndex;
-- 
GitLab