Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
5d65ef2c
Commit
5d65ef2c
authored
Mar 01, 2022
by
Thomas Schlichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NR_UE: correctly scale UL frequency offset (relevant for FDD)
parent
ef2a2403
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
openair1/PHY/NR_UE_TRANSPORT/nr_ue_rf_helpers.c
openair1/PHY/NR_UE_TRANSPORT/nr_ue_rf_helpers.c
+3
-2
No files found.
openair1/PHY/NR_UE_TRANSPORT/nr_ue_rf_helpers.c
View file @
5d65ef2c
...
@@ -86,16 +86,17 @@ void nr_rf_card_config_freq(openair0_config_t *openair0_cfg,
...
@@ -86,16 +86,17 @@ void nr_rf_card_config_freq(openair0_config_t *openair0_cfg,
uint8_t
cc_id
=
0
;
uint8_t
cc_id
=
0
;
PHY_VARS_NR_UE
*
ue
=
PHY_vars_UE_g
[
mod_id
][
cc_id
];
PHY_VARS_NR_UE
*
ue
=
PHY_vars_UE_g
[
mod_id
][
cc_id
];
int
rf_chain
=
ue
->
rf_map
.
chain
;
int
rf_chain
=
ue
->
rf_map
.
chain
;
double
freq_scale
=
(
double
)(
dl_carrier
+
freq_offset
)
/
dl_carrier
;
for
(
int
i
=
rf_chain
;
i
<
rf_chain
+
4
;
i
++
)
{
for
(
int
i
=
rf_chain
;
i
<
rf_chain
+
4
;
i
++
)
{
if
(
i
<
openair0_cfg
->
rx_num_channels
)
if
(
i
<
openair0_cfg
->
rx_num_channels
)
openair0_cfg
->
rx_freq
[
i
+
rf_chain
]
=
dl_carrier
+
freq_offset
;
openair0_cfg
->
rx_freq
[
i
+
rf_chain
]
=
dl_carrier
*
freq_scale
;
else
else
openair0_cfg
->
rx_freq
[
i
]
=
0
.
0
;
openair0_cfg
->
rx_freq
[
i
]
=
0
.
0
;
if
(
i
<
openair0_cfg
->
tx_num_channels
)
if
(
i
<
openair0_cfg
->
tx_num_channels
)
openair0_cfg
->
tx_freq
[
i
]
=
ul_carrier
+
freq_offset
;
openair0_cfg
->
tx_freq
[
i
]
=
ul_carrier
*
freq_scale
;
else
else
openair0_cfg
->
tx_freq
[
i
]
=
0
.
0
;
openair0_cfg
->
tx_freq
[
i
]
=
0
.
0
;
...
...
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