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
lizhongxiao
OpenXG-RAN
Commits
07e6ea7e
Commit
07e6ea7e
authored
Mar 05, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/fix-nrofHARQ' into integration_2022_wk09_b
parents
cadbf67f
29fa4746
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+8
-1
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
07e6ea7e
...
...
@@ -1944,7 +1944,6 @@ void create_nr_list(NR_list_t *list, int len)
{
list
->
head
=
-
1
;
list
->
next
=
malloc
(
len
*
sizeof
(
*
list
->
next
));
LOG_W
(
NR_MAC
,
"NR list->next %p
\n
"
,
list
->
next
);
AssertFatal
(
list
->
next
,
"cannot malloc() memory for NR_list_t->next
\n
"
);
for
(
int
i
=
0
;
i
<
len
;
++
i
)
list
->
next
[
i
]
=
-
1
;
...
...
@@ -2279,8 +2278,16 @@ void create_dl_harq_list(NR_UE_sched_ctrl_t *sched_ctrl,
add_tail_nr_list
(
&
sched_ctrl
->
available_dl_harq
,
harq
);
create_nr_list
(
&
sched_ctrl
->
feedback_dl_harq
,
nrofHARQ
);
create_nr_list
(
&
sched_ctrl
->
retrans_dl_harq
,
nrofHARQ
);
}
else
if
(
sched_ctrl
->
available_dl_harq
.
len
==
nrofHARQ
)
{
LOG_D
(
NR_MAC
,
"nrofHARQ %d already configured
\n
"
,
nrofHARQ
);
}
else
{
const
int
old_nrofHARQ
=
sched_ctrl
->
available_dl_harq
.
len
;
AssertFatal
(
nrofHARQ
>
old_nrofHARQ
,
"cannot resize HARQ list to be smaller (nrofHARQ %d, old_nrofHARQ %d)
\n
"
,
nrofHARQ
,
old_nrofHARQ
);
resize_nr_list
(
&
sched_ctrl
->
available_dl_harq
,
nrofHARQ
);
for
(
int
harq
=
old_nrofHARQ
;
harq
<
nrofHARQ
;
harq
++
)
add_tail_nr_list
(
&
sched_ctrl
->
available_dl_harq
,
harq
);
resize_nr_list
(
&
sched_ctrl
->
feedback_dl_harq
,
nrofHARQ
);
resize_nr_list
(
&
sched_ctrl
->
retrans_dl_harq
,
nrofHARQ
);
}
...
...
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