Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openairinterface-6g
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
OpenXG
openairinterface-6g
Commits
f4ff6c75
Commit
f4ff6c75
authored
Nov 08, 2025
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a check for rlc-Config presence (even if it should be mandatory at setup)
parent
c47ddc57
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
+1
-1
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
+2
-3
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+7
-2
No files found.
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
View file @
f4ff6c75
...
...
@@ -329,7 +329,7 @@ static int handle_ue_context_drbs_setup(NR_UE_info_t *UE,
*
rlc_BearerConfig
->
rlc_Config
->
choice
.
am
->
dl_AM_RLC
.
sn_FieldLength
=
NR_SN_FieldLengthAM_size12
;
*
rlc_BearerConfig
->
rlc_Config
->
choice
.
am
->
ul_AM_RLC
.
sn_FieldLength
=
NR_SN_FieldLengthAM_size12
;
}
AssertFatal
(
rlc_BearerConfig
->
rlc_Config
,
"We expect rlc-Config to be always present when we configure a DRB
\n
"
);
nr_rlc_add_drb
(
UE
->
rnti
,
drb
->
id
,
rlc_BearerConfig
);
nr_lc_config_t
c
=
{.
lcid
=
rlc_BearerConfig
->
logicalChannelIdentity
,
.
nssai
=
drb
->
nr
.
nssai
};
...
...
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
View file @
f4ff6c75
...
...
@@ -672,7 +672,7 @@ void nr_rlc_reconfigure_entity(int ue_id, int lc_id, NR_RLC_Config_t *rlc_Config
void
nr_rlc_add_srb
(
int
ue_id
,
int
srb_id
,
const
NR_RLC_BearerConfig_t
*
rlc_BearerConfig
)
{
struct
NR_RLC_Config
*
r
=
rlc_BearerConfig
->
rlc_Config
;
NR_RLC_Config_t
*
r
=
rlc_BearerConfig
->
rlc_Config
;
int
t_status_prohibit
;
int
t_poll_retransmit
;
int
poll_pdu
;
...
...
@@ -682,8 +682,7 @@ void nr_rlc_add_srb(int ue_id, int srb_id, const NR_RLC_BearerConfig_t *rlc_Bear
int
sn_field_length
;
LOG_D
(
RLC
,
"Trying to add SRB %d
\n
"
,
srb_id
);
AssertFatal
(
srb_id
>
0
&&
srb_id
<
4
,
"Invalid srb id %d
\n
"
,
srb_id
);
AssertFatal
(
srb_id
>
0
&&
srb_id
<
4
,
"Invalid srb id %d
\n
"
,
srb_id
);
if
(
r
&&
r
->
present
==
NR_RLC_Config_PR_am
)
{
struct
NR_RLC_Config__am
*
am
;
...
...
openair2/RRC/NR_UE/rrc_UE.c
View file @
f4ff6c75
...
...
@@ -1684,8 +1684,13 @@ static void nr_rrc_manage_rlc_bearers(NR_UE_RRC_INST_t *rrc, const NR_CellGroupC
nr_rlc_set_rlf_handler
(
rrc
->
ue_id
,
nr_rrc_signal_maxrtxindication
);
}
else
{
// DRB
NR_DRB_Identity_t
drb_id
=
rlc_bearer
->
servedRadioBearer
->
choice
.
drb_Identity
;
nr_rlc_add_drb
(
rrc
->
ue_id
,
drb_id
,
rlc_bearer
);
nr_rlc_set_rlf_handler
(
rrc
->
ue_id
,
nr_rrc_signal_maxrtxindication
);
if
(
!
rlc_bearer
->
rlc_Config
)
{
LOG_E
(
RLC
,
"RLC-Config not present but is mandatory for setup
\n
"
);
rrc
->
active_RLC_entity
[
lcid
]
=
false
;
}
else
{
nr_rlc_add_drb
(
rrc
->
ue_id
,
drb_id
,
rlc_bearer
);
nr_rlc_set_rlf_handler
(
rrc
->
ue_id
,
nr_rrc_signal_maxrtxindication
);
}
}
}
}
...
...
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