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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
ca9824c2
Commit
ca9824c2
authored
Feb 15, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UL Ref Sig Seq: initialize only once, free and reset to NULL
parent
edbe4f0d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
openair1/PHY/NR_REFSIG/ul_ref_seq_nr.c
openair1/PHY/NR_REFSIG/ul_ref_seq_nr.c
+13
-3
No files found.
openair1/PHY/NR_REFSIG/ul_ref_seq_nr.c
View file @
ca9824c2
...
...
@@ -204,6 +204,11 @@ int16_t *base_sequence_36_or_larger(unsigned int Msc_RS,
void
generate_lowpapr_typ1_refsig_sequences
(
unsigned
int
scaling
)
{
/* prevent multiple calls, relevant when both UE & gNB initialize this */
static
bool
already_called
=
false
;
if
(
already_called
)
return
;
already_called
=
true
;
unsigned
int
u
,
Msc_RS
;
unsigned
int
v
=
0
;
// sequence hopping and group hopping are not supported yet
...
...
@@ -223,6 +228,11 @@ void generate_lowpapr_typ1_refsig_sequences(unsigned int scaling)
void
generate_ul_reference_signal_sequences
(
unsigned
int
scaling
)
{
/* prevent multiple calls, relevant when both UE & gNB initialize this */
static
bool
already_called
=
false
;
if
(
already_called
)
return
;
already_called
=
true
;
unsigned
int
u
,
v
,
Msc_RS
;
#if 0
...
...
@@ -295,10 +305,10 @@ void free_ul_reference_signal_sequences(void)
for
(
u
=
0
;
u
<
U_GROUP_NUMBER
;
u
++
)
{
for
(
v
=
0
;
v
<
V_BASE_SEQUENCE_NUMBER
;
v
++
)
{
if
(
rv_ul_ref_sig
[
u
][
v
][
Msc_RS
])
free
16
(
rv_ul_ref_sig
[
u
][
v
][
Msc_RS
],
2
*
sizeof
(
int16_t
)
*
ul_allocated_re
[
Msc_RS
]);
free
_and_zero
(
rv_ul_ref_sig
[
u
][
v
]
[
Msc_RS
]);
if
((
v
==
0
)
&&
(
Msc_RS
<
MAX_INDEX_DMRS_UL_ALLOCATED_REs
))
if
(
dmrs_lowpaprtype1_ul_ref_sig
[
u
][
v
][
Msc_RS
])
free
16
(
dmrs_lowpaprtype1_ul_ref_sig
[
u
][
v
][
Msc_RS
],
2
*
sizeof
(
int16_t
)
*
dmrs_ul_allocated_res
[
Msc_RS
]);
free
_and_zero
(
dmrs_lowpaprtype1_ul_ref_sig
[
u
][
v
][
Msc_RS
]);
}
}
}
...
...
@@ -321,7 +331,7 @@ void free_gnb_lowpapr_sequences(void)
v
=
0
;
for
(
u
=
0
;
u
<
U_GROUP_NUMBER
;
u
++
)
{
if
(
gNB_dmrs_lowpaprtype1_sequence
[
u
][
v
][
Msc_RS
])
free
16
(
gNB_dmrs_lowpaprtype1_sequence
[
u
][
v
][
Msc_RS
],
2
*
sizeof
(
int16_t
)
*
dmrs_ul_allocated_res
[
Msc_RS
]);
free
_and_zero
(
gNB_dmrs_lowpaprtype1_sequence
[
u
][
v
]
[
Msc_RS
]);
}
}
}
...
...
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