From 65160704ab0fe814bb64b206a3a32d7383debb1e Mon Sep 17 00:00:00 2001
From: Rakesh Mundlamuri <rakeshmundlamur@iisc.ac.in>
Date: Fri, 19 Apr 2019 23:45:30 +0530
Subject: [PATCH] Declaration of openair0_cfg

---
 openair1/SIMULATION/NR_PHY/dlschsim.c | 1 +
 openair1/SIMULATION/NR_PHY/dlsim.c    | 1 +
 openair1/SIMULATION/NR_PHY/pbchsim.c  | 1 +
 openair1/SIMULATION/NR_PHY/ulschsim.c | 1 +
 4 files changed, 4 insertions(+)

diff --git a/openair1/SIMULATION/NR_PHY/dlschsim.c b/openair1/SIMULATION/NR_PHY/dlschsim.c
index 2a95768a3e..beb2f77da9 100644
--- a/openair1/SIMULATION/NR_PHY/dlschsim.c
+++ b/openair1/SIMULATION/NR_PHY/dlschsim.c
@@ -103,6 +103,7 @@ void exit_function(const char *file, const char *function, const int line,
 // needed for some functions
 PHY_VARS_NR_UE *PHY_vars_UE_g[1][1] = { { NULL } };
 uint16_t n_rnti = 0x1234;
+openair0_config_t openair0_cfg[MAX_CARDS];
 
 char quantize(double D, double x, unsigned char B) {
 	double qxd;
diff --git a/openair1/SIMULATION/NR_PHY/dlsim.c b/openair1/SIMULATION/NR_PHY/dlsim.c
index b95ea7502e..8917a29623 100644
--- a/openair1/SIMULATION/NR_PHY/dlsim.c
+++ b/openair1/SIMULATION/NR_PHY/dlsim.c
@@ -115,6 +115,7 @@ void config_common(int Mod_idP,
 // needed for some functions
 PHY_VARS_NR_UE ***PHY_vars_UE_g;
 short conjugate[8]__attribute__((aligned(32))) = {-1,1,-1,1,-1,1,-1,1};
+openair0_config_t openair0_cfg[MAX_CARDS];
 
 int main(int argc, char **argv)
 {
diff --git a/openair1/SIMULATION/NR_PHY/pbchsim.c b/openair1/SIMULATION/NR_PHY/pbchsim.c
index 61d4c486f5..8e00e8f812 100644
--- a/openair1/SIMULATION/NR_PHY/pbchsim.c
+++ b/openair1/SIMULATION/NR_PHY/pbchsim.c
@@ -80,6 +80,7 @@ void exit_function(const char* file, const char* function, const int line,const
 
 // needed for some functions
 PHY_VARS_NR_UE * PHY_vars_UE_g[1][1]={{NULL}};
+openair0_config_t openair0_cfg[MAX_CARDS];
 
 int main(int argc, char **argv)
 {
diff --git a/openair1/SIMULATION/NR_PHY/ulschsim.c b/openair1/SIMULATION/NR_PHY/ulschsim.c
index ca3860c5b0..7b5ef99e9b 100644
--- a/openair1/SIMULATION/NR_PHY/ulschsim.c
+++ b/openair1/SIMULATION/NR_PHY/ulschsim.c
@@ -104,6 +104,7 @@ void exit_function(const char *file, const char *function, const int line, const
 // needed for some functions
 PHY_VARS_NR_UE *PHY_vars_UE_g[1][1] = { { NULL } };
 uint16_t n_rnti = 0x1234;
+openair0_config_t openair0_cfg[MAX_CARDS];
 
 char quantize(double D, double x, unsigned char B) {
   double qxd;
-- 
2.26.2