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
zzha zzha
OpenXG-RAN
Commits
b8e377d4
Commit
b8e377d4
authored
Oct 08, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add single assert to check for validity in code
parent
0bf96c9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
+1
-0
No files found.
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
View file @
b8e377d4
...
@@ -2077,6 +2077,7 @@ uint8_t compute_nr_root_seq(NR_RACH_ConfigCommon_t *rach_config,
...
@@ -2077,6 +2077,7 @@ uint8_t compute_nr_root_seq(NR_RACH_ConfigCommon_t *rach_config,
if
(
NCS
==
0
)
return
nb_preambles
;
if
(
NCS
==
0
)
return
nb_preambles
;
else
{
else
{
r
=
L_ra
/
NCS
;
r
=
L_ra
/
NCS
;
AssertFatal
(
r
>
0
,
"bad r: L_ra %d, NCS %d
\n
"
,
L_ra
,
NCS
);
found_sequences
=
(
nb_preambles
/
r
)
+
(
nb_preambles
%
r
!=
0
);
//ceil(nb_preambles/r)
found_sequences
=
(
nb_preambles
/
r
)
+
(
nb_preambles
%
r
!=
0
);
//ceil(nb_preambles/r)
LOG_D
(
MAC
,
"Computing NR root sequences: found %u sequences
\n
"
,
found_sequences
);
LOG_D
(
MAC
,
"Computing NR root sequences: found %u sequences
\n
"
,
found_sequences
);
return
(
found_sequences
);
return
(
found_sequences
);
...
...
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