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
ZhouShuya
OpenXG-RAN
Commits
a0f8e5ac
Commit
a0f8e5ac
authored
Jun 15, 2020
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed LOG functions from nr_polar_init, they make polartest segfault. polartest to be fixed ...
parent
09efbc02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
openair1/PHY/CODING/nr_polar_init.c
openair1/PHY/CODING/nr_polar_init.c
+5
-5
No files found.
openair1/PHY/CODING/nr_polar_init.c
View file @
a0f8e5ac
...
...
@@ -48,7 +48,7 @@ static void nr_polar_init(t_nrPolar_params * *polarParams,
//Parse the list. If the node is already created, return without initialization.
while
(
currentPtr
!=
NULL
)
{
//printf("currentPtr->idx %d, (%d,%d)\n",currentPtr->idx,currentPtr->payloadBits,currentPtr->encoderLength);
LOG_D
(
PHY
,
"Looking for index %d
\n
"
,(
messageType
*
messageLength
*
aggregation_prime
));
//
LOG_D(PHY,"Looking for index %d\n",(messageType * messageLength * aggregation_prime));
if
(
currentPtr
->
idx
==
(
messageType
*
messageLength
*
aggregation_prime
))
return
;
else
currentPtr
=
currentPtr
->
nextPtr
;
}
...
...
@@ -56,9 +56,9 @@ static void nr_polar_init(t_nrPolar_params * *polarParams,
// printf("currentPtr %p (polarParams %p)\n",currentPtr,polarParams);
//Else, initialize and add node to the end of the linked list.
t_nrPolar_params
*
newPolarInitNode
=
calloc
(
sizeof
(
t_nrPolar_params
),
1
);
if
(
newPolarInitNode
!=
NULL
)
{
LOG_D
(
PHY
,
"Setting new polarParams index %d, messageType %d, messageLength %d, aggregation_prime %d
\n
"
,(
messageType
*
messageLength
*
aggregation_prime
),
messageType
,
messageLength
,
aggregation_prime
);
//
LOG_D(PHY,"Setting new polarParams index %d, messageType %d, messageLength %d, aggregation_prime %d\n",(messageType * messageLength * aggregation_prime),messageType,messageLength,aggregation_prime);
newPolarInitNode
->
idx
=
(
messageType
*
messageLength
*
aggregation_prime
);
newPolarInitNode
->
nextPtr
=
NULL
;
//printf("newPolarInitNode->idx %d, (%d,%d,%d:%d)\n",newPolarInitNode->idx,messageType,messageLength,aggregation_prime,aggregation_level);
...
...
@@ -118,7 +118,7 @@ static void nr_polar_init(t_nrPolar_params * *polarParams,
newPolarInitNode
->
payloadBits
=
messageLength
;
newPolarInitNode
->
crcCorrectionBits
=
NR_POLAR_PUCCH_CRC_ERROR_CORRECTION_BITS
;
//newPolarInitNode->crc_generator_matrix=crc24c_generator_matrix(newPolarInitNode->payloadBits+newPolarInitNode->crcParityBits);//G_P
LOG_D
(
PHY
,
"New polar node, encoderLength %d, aggregation_level %d
\n
"
,
newPolarInitNode
->
encoderLength
,
aggregation_level
);
//
LOG_D(PHY,"New polar node, encoderLength %d, aggregation_level %d\n",newPolarInitNode->encoderLength,aggregation_level);
}
else
{
AssertFatal
(
1
==
0
,
"[nr_polar_init] Incorrect Message Type(%d)"
,
messageType
);
}
...
...
@@ -227,7 +227,7 @@ t_nrPolar_params *nr_polar_params (int8_t messageType,
while
(
polarParams
!=
NULL
)
{
LOG_D
(
PHY
,
"nr_polar_params : tag %d (from nr_polar_init %d)
\n
"
,
tag
,
polarParams
->
idx
);
//
LOG_D(PHY,"nr_polar_params : tag %d (from nr_polar_init %d)\n",tag,polarParams->idx);
if
(
polarParams
->
idx
==
tag
)
return
polarParams
;
...
...
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