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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
4f884ab1
Commit
4f884ab1
authored
Mar 19, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: unlocking RLC manager in nr_rlc_get_lcid_from_rb function
parent
f54ca571
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
+7
-2
No files found.
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
View file @
4f884ab1
...
...
@@ -114,14 +114,19 @@ logical_chan_id_t nr_rlc_get_lcid_from_rb(int ue_id, bool is_srb, int rb_id)
for
(
logical_chan_id_t
id
=
1
;
id
<=
32
;
id
++
)
{
nr_rlc_rb_t
*
rb
=
&
ue
->
lcid2rb
[
id
-
1
];
if
(
is_srb
)
{
if
(
rb
->
type
==
NR_RLC_SRB
&&
rb
->
choice
.
srb_id
==
rb_id
)
if
(
rb
->
type
==
NR_RLC_SRB
&&
rb
->
choice
.
srb_id
==
rb_id
)
{
nr_rlc_manager_unlock
(
nr_rlc_ue_manager
);
return
id
;
}
}
else
{
if
(
rb
->
type
==
NR_RLC_DRB
&&
rb
->
choice
.
drb_id
==
rb_id
)
if
(
rb
->
type
==
NR_RLC_DRB
&&
rb
->
choice
.
drb_id
==
rb_id
)
{
nr_rlc_manager_unlock
(
nr_rlc_ue_manager
);
return
id
;
}
}
}
LOG_E
(
RLC
,
"Couldn't find LCID corresponding to %s %d
\n
"
,
is_srb
?
"SRB"
:
"DRB"
,
rb_id
);
nr_rlc_manager_unlock
(
nr_rlc_ue_manager
);
return
0
;
}
...
...
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