Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bin He
openairinterface5G
Commits
104aa7ee
Commit
104aa7ee
authored
Mar 29, 2021
by
Thomas Schlichter
🇩🇪
Browse files
gNB: fix precoding matrix related compile error
parent
d08bb68b
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair1/PHY/NR_TRANSPORT/nr_dlsch.c
View file @
104aa7ee
...
...
@@ -412,9 +412,9 @@ uint8_t nr_generate_pdsch(PHY_VARS_gNB *gNB,
///Layer Precoding and Antenna port mapping
// tx_layers 1-8 are mapped on antenna ports 1000-1007
// The precoding info is supported by nfapi such as num
PRG
s, prg
S
ize,
and PMI
dx
// The same precoding matrix is applied on prg
S
ize RBs, Thus
// pmi =
PMIdx
[rbidx/prg
S
ize], rbidx =0,...,rbSize-1
// The precoding info is supported by nfapi such as num
_prg
s, prg
_s
ize,
prgs_list and pm_i
dx
// The same precoding matrix is applied on prg
_s
ize RBs, Thus
// pmi =
prgs_list
[rbidx/prg
_s
ize]
.pm_idx
, rbidx =0,...,rbSize-1
// The Precoding matrix:
// The Codebook Type I and Type II are not supported yet.
// We adopt the precoding matrices of PUSCH for 4 layers.
...
...
@@ -426,8 +426,8 @@ uint8_t nr_generate_pdsch(PHY_VARS_gNB *gNB,
for
(
int
rb
=
0
;
rb
<
rel15
->
rbSize
;
rb
++
)
{
//get pmi info
uint8_t
pmi
;
if
(
rel15
->
precodingAndBeamforming
.
prg
S
ize
>
0
)
pmi
=
rel15
->
precodingAndBeamforming
.
PMIdx
[(
int
)
rb
/
rel15
->
precodingAndBeamforming
.
prg
S
ize
];
if
(
rel15
->
precodingAndBeamforming
.
prg
_s
ize
>
0
)
pmi
=
rel15
->
precodingAndBeamforming
.
prgs_list
[(
int
)
rb
/
rel15
->
precodingAndBeamforming
.
prg
_s
ize
]
.
pm_idx
;
else
pmi
=
0
;
//no precoding
...
...
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