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
14c82303
Commit
14c82303
authored
Mar 17, 2021
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nr pdcp: bugfix: D/C bit set only for DRBs
parent
77c36950
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c
openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c
+10
-2
No files found.
openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c
View file @
14c82303
...
@@ -140,16 +140,24 @@ static void nr_pdcp_entity_recv_sdu(nr_pdcp_entity_t *entity,
...
@@ -140,16 +140,24 @@ static void nr_pdcp_entity_recv_sdu(nr_pdcp_entity_t *entity,
int
sn
;
int
sn
;
int
header_size
;
int
header_size
;
char
buf
[
size
+
3
+
4
];
char
buf
[
size
+
3
+
4
];
int
dc_bit
;
count
=
entity
->
tx_next
;
count
=
entity
->
tx_next
;
sn
=
entity
->
tx_next
&
entity
->
sn_max
;
sn
=
entity
->
tx_next
&
entity
->
sn_max
;
/* D/C bit is only to be set for DRBs */
if
(
entity
->
type
==
NR_PDCP_DRB_AM
||
entity
->
type
==
NR_PDCP_DRB_UM
)
{
dc_bit
=
0x80
;
}
else
{
dc_bit
=
0
;
}
if
(
entity
->
sn_size
==
12
)
{
if
(
entity
->
sn_size
==
12
)
{
buf
[
0
]
=
0x80
|
((
sn
>>
8
)
&
0xf
);
buf
[
0
]
=
dc_bit
|
((
sn
>>
8
)
&
0xf
);
buf
[
1
]
=
sn
&
0xff
;
buf
[
1
]
=
sn
&
0xff
;
header_size
=
2
;
header_size
=
2
;
}
else
{
}
else
{
buf
[
0
]
=
0x80
|
((
sn
>>
16
)
&
0x3
);
buf
[
0
]
=
dc_bit
|
((
sn
>>
16
)
&
0x3
);
buf
[
1
]
=
(
sn
>>
8
)
&
0xff
;
buf
[
1
]
=
(
sn
>>
8
)
&
0xff
;
buf
[
2
]
=
sn
&
0xff
;
buf
[
2
]
=
sn
&
0xff
;
header_size
=
3
;
header_size
=
3
;
...
...
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