Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
f0328304
Commit
f0328304
authored
Mar 10, 2021
by
Thomas Schlichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gNB: don't use gNB->RU_list in nr_measurements_gNB.c
this list is not initialized in phy-simulators
parent
367241ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
+6
-6
No files found.
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
View file @
f0328304
...
@@ -35,6 +35,8 @@
...
@@ -35,6 +35,8 @@
#include "PHY/phy_extern.h"
#include "PHY/phy_extern.h"
#include "nr_ul_estimation.h"
#include "nr_ul_estimation.h"
extern
openair0_config_t
openair0_cfg
[
MAX_CARDS
];
int
nr_est_timing_advance_pusch
(
PHY_VARS_gNB
*
gNB
,
int
UE_id
)
int
nr_est_timing_advance_pusch
(
PHY_VARS_gNB
*
gNB
,
int
UE_id
)
{
{
int
temp
,
i
,
aa
,
max_pos
=
0
,
max_val
=
0
;
int
temp
,
i
,
aa
,
max_pos
=
0
,
max_val
=
0
;
...
@@ -76,9 +78,8 @@ void gNB_I0_measurements(PHY_VARS_gNB *gNB) {
...
@@ -76,9 +78,8 @@ void gNB_I0_measurements(PHY_VARS_gNB *gNB) {
NR_gNB_COMMON
*
common_vars
=
&
gNB
->
common_vars
;
NR_gNB_COMMON
*
common_vars
=
&
gNB
->
common_vars
;
PHY_MEASUREMENTS_gNB
*
measurements
=
&
gNB
->
measurements
;
PHY_MEASUREMENTS_gNB
*
measurements
=
&
gNB
->
measurements
;
NR_DL_FRAME_PARMS
*
fp
=
&
gNB
->
frame_parms
;
NR_DL_FRAME_PARMS
*
fp
=
&
gNB
->
frame_parms
;
openair0_config_t
*
cfg
=
&
gNB
->
RU_list
[
0
]
->
openair0_cfg
;
double
rx_gain
=
openair0_cfg
[
0
].
rx_gain
[
0
];
double
rx_gain
=
cfg
->
rx_gain
[
0
];
double
rx_gain_offset
=
openair0_cfg
[
0
].
rx_gain_offset
[
0
];
double
rx_gain_offset
=
cfg
->
rx_gain_offset
[
0
];
uint32_t
*
rb_mask
=
gNB
->
rb_mask_ul
;
uint32_t
*
rb_mask
=
gNB
->
rb_mask_ul
;
int
symbol
=
gNB
->
ulmask_symb
;
int
symbol
=
gNB
->
ulmask_symb
;
int
rb
,
offset
,
nb_rb
;
int
rb
,
offset
,
nb_rb
;
...
@@ -127,9 +128,8 @@ void nr_gnb_measurements(PHY_VARS_gNB *gNB, uint8_t ulsch_id, unsigned char harq
...
@@ -127,9 +128,8 @@ void nr_gnb_measurements(PHY_VARS_gNB *gNB, uint8_t ulsch_id, unsigned char harq
unsigned
short
rx_power_avg_dB
[
NUMBER_OF_NR_ULSCH_MAX
];
unsigned
short
rx_power_avg_dB
[
NUMBER_OF_NR_ULSCH_MAX
];
unsigned
short
rx_power_tot_dB
[
NUMBER_OF_NR_ULSCH_MAX
];
unsigned
short
rx_power_tot_dB
[
NUMBER_OF_NR_ULSCH_MAX
];
openair0_config_t
*
cfg
=
&
gNB
->
RU_list
[
0
]
->
openair0_cfg
;
double
rx_gain
=
openair0_cfg
[
0
].
rx_gain
[
0
];
double
rx_gain
=
cfg
->
rx_gain
[
0
];
double
rx_gain_offset
=
openair0_cfg
[
0
].
rx_gain_offset
[
0
];
double
rx_gain_offset
=
cfg
->
rx_gain_offset
[
0
];
PHY_MEASUREMENTS_gNB
*
meas
=
&
gNB
->
measurements
;
PHY_MEASUREMENTS_gNB
*
meas
=
&
gNB
->
measurements
;
NR_DL_FRAME_PARMS
*
fp
=
&
gNB
->
frame_parms
;
NR_DL_FRAME_PARMS
*
fp
=
&
gNB
->
frame_parms
;
int
ch_offset
=
fp
->
ofdm_symbol_size
*
symbol
;
int
ch_offset
=
fp
->
ofdm_symbol_size
*
symbol
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment