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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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-RAN
Commits
a6d16a66
Commit
a6d16a66
authored
Sep 22, 2025
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce scope of NR_sched_pdsch in first DL sched loop
We don't need NR_sched_pdsch here. Remove the use of it.
parent
16227243
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+3
-4
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
a6d16a66
...
...
@@ -632,9 +632,8 @@ static void pf_dl(module_id_t module_id,
continue
;
const
NR_mac_dir_stats_t
*
stats
=
&
UE
->
mac_stats
.
dl
;
NR_sched_pdsch_t
*
sched_pdsch
=
&
sched_ctrl
->
sched_pdsch
;
/* get the PID of a HARQ process awaiting retrnasmission, or -1 otherwise */
sched_pdsch
->
dl_
harq_pid
=
sched_ctrl
->
retrans_dl_harq
.
head
;
int
harq_pid
=
sched_ctrl
->
retrans_dl_harq
.
head
;
/* Calculate Throughput */
const
float
a
=
0
.
01
f
;
...
...
@@ -653,12 +652,12 @@ static void pf_dl(module_id_t module_id,
continue
;
/* retransmission */
if
(
sched_pdsch
->
dl_
harq_pid
>=
0
)
{
if
(
harq_pid
>=
0
)
{
NR_beam_alloc_t
beam
=
beam_allocation_procedure
(
&
mac
->
beam_info
,
frame
,
slot
,
UE
->
UE_beam_index
,
slots_per_frame
);
bool
sch_ret
=
beam
.
idx
>=
0
;
/* Allocate retransmission */
if
(
sch_ret
)
sch_ret
=
allocate_dl_retransmission
(
module_id
,
frame
,
slot
,
&
n_rb_sched
[
beam
.
idx
],
UE
,
beam
.
idx
,
sched_pdsch
->
dl_
harq_pid
);
sch_ret
=
allocate_dl_retransmission
(
module_id
,
frame
,
slot
,
&
n_rb_sched
[
beam
.
idx
],
UE
,
beam
.
idx
,
harq_pid
);
if
(
!
sch_ret
)
{
LOG_D
(
NR_MAC
,
"[UE %04x][%4d.%2d] DL retransmission could not be allocated
\n
"
,
UE
->
rnti
,
frame
,
slot
);
reset_beam_status
(
&
mac
->
beam_info
,
frame
,
slot
,
UE
->
UE_beam_index
,
slots_per_frame
,
beam
.
new_beam
);
...
...
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