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
littleBu
OpenXG-RAN
Commits
9c4bb6bf
Commit
9c4bb6bf
authored
Jun 19, 2020
by
matzakos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix DLSCH PDU corruption issue for phytest mode (random traffic generation)
- Payload was filled with zeros instead of random bytes
parent
2eb799c3
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_phytest.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
+3
-3
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
View file @
9c4bb6bf
...
@@ -623,8 +623,8 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
...
@@ -623,8 +623,8 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
// fill dlsch_buffer with random data
// fill dlsch_buffer with random data
for
(
i
=
0
;
i
<
TBS_bytes
;
i
++
){
for
(
i
=
0
;
i
<
TBS_bytes
;
i
++
){
//mac_sdus[i] = (unsigned char) rand();
mac_sdus
[
i
]
=
(
unsigned
char
)
(
lrand48
()
&
0xff
);
((
uint8_t
*
)
gNB_mac
->
UE_list
.
DLSCH_pdu
[
0
][
0
].
payload
[
0
])[
i
]
=
(
unsigned
char
)
(
lrand48
()
&
0xff
);
//
((uint8_t *)gNB_mac->UE_list.DLSCH_pdu[0][0].payload[0])[i] = (unsigned char) (lrand48()&0xff);
}
}
//Sending SDUs with size 1
//Sending SDUs with size 1
//Initialize elements of sdu_lcids and sdu_lengths
//Initialize elements of sdu_lcids and sdu_lengths
...
@@ -662,7 +662,7 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
...
@@ -662,7 +662,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
,
(
unsigned
char
*
)
mac_sdus
,
(
unsigned
char
*
)
mac_sdus
,
(
unsigned
char
*
)
gNB_mac
->
UE_list
.
DLSCH_pdu
[
0
][
0
].
payload
[
0
],
//(unsigned char *) mac_pdu,
(
unsigned
char
*
)
gNB_mac
->
UE_list
.
DLSCH_pdu
[
0
][
0
].
payload
[
0
],
num_sdus
,
//num_sdus
num_sdus
,
//num_sdus
sdu_lengths
,
sdu_lengths
,
sdu_lcids
,
sdu_lcids
,
...
...
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