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
spbro
OpenXG-RAN
Commits
e5ab3e02
Commit
e5ab3e02
authored
Oct 09, 2023
by
sriharsha
Committed by
Sriharsha Korada
Nov 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handling of mac-LogicalChannelConfig during reconfiguration
parent
43036eb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
14 deletions
+28
-14
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+28
-14
No files found.
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
e5ab3e02
...
...
@@ -612,24 +612,38 @@ void nr_rrc_mac_config_req_ue_logicalChannelBearer(module_id_t module_id,
int
lc_identity
=
rlc_bearer
->
logicalChannelIdentity
;
mac
->
lc_ordered_info
.
lcids_ordered
[
i
]
=
lc_identity
;
NR_LogicalChannelConfig_t
*
mac_lc_config
;
if
(
rlc_bearer
->
servedRadioBearer
->
present
==
NR_RLC_BearerConfig__servedRadioBearer_PR_srb_Identity
)
{
/* SRB */
NR_SRB_Identity_t
srb_id
=
rlc_bearer
->
servedRadioBearer
->
choice
.
srb_Identity
;
if
(
mac
->
logicalChannelConfig
[
lc_identity
-
1
]
==
NULL
)
{
/* setup of new LCID*/
LOG_D
(
NR_MAC
,
"Establishing the logical channel %d
\n
"
,
lc_identity
);
AssertFatal
(
rlc_bearer
->
servedRadioBearer
,
"servedRadioBearer should be present for LCID establishment
\n
"
);
if
(
rlc_bearer
->
servedRadioBearer
->
present
==
NR_RLC_BearerConfig__servedRadioBearer_PR_srb_Identity
)
{
/* SRB */
NR_SRB_Identity_t
srb_id
=
rlc_bearer
->
servedRadioBearer
->
choice
.
srb_Identity
;
if
(
rlc_bearer
->
mac_LogicalChannelConfig
!=
NULL
)
{
mac_lc_config
=
rlc_bearer
->
mac_LogicalChannelConfig
;
}
else
{
LOG_I
(
NR_RRC
,
"Applying the default logicalChannelConfig for SRB
\n
"
);
if
(
srb_id
==
1
)
mac_lc_config
=
(
NR_LogicalChannelConfig_t
*
)
&
NR_SRB1_logicalChannelConfig_defaultValue
;
else
if
(
srb_id
==
2
)
mac_lc_config
=
(
NR_LogicalChannelConfig_t
*
)
&
NR_SRB2_logicalChannelConfig_defaultValue
;
else
if
(
srb_id
==
3
)
mac_lc_config
=
(
NR_LogicalChannelConfig_t
*
)
&
NR_SRB3_logicalChannelConfig_defaultValue
;
else
AssertFatal
(
1
==
0
,
"The logical id %d is not a valid SRB id %li
\n
"
,
lc_identity
,
srb_id
);
}
}
else
{
/* DRB */
mac_lc_config
=
rlc_bearer
->
mac_LogicalChannelConfig
;
AssertFatal
(
mac_lc_config
!=
NULL
,
"For DRB, it should be mandatorily present
\n
"
);
}
}
else
{
/* LC is already established, reconfiguring the LC */
LOG_D
(
NR_MAC
,
"Logical channel %d is already established, Reconfiguring now
\n
"
,
lc_identity
);
if
(
rlc_bearer
->
mac_LogicalChannelConfig
!=
NULL
)
{
mac_lc_config
=
rlc_bearer
->
mac_LogicalChannelConfig
;
}
else
{
LOG_I
(
NR_RRC
,
"Applying the default logicalChannelConfig for SRB
\n
"
);
if
(
srb_id
==
1
)
mac_lc_config
=
(
NR_LogicalChannelConfig_t
*
)
&
NR_SRB1_logicalChannelConfig_defaultValue
;
else
if
(
srb_id
==
2
)
mac_lc_config
=
(
NR_LogicalChannelConfig_t
*
)
&
NR_SRB2_logicalChannelConfig_defaultValue
;
else
if
(
srb_id
==
3
)
mac_lc_config
=
(
NR_LogicalChannelConfig_t
*
)
&
NR_SRB3_logicalChannelConfig_defaultValue
;
else
AssertFatal
(
1
==
0
,
"The logical id %d is not a valid SRB id %li
\n
"
,
lc_identity
,
srb_id
);
/* Need M - Maintains current value */
continue
;
}
}
else
{
/* DRB */
mac_lc_config
=
rlc_bearer
->
mac_LogicalChannelConfig
;
AssertFatal
(
mac_lc_config
!=
NULL
,
"For DRB, it should be mandatorily present
\n
"
);
}
nr_configure_mac_config_logicalChannelBearer
(
module_id
,
lc_identity
,
mac_lc_config
);
}
...
...
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