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
wangjie
OpenXG-RAN
Commits
6aaa0f19
Commit
6aaa0f19
authored
Dec 15, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor nr_write_ce_dlsch_pdu(): add size parameter
parent
c20d6ea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+4
-1
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
6aaa0f19
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
int
nr_write_ce_dlsch_pdu
(
module_id_t
module_idP
,
int
nr_write_ce_dlsch_pdu
(
module_id_t
module_idP
,
const
NR_UE_sched_ctrl_t
*
ue_sched_ctl
,
const
NR_UE_sched_ctrl_t
*
ue_sched_ctl
,
unsigned
char
*
mac_pdu
,
unsigned
char
*
mac_pdu
,
int
size
,
unsigned
char
drx_cmd
,
unsigned
char
drx_cmd
,
unsigned
char
*
ue_cont_res_id
)
unsigned
char
*
ue_cont_res_id
)
{
{
...
@@ -803,11 +804,13 @@ void nr_schedule_ue_spec(module_id_t module_id,
...
@@ -803,11 +804,13 @@ void nr_schedule_ue_spec(module_id_t module_id,
int
written
=
nr_write_ce_dlsch_pdu
(
module_id
,
int
written
=
nr_write_ce_dlsch_pdu
(
module_id
,
sched_ctrl
,
sched_ctrl
,
(
unsigned
char
*
)
buf
,
(
unsigned
char
*
)
buf
,
TBS
,
255
,
// no drx
255
,
// no drx
NULL
);
// contention res id
NULL
);
// contention res id
buf
+=
written
;
buf
+=
written
;
int
size
=
TBS
-
written
;
int
size
=
TBS
-
written
;
DevAssert
(
size
>=
0
);
if
(
size
<
4
)
LOG_D
(
MAC
,
"nr_write_ce_dlsch_pdu(): filled TBS with CEs, cannot add MAC SDUs
\n
"
);
/* next, get RLC data */
/* next, get RLC data */
...
...
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