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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
spbro
OpenXG-RAN
Commits
2962340a
Commit
2962340a
authored
Mar 04, 2024
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add variable pointer to catch the rx gain between redundant strct members rfdevice and ifdevice
parent
50d4d489
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
+13
-3
No files found.
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
View file @
2962340a
...
...
@@ -206,9 +206,19 @@ void nr_gnb_measurements(PHY_VARS_gNB *gNB,
int
rx_power_tot
=
0
;
unsigned
short
rx_power_avg_dB
;
unsigned
short
rx_power_tot_dB
;
double
rx_gain
=
gNB
->
RU_list
[
0
]
->
rfdevice
.
openair0_cfg
->
rx_gain
[
0
];
double
rx_gain_offset
=
gNB
->
RU_list
[
0
]
->
rfdevice
.
openair0_cfg
->
rx_gain_offset
[
0
];
RU_t
*
ru
=
gNB
->
RU_list
[
0
];
double
rx_gain
,
rx_gain_offset
;
if
(
ru
&&
ru
->
rfdevice
.
openair0_cfg
)
{
rx_gain
=
ru
->
rfdevice
.
openair0_cfg
->
rx_gain
[
0
];
rx_gain_offset
=
ru
->
rfdevice
.
openair0_cfg
->
rx_gain_offset
[
0
];
}
else
if
(
ru
&&
ru
->
ifdevice
.
openair0_cfg
)
{
rx_gain
=
ru
->
ifdevice
.
openair0_cfg
->
rx_gain
[
0
];
rx_gain_offset
=
ru
->
ifdevice
.
openair0_cfg
->
rx_gain_offset
[
0
];
}
else
{
LOG_W
(
NR_PHY
,
"no device for rx gain, take arbitrary gain = 1)
\n
"
);
rx_gain
=
1
;
rx_gain_offset
=
0
;
}
PHY_MEASUREMENTS_gNB
*
meas
=
&
gNB
->
measurements
;
NR_DL_FRAME_PARMS
*
fp
=
&
gNB
->
frame_parms
;
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