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
d7f89ae6
Commit
d7f89ae6
authored
Mar 18, 2021
by
Thomas Schlichter
🇩🇪
Browse files
NR: allocate memory for 2 slots of OFDM symbols in txdataF_precoding
parent
5d6863dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
View file @
d7f89ae6
...
...
@@ -155,7 +155,7 @@ NR_gNB_DLSCH_t *new_gNB_dlsch(NR_DL_FRAME_PARMS *frame_parms,
}
dlsch
->
txdataF
[
layer
]
=
(
int32_t
*
)
malloc16
((
NR_MAX_PDSCH_ENCODED_LENGTH
/
NR_MAX_NB_LAYERS
)
*
sizeof
(
int32_t
));
// NR_MAX_NB_LAYERS is already included in NR_MAX_PDSCH_ENCODED_LENGTH
dlsch
->
txdataF_precoding
[
layer
]
=
(
int32_t
*
)
malloc16
(
(
14
*
frame_parms
->
ofdm_symbol_size
)
*
sizeof
(
int32_t
));
dlsch
->
txdataF_precoding
[
layer
]
=
(
int32_t
*
)
malloc16
(
2
*
14
*
frame_parms
->
ofdm_symbol_size
*
sizeof
(
int32_t
));
}
for
(
int
q
=
0
;
q
<
NR_MAX_NB_CODEWORDS
;
q
++
)
...
...
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