Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
openairinterface5G
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
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
POWDER-Mirror
openairinterface5G
Commits
dc6a5d28
Commit
dc6a5d28
authored
3 years ago
by
Laurent THOMAS
Browse files
Options
Downloads
Patches
Plain Diff
add more workaround with LOG_E() in UE ptrs
parent
7019aa96
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair1/PHY/NR_REFSIG/ptrs_nr.c
+7
-2
7 additions, 2 deletions
openair1/PHY/NR_REFSIG/ptrs_nr.c
with
7 additions
and
2 deletions
openair1/PHY/NR_REFSIG/ptrs_nr.c
+
7
−
2
View file @
dc6a5d28
...
...
@@ -111,6 +111,7 @@ void set_ptrs_symb_idx(uint16_t *ptrs_symbols,
last_symbol
=
start_symbol
+
duration_in_symbols
-
1
;
if
(
L_ptrs
==
0
)
{
LOG_E
(
PHY
,
"bug: impossible L_ptrs
\n
"
);
*
ptrs_symbols
=
0
;
return
;
}
...
...
@@ -263,9 +264,13 @@ void nr_ptrs_cpe_estimation(uint8_t K_ptrs,
uint16_t
re_cnt
=
0
;
uint16_t
cnt
=
0
;
unsigned
short
nb_re_pdsch
=
NR_NB_SC_PER_RB
*
nb_rb
;
if
(
K_ptrs
==
0
)
{
LOG_E
(
PHY
,
"K_ptrs == 0
\n
"
);
return
;
}
uint16_t
sc_per_symbol
=
(
nb_rb
+
K_ptrs
-
1
)
/
K_ptrs
;
int16_t
*
ptrs_p
=
(
int16_t
*
)
malloc
(
sizeof
(
int32_t
)
*
(
sc_per_symbol
));
int16_t
*
dmrs_comp_p
=
(
int16_t
*
)
malloc
(
sizeof
(
int32_t
)
*
(
sc_per_symbol
));
int16_t
*
ptrs_p
=
(
int16_t
*
)
malloc
(
sizeof
(
int32_t
)
*
(
(
1
+
sc_per_symbol
/
4
)
*
4
));
int16_t
*
dmrs_comp_p
=
(
int16_t
*
)
malloc
(
sizeof
(
int32_t
)
*
(
(
1
+
sc_per_symbol
/
4
)
*
4
));
double
abs
=
0
.
0
;
double
real
=
0
.
0
;
double
imag
=
0
.
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