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
常顺宇
OpenXG-RAN
Commits
9b55ffbb
Commit
9b55ffbb
authored
Dec 22, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup read NR of HARQ for UE
parent
e9d2d431
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+22
-1
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
9b55ffbb
...
...
@@ -1573,6 +1573,26 @@ int find_nr_RA_id(module_id_t mod_idP, int CC_idP, rnti_t rntiP) {
return
-
1
;
}
int
get_nrofHARQ_ProcessesForPDSCH
(
e_NR_PDSCH_ServingCellConfig__nrofHARQ_ProcessesForPDSCH
n
)
{
switch
(
n
)
{
case
NR_PDSCH_ServingCellConfig__nrofHARQ_ProcessesForPDSCH_n2
:
return
2
;
case
NR_PDSCH_ServingCellConfig__nrofHARQ_ProcessesForPDSCH_n4
:
return
4
;
case
NR_PDSCH_ServingCellConfig__nrofHARQ_ProcessesForPDSCH_n6
:
return
6
;
case
NR_PDSCH_ServingCellConfig__nrofHARQ_ProcessesForPDSCH_n10
:
return
10
;
case
NR_PDSCH_ServingCellConfig__nrofHARQ_ProcessesForPDSCH_n12
:
return
12
;
case
NR_PDSCH_ServingCellConfig__nrofHARQ_ProcessesForPDSCH_n16
:
return
16
;
default:
return
8
;
}
}
//------------------------------------------------------------------------------
int
add_new_nr_ue
(
module_id_t
mod_idP
,
rnti_t
rntiP
,
NR_CellGroupConfig_t
*
secondaryCellGroup
)
{
...
...
@@ -1623,7 +1643,8 @@ int add_new_nr_ue(module_id_t mod_idP, rnti_t rntiP, NR_CellGroupConfig_t *secon
"no pdsch-ServingCellConfig found for UE %d
\n
"
,
UE_id
);
const
NR_PDSCH_ServingCellConfig_t
*
pdsch
=
servingCellConfig
->
pdsch_ServingCellConfig
->
choice
.
setup
;
const
int
nrofHARQ
=
pdsch
->
nrofHARQ_ProcessesForPDSCH
?
*
pdsch
->
nrofHARQ_ProcessesForPDSCH
:
8
;
const
int
nrofHARQ
=
pdsch
->
nrofHARQ_ProcessesForPDSCH
?
get_nrofHARQ_ProcessesForPDSCH
(
*
pdsch
->
nrofHARQ_ProcessesForPDSCH
)
:
8
;
create_nr_list
(
&
sched_ctrl
->
available_dl_harq
,
nrofHARQ
);
// add all available HARQ processes for this UE
for
(
int
harq
=
0
;
harq
<
nrofHARQ
;
harq
++
)
...
...
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