Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
OpenXG
OpenXG UE
Commits
dd6f15c3
Commit
dd6f15c3
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
b2d608f4
13c3b043
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 @
dd6f15c3
...
@@ -1944,7 +1944,6 @@ void create_nr_list(NR_list_t *list, int len)
...
@@ -1944,7 +1944,6 @@ void create_nr_list(NR_list_t *list, int len)
{
{
list
->
head
=
-
1
;
list
->
head
=
-
1
;
list
->
next
=
malloc
(
len
*
sizeof
(
*
list
->
next
));
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
"
);
AssertFatal
(
list
->
next
,
"cannot malloc() memory for NR_list_t->next
\n
"
);
for
(
int
i
=
0
;
i
<
len
;
++
i
)
for
(
int
i
=
0
;
i
<
len
;
++
i
)
list
->
next
[
i
]
=
-
1
;
list
->
next
[
i
]
=
-
1
;
...
@@ -2279,8 +2278,16 @@ void create_dl_harq_list(NR_UE_sched_ctrl_t *sched_ctrl,
...
@@ -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
);
add_tail_nr_list
(
&
sched_ctrl
->
available_dl_harq
,
harq
);
create_nr_list
(
&
sched_ctrl
->
feedback_dl_harq
,
nrofHARQ
);
create_nr_list
(
&
sched_ctrl
->
feedback_dl_harq
,
nrofHARQ
);
create_nr_list
(
&
sched_ctrl
->
retrans_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
{
}
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
);
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
->
feedback_dl_harq
,
nrofHARQ
);
resize_nr_list
(
&
sched_ctrl
->
retrans_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