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
6e61393f
Commit
6e61393f
authored
Mar 06, 2021
by
Shruthi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DCI payload corrections in nFAPI mode
parent
9a623a2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+15
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
6e61393f
...
@@ -57,6 +57,9 @@
...
@@ -57,6 +57,9 @@
#define WORD 32
#define WORD 32
//#define SIZE_OF_POINTER sizeof (void *)
//#define SIZE_OF_POINTER sizeof (void *)
int
harq_rounds
=
0
;
int
harq_pid
=
0
;
// Compute and write all MAC CEs and subheaders, and return number of written
// Compute and write all MAC CEs and subheaders, and return number of written
// bytes
// bytes
int
nr_write_ce_dlsch_pdu
(
module_id_t
module_idP
,
int
nr_write_ce_dlsch_pdu
(
module_id_t
module_idP
,
...
@@ -821,6 +824,14 @@ void nr_schedule_ue_spec(module_id_t module_id,
...
@@ -821,6 +824,14 @@ void nr_schedule_ue_spec(module_id_t module_id,
pdsch_pdu
->
mcsIndex
[
0
]
=
sched_ctrl
->
mcs
;
pdsch_pdu
->
mcsIndex
[
0
]
=
sched_ctrl
->
mcs
;
pdsch_pdu
->
mcsTable
[
0
]
=
sched_ctrl
->
mcsTableIdx
;
pdsch_pdu
->
mcsTable
[
0
]
=
sched_ctrl
->
mcsTableIdx
;
pdsch_pdu
->
rvIndex
[
0
]
=
nr_rv_round_map
[
harq
->
round
];
pdsch_pdu
->
rvIndex
[
0
]
=
nr_rv_round_map
[
harq
->
round
];
if
(
NFAPI_MODE
==
NFAPI_MODE_VNF
){
// done since uplink isnt operational yet which means harq structures dont get filled properly
pdsch_pdu
->
rvIndex
[
0
]
=
nr_rv_round_map
[
harq_rounds
];
if
(
harq_rounds
%
5
==
0
&&
harq_rounds
!=
0
){
harq_rounds
=
0
;
harq_pid
=
(
harq_pid
+
1
)
%
16
;
}
harq_rounds
++
;
}
pdsch_pdu
->
TBSize
[
0
]
=
TBS
;
pdsch_pdu
->
TBSize
[
0
]
=
TBS
;
pdsch_pdu
->
dataScramblingId
=
*
scc
->
physCellId
;
pdsch_pdu
->
dataScramblingId
=
*
scc
->
physCellId
;
...
@@ -932,6 +943,10 @@ void nr_schedule_ue_spec(module_id_t module_id,
...
@@ -932,6 +943,10 @@ void nr_schedule_ue_spec(module_id_t module_id,
const
int
dci_format
=
f
?
NR_DL_DCI_FORMAT_1_1
:
NR_DL_DCI_FORMAT_1_0
;
const
int
dci_format
=
f
?
NR_DL_DCI_FORMAT_1_1
:
NR_DL_DCI_FORMAT_1_0
;
const
int
rnti_type
=
NR_RNTI_C
;
const
int
rnti_type
=
NR_RNTI_C
;
if
(
NFAPI_MODE
==
NFAPI_MODE_VNF
){
dci_payload
.
harq_pid
=
harq_pid
;
dci_payload
.
tpc
=
2
;
}
fill_dci_pdu_rel15
(
scc
,
fill_dci_pdu_rel15
(
scc
,
UE_info
->
secondaryCellGroup
[
UE_id
],
UE_info
->
secondaryCellGroup
[
UE_id
],
dci_pdu
,
dci_pdu
,
...
...
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