Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bin He
openairinterface5G
Commits
c71edc21
Commit
c71edc21
authored
5 years ago
by
Sakthivel Velumani
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the assertion in ulsch pdu header
rfsim works
parent
1c2f9bb6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
+9
-2
9 additions, 2 deletions
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
with
9 additions
and
2 deletions
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
+
9
−
2
View file @
c71edc21
...
@@ -209,8 +209,15 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
...
@@ -209,8 +209,15 @@ void nr_ue_ulsch_procedures(PHY_VARS_NR_UE *UE,
}
}
//else if(uplink_counter == 0){ //if(!IS_SOFTMODEM_NOS1){
//else if(uplink_counter == 0){ //if(!IS_SOFTMODEM_NOS1){
else
{
else
{
LOG_D
(
PHY
,
"Random data to be tranmsitted:
\n
"
);
//Use zeros for the header bytes in noS1 mode, in order to make sure that the LCID is not valid
for
(
i
=
0
;
i
<
harq_process_ul_ue
->
TBS
/
8
;
i
++
)
{
//and block this traffic from being forwarded to the upper layers at the gNB
uint16_t
payload_offset
=
5
;
LOG_D
(
PHY
,
"Random data to be tranmsitted:
\n
"
);
//Give the header bytes some dummy value in order to block the random packet at the MAC layer of the receiver
for
(
i
=
0
;
i
<
payload_offset
;
i
++
)
harq_process_ul_ue
->
a
[
i
]
=
0
;
for
(
i
=
payload_offset
;
i
<
harq_process_ul_ue
->
TBS
/
8
;
i
++
)
{
harq_process_ul_ue
->
a
[
i
]
=
(
unsigned
char
)
rand
();
harq_process_ul_ue
->
a
[
i
]
=
(
unsigned
char
)
rand
();
//printf(" input encoder a[%d]=0x%02x\n",i,harq_process_ul_ue->a[i]);
//printf(" input encoder a[%d]=0x%02x\n",i,harq_process_ul_ue->a[i]);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment