Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
c37e0af9
Commit
c37e0af9
authored
2 years ago
by
Roberto Louro Magueta
Browse files
Options
Downloads
Patches
Plain Diff
Change LOG levels
parent
ef63aa45
No related branches found
No related tags found
3 merge requests
!1757
Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c
,
!1630
integration_2022_wk30b
,
!1528
CSI Feedback
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+16
-14
16 additions, 14 deletions
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
with
16 additions
and
14 deletions
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+
16
−
14
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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment