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
zzha zzha
OpenXG-RAN
Commits
c37e0af9
Commit
c37e0af9
authored
Apr 04, 2022
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change LOG levels
parent
ef63aa45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+16
-14
No files found.
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
c37e0af9
...
...
@@ -364,9 +364,18 @@ int nr_csi_rs_ri_estimation(PHY_VARS_NR_UE *ue,
NR_DL_FRAME_PARMS
*
frame_parms
=
&
ue
->
frame_parms
;
int16_t
cond_dB_threshold
=
0
;
int
count
=
0
;
int
count
=
0
;
*
rank_indicator
=
0
;
if
(
ue
->
frame_parms
.
nb_antennas_rx
==
1
||
ue
->
nr_csi_rs_info
->
N_ports
==
1
)
{
LOG_I
(
NR_PHY
,
"RI = %i
\n
"
,
*
rank_indicator
+
1
);
return
0
;
}
else
if
(
!
(
ue
->
frame_parms
.
nb_antennas_rx
==
2
&&
ue
->
nr_csi_rs_info
->
N_ports
==
2
)
)
{
LOG_W
(
NR_PHY
,
"Rank indicator computation is not implemented for %i x %i system
\n
"
,
ue
->
frame_parms
.
nb_antennas_rx
,
ue
->
nr_csi_rs_info
->
N_ports
);
return
-
1
;
}
/* Example 2x2: Hh x H =
* | conjch00 conjch10 | x | ch00 ch01 | = | conjch00*ch00+conjch10*ch10 conjch00*ch01+conjch10*ch11 |
* | conjch01 conjch11 | | ch10 ch11 | | conjch01*ch00+conjch11*ch10 conjch01*ch01+conjch11*ch11 |
...
...
@@ -503,19 +512,12 @@ int nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
ue
->
nr_csi_rs_info
->
csi_rs_estimated_channel_freq
,
ue
->
nr_csi_rs_info
->
noise_power
);
if
(
ue
->
frame_parms
.
nb_antennas_rx
==
1
||
ue
->
nr_csi_rs_info
->
N_ports
==
1
)
{
*
ue
->
nr_csi_rs_info
->
rank_indicator
=
0
;
}
else
if
(
ue
->
frame_parms
.
nb_antennas_rx
==
2
&&
ue
->
nr_csi_rs_info
->
N_ports
==
2
)
{
nr_csi_rs_ri_estimation
(
ue
,
proc
,
csirs_config_pdu
,
ue
->
nr_csi_rs_info
,
ue
->
nr_csi_rs_info
->
csi_rs_estimated_channel_freq
,
ue
->
nr_csi_rs_info
->
rank_indicator
);
}
else
{
LOG_D
(
NR_PHY
,
"Rank indicator computation is not implemented for %i x %i system
\n
"
,
ue
->
frame_parms
.
nb_antennas_rx
,
ue
->
nr_csi_rs_info
->
N_ports
);
}
nr_csi_rs_ri_estimation
(
ue
,
proc
,
csirs_config_pdu
,
ue
->
nr_csi_rs_info
,
ue
->
nr_csi_rs_info
->
csi_rs_estimated_channel_freq
,
ue
->
nr_csi_rs_info
->
rank_indicator
);
return
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