Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
db0a9f60
Commit
db0a9f60
authored
2 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Correct slot calculation in nr_acknack_scheduling()
parent
1060de4c
No related branches found
No related tags found
3 merge requests
!1757
Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c
,
!1545
integration_2022_wk18
,
!1533
Code and CI fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
+4
-4
4 additions, 4 deletions
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
with
4 additions
and
4 deletions
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
+
4
−
4
View file @
db0a9f60
...
...
@@ -1598,11 +1598,11 @@ int nr_acknack_scheduling(int mod_id,
const
NR_TDD_UL_DL_Pattern_t
*
tdd
=
scc
->
tdd_UL_DL_ConfigurationCommon
?
&
scc
->
tdd_UL_DL_ConfigurationCommon
->
pattern1
:
NULL
;
// initializing the values for FDD
int
nr_slots_period
=
n_slots_frame
;
int
firs
t_ul_slot
_tdd
=
slot
+
minfbtime
;
int
nex
t_ul_slot
=
slot
+
minfbtime
;
int
first_ul_slot_period
=
0
;
if
(
tdd
){
nr_slots_period
/=
get_nb_periods_per_frame
(
tdd
->
dl_UL_TransmissionPeriodicity
);
firs
t_ul_slot
_tdd
=
tdd
->
nrofDownlinkSlots
+
nr_slots_period
*
(
slot
/
nr_slots_period
);
nex
t_ul_slot
=
tdd
->
nrofDownlinkSlots
+
nr_slots_period
*
(
slot
/
nr_slots_period
);
first_ul_slot_period
=
tdd
->
nrofDownlinkSlots
;
}
else
...
...
@@ -1746,8 +1746,8 @@ int nr_acknack_scheduling(int mod_id,
AssertFatal
(
pucch
->
sr_flag
+
pucch
->
dai_c
==
0
,
"expected no SR/AckNack for UE %d in %4d.%2d, but has %d/%d for %4d.%2d
\n
"
,
UE_id
,
frame
,
slot
,
pucch
->
sr_flag
,
pucch
->
dai_c
,
pucch
->
frame
,
pucch
->
ul_slot
);
const
int
s
=
firs
t_ul_slot
_tdd
;
pucch
->
frame
=
(
s
<
n_slots_frame
-
1
)
?
frame
:
(
frame
+
1
)
%
1024
;
const
int
s
=
nex
t_ul_slot
;
pucch
->
frame
=
s
<
n_slots_frame
?
frame
:
(
frame
+
1
)
%
1024
;
pucch
->
ul_slot
=
s
%
n_slots_frame
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment