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
000e60c1
Commit
000e60c1
authored
Nov 30, 2015
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extrac_cqi translates pmi_dual into pmi_single
parent
13752a67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
+2
-2
openair1/PHY/LTE_TRANSPORT/uci_tools.c
openair1/PHY/LTE_TRANSPORT/uci_tools.c
+4
-0
No files found.
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
View file @
000e60c1
...
...
@@ -1257,9 +1257,9 @@ uint8_t get_pmi(uint8_t N_RB_DL,LTE_DL_eNB_HARQ_t *dlsch_harq,uint16_t rb)
// printf("Getting pmi for RB %d => %d\n",rb,(pmi_alloc>>((rb>>2)<<1))&3);
switch
(
N_RB_DL
)
{
case
6
:
// 1 PRB per subband
if
(
mode
<=
PUSCH_PRECODING1
)
if
(
mode
<=
PUSCH_PRECODING1
)
//single layer
return
((
pmi_alloc
>>
(
rb
<<
1
))
&
3
);
else
else
//two layer
return
((
pmi_alloc
>>
rb
)
&
1
);
break
;
...
...
openair1/PHY/LTE_TRANSPORT/uci_tools.c
View file @
000e60c1
...
...
@@ -285,6 +285,10 @@ void extract_CQI(void *o,UCI_format_t uci_format,LTE_eNB_UE_stats *stats, uint8_
stats
->
DL_cqi
[
1
]
=
24
;
stats
->
DL_pmi_dual
=
((
wideband_cqi_rank2_2A_5MHz
*
)
o
)
->
pmi
;
//this translates the 2-layer PMI into a single layer PMI for the first codeword
//the PMI for the second codeword will be stats->DL_pmi_single^0x1555
for
(
i
=
0
;
i
<
7
;
i
++
)
stats
->
DL_pmi_single
&
(
1
<<
(
2
*
i
))
=
(
stats
->
DL_pmi_dual
&
(
1
<
i
))
*
2
;
break
;
case
HLC_subband_cqi_nopmi
:
...
...
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