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
canghaiwuhen
OpenXG-RAN
Commits
2e41782a
Commit
2e41782a
authored
Sep 29, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add configurable UE as param for nr_generate_dlsch_pdu()
parent
eb263af3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+2
-6
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
+1
-0
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+1
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
2e41782a
...
@@ -58,6 +58,7 @@
...
@@ -58,6 +58,7 @@
//#define SIZE_OF_POINTER sizeof (void *)
//#define SIZE_OF_POINTER sizeof (void *)
int
nr_generate_dlsch_pdu
(
module_id_t
module_idP
,
int
nr_generate_dlsch_pdu
(
module_id_t
module_idP
,
NR_UE_sched_ctrl_t
*
ue_sched_ctl
,
unsigned
char
*
sdus_payload
,
unsigned
char
*
sdus_payload
,
unsigned
char
*
mac_pdu
,
unsigned
char
*
mac_pdu
,
unsigned
char
num_sdus
,
unsigned
char
num_sdus
,
...
@@ -74,12 +75,6 @@ int nr_generate_dlsch_pdu(module_id_t module_idP,
...
@@ -74,12 +75,6 @@ int nr_generate_dlsch_pdu(module_id_t module_idP,
// MAC CEs
// MAC CEs
uint8_t
mac_header_control_elements
[
16
],
*
ce_ptr
;
uint8_t
mac_header_control_elements
[
16
],
*
ce_ptr
;
ce_ptr
=
&
mac_header_control_elements
[
0
];
ce_ptr
=
&
mac_header_control_elements
[
0
];
uint16_t
UE_id
=
0
;
//TODO need to get as a function parameter or need to invoke api to UE_id using module Id and RNTI
gNB_MAC_INST
*
gNB_mac
=
RC
.
nrmac
[
module_idP
];
NR_UE_info_t
*
UE_info
=
&
gNB_mac
->
UE_info
;
NR_UE_sched_ctrl_t
*
ue_sched_ctl
=
NULL
;
//NR_CellGroupConfig_t *config = UE_info->secondaryCellGroup[UE_id];
ue_sched_ctl
=
&
(
UE_info
->
UE_sched_ctrl
[
UE_id
]);
// 1) Compute MAC CE and related subheaders
// 1) Compute MAC CE and related subheaders
...
@@ -768,6 +763,7 @@ void nr_schedule_ue_spec(module_id_t module_id,
...
@@ -768,6 +763,7 @@ void nr_schedule_ue_spec(module_id_t module_id,
const
int
offset
=
nr_generate_dlsch_pdu
(
const
int
offset
=
nr_generate_dlsch_pdu
(
module_id
,
module_id
,
sched_ctrl
,
(
unsigned
char
*
)
mac_sdus
,
(
unsigned
char
*
)
mac_sdus
,
(
unsigned
char
*
)
buf
,
(
unsigned
char
*
)
buf
,
num_sdus
,
// num_sdus
num_sdus
,
// num_sdus
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
View file @
2e41782a
...
@@ -743,6 +743,7 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
...
@@ -743,6 +743,7 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
}
}
offset
=
nr_generate_dlsch_pdu
(
module_idP
,
offset
=
nr_generate_dlsch_pdu
(
module_idP
,
&
UE_info
->
UE_sched_ctrl
[
UE_id
],
(
unsigned
char
*
)
mac_sdus
,
(
unsigned
char
*
)
mac_sdus
,
(
unsigned
char
*
)
gNB_mac
->
UE_info
.
DLSCH_pdu
[
0
][
0
].
payload
[
0
],
(
unsigned
char
*
)
gNB_mac
->
UE_info
.
DLSCH_pdu
[
0
][
0
].
payload
[
0
],
num_sdus
,
//num_sdus
num_sdus
,
//num_sdus
...
...
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
2e41782a
...
@@ -67,6 +67,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
...
@@ -67,6 +67,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
frame_t
frame_rxP
,
sub_frame_t
slot_rxP
);
frame_t
frame_rxP
,
sub_frame_t
slot_rxP
);
int
nr_generate_dlsch_pdu
(
module_id_t
Mod_idP
,
int
nr_generate_dlsch_pdu
(
module_id_t
Mod_idP
,
NR_UE_sched_ctrl_t
*
ue_sched_ctl
,
unsigned
char
*
sdus_payload
,
unsigned
char
*
sdus_payload
,
unsigned
char
*
mac_pdu
,
unsigned
char
*
mac_pdu
,
unsigned
char
num_sdus
,
unsigned
char
num_sdus
,
...
...
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