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
wangwenhui
OpenXG-RAN
Commits
d245f7b9
Commit
d245f7b9
authored
Nov 16, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Use DL-SCH long subheader when L >= 256
parent
3ff26c8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+3
-3
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
d245f7b9
...
...
@@ -306,7 +306,7 @@ int nr_generate_dlsch_pdu(module_id_t module_idP,
for
(
i
=
0
;
i
<
num_sdus
;
i
++
)
{
LOG_D
(
MAC
,
"[gNB] Generate DLSCH header num sdu %d len sdu %d
\n
"
,
num_sdus
,
sdu_lengths
[
i
]);
if
(
sdu_lengths
[
i
]
<
128
)
{
if
(
sdu_lengths
[
i
]
<
256
)
{
((
NR_MAC_SUBHEADER_SHORT
*
)
mac_pdu_ptr
)
->
R
=
0
;
((
NR_MAC_SUBHEADER_SHORT
*
)
mac_pdu_ptr
)
->
F
=
0
;
((
NR_MAC_SUBHEADER_SHORT
*
)
mac_pdu_ptr
)
->
LCID
=
sdu_lcids
[
i
];
...
...
@@ -316,7 +316,7 @@ int nr_generate_dlsch_pdu(module_id_t module_idP,
((
NR_MAC_SUBHEADER_LONG
*
)
mac_pdu_ptr
)
->
R
=
0
;
((
NR_MAC_SUBHEADER_LONG
*
)
mac_pdu_ptr
)
->
F
=
1
;
((
NR_MAC_SUBHEADER_LONG
*
)
mac_pdu_ptr
)
->
LCID
=
sdu_lcids
[
i
];
((
NR_MAC_SUBHEADER_LONG
*
)
mac_pdu_ptr
)
->
L1
=
((
unsigned
short
)
sdu_lengths
[
i
]
>>
8
)
&
0x
7
f
;
((
NR_MAC_SUBHEADER_LONG
*
)
mac_pdu_ptr
)
->
L1
=
((
unsigned
short
)
sdu_lengths
[
i
]
>>
8
)
&
0x
f
f
;
((
NR_MAC_SUBHEADER_LONG
*
)
mac_pdu_ptr
)
->
L2
=
(
unsigned
short
)
sdu_lengths
[
i
]
&
0xff
;
last_size
=
3
;
}
...
...
@@ -789,7 +789,7 @@ void nr_schedule_ue_spec(module_id_t module_id,
mac_sdus
[
i
]
=
(
unsigned
char
)
(
lrand48
()
&
0xff
);
sdu_lcids
[
0
]
=
0x3f
;
// DRB
sdu_lengths
[
0
]
=
TBS
-
ta_len
-
3
;
header_length_total
+=
2
+
(
sdu_lengths
[
0
]
>=
128
);
header_length_total
+=
2
+
(
sdu_lengths
[
0
]
>=
256
);
sdu_length_total
+=
sdu_lengths
[
0
];
num_sdus
+=
1
;
}
...
...
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