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
ae72293d
Commit
ae72293d
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
d977ac8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
+7
-4
No files found.
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
View file @
ae72293d
...
@@ -87,18 +87,21 @@ logical_chan_id_t nr_rlc_get_lcid_from_rb(int ue_id, bool is_srb, int rb_id)
...
@@ -87,18 +87,21 @@ logical_chan_id_t nr_rlc_get_lcid_from_rb(int ue_id, bool is_srb, int rb_id)
{
{
nr_rlc_manager_lock
(
nr_rlc_ue_manager
);
nr_rlc_manager_lock
(
nr_rlc_ue_manager
);
nr_rlc_ue_t
*
ue
=
nr_rlc_manager_get_ue
(
nr_rlc_ue_manager
,
ue_id
);
nr_rlc_ue_t
*
ue
=
nr_rlc_manager_get_ue
(
nr_rlc_ue_manager
,
ue_id
);
logical_chan_id_t
lcid
=
0
;
for
(
logical_chan_id_t
id
=
1
;
id
<=
32
;
id
++
)
{
for
(
logical_chan_id_t
id
=
1
;
id
<=
32
;
id
++
)
{
nr_rlc_rb_t
*
rb
=
&
ue
->
lcid2rb
[
id
-
1
];
nr_rlc_rb_t
*
rb
=
&
ue
->
lcid2rb
[
id
-
1
];
if
(
is_srb
)
{
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
)
return
id
;
lcid
=
id
;
}
else
{
}
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
)
return
id
;
lcid
=
id
;
}
}
}
}
if
(
lcid
==
0
)
LOG_E
(
RLC
,
"Couldn't find LCID corresponding to %s %d
\n
"
,
is_srb
?
"SRB"
:
"DRB"
,
rb_id
);
LOG_E
(
RLC
,
"Couldn't find LCID corresponding to %s %d
\n
"
,
is_srb
?
"SRB"
:
"DRB"
,
rb_id
);
return
0
;
nr_rlc_manager_unlock
(
nr_rlc_ue_manager
);
return
lcid
;
}
}
static
nr_rlc_entity_t
*
get_rlc_entity_from_lcid
(
nr_rlc_ue_t
*
ue
,
logical_chan_id_t
channel_id
)
static
nr_rlc_entity_t
*
get_rlc_entity_from_lcid
(
nr_rlc_ue_t
*
ue
,
logical_chan_id_t
channel_id
)
...
...
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