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
eee4a0c6
Commit
eee4a0c6
authored
Mar 12, 2024
by
Robert Schmidt
Committed by
francescomani
Nov 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE: signal RLF to RRC
parent
f380a48a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
openair2/COMMON/rrc_messages_def.h
openair2/COMMON/rrc_messages_def.h
+3
-0
openair2/COMMON/rrc_messages_types.h
openair2/COMMON/rrc_messages_types.h
+6
-0
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+18
-0
No files found.
openair2/COMMON/rrc_messages_def.h
View file @
eee4a0c6
...
...
@@ -85,3 +85,6 @@ MESSAGE_DEF(NRRRC_FRAME_PROCESS, MESSAGE_PRIORITY_MED, NRRrcFramePr
// eNB: RLC -> RRC messages
MESSAGE_DEF
(
RLC_SDU_INDICATION
,
MESSAGE_PRIORITY_MED
,
RlcSduIndication
,
rlc_sdu_indication
)
MESSAGE_DEF
(
NAS_PDU_SESSION_REQ
,
MESSAGE_PRIORITY_MED
,
nas_pdu_session_req_t
,
nas_pdu_session_req
)
// UE: RLC -> RRC messages
MESSAGE_DEF
(
NR_RRC_RLC_MAXRTX
,
MESSAGE_PRIORITY_MED
,
RlcMaxRtxIndication
,
nr_rlc_maxrtx_indication
)
openair2/COMMON/rrc_messages_types.h
View file @
eee4a0c6
...
...
@@ -97,6 +97,8 @@
#define NAS_OAI_TUN_NSA(mSGpTR) (mSGpTR)->ittiMsg.nas_oai_tun_nsa
#define NAS_PDU_SESSION_REQ(mSGpTR) (mSGpTR)->ittiMsg.nas_pdu_session_req
#define NR_RRC_RLC_MAXRTX(mSGpTR) (mSGpTR)->ittiMsg.nr_rlc_maxrtx_indication
//-------------------------------------------------------------------------------------------//
typedef
struct
RrcStateInd_s
{
Rrc_State_t
state
;
...
...
@@ -453,4 +455,8 @@ typedef struct rlc_sdu_indication_s {
int
message_id
;
}
RlcSduIndication
;
typedef
struct
{
int
ue_id
;
}
RlcMaxRtxIndication
;
#endif
/* RRC_MESSAGES_TYPES_H_ */
openair2/RRC/NR_UE/rrc_UE.c
View file @
eee4a0c6
...
...
@@ -873,6 +873,13 @@ static int8_t nr_rrc_ue_decode_NR_BCCH_DL_SCH_Message(NR_UE_RRC_INST_t *rrc,
return
0
;
}
static
void
nr_rrc_signal_maxrtxindication
(
int
ue_id
)
{
MessageDef
*
msg
=
itti_alloc_new_message
(
TASK_RLC_UE
,
ue_id
,
NR_RRC_RLC_MAXRTX
);
NR_RRC_RLC_MAXRTX
(
msg
).
ue_id
=
ue_id
;
itti_send_msg_to_task
(
TASK_RRC_NRUE
,
ue_id
,
msg
);
}
static
void
nr_rrc_manage_rlc_bearers
(
NR_UE_RRC_INST_t
*
rrc
,
const
NR_CellGroupConfig_t
*
cellGroupConfig
)
{
...
...
@@ -901,9 +908,11 @@ static void nr_rrc_manage_rlc_bearers(NR_UE_RRC_INST_t *rrc,
if
(
rlc_bearer
->
servedRadioBearer
->
present
==
NR_RLC_BearerConfig__servedRadioBearer_PR_srb_Identity
)
{
NR_SRB_Identity_t
srb_id
=
rlc_bearer
->
servedRadioBearer
->
choice
.
srb_Identity
;
nr_rlc_add_srb
(
rrc
->
ue_id
,
srb_id
,
rlc_bearer
);
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
);
}
}
}
...
...
@@ -1843,6 +1852,15 @@ void *rrc_nrue(void *notUsed)
nr_rrc_going_to_IDLE
(
rrc
,
release_cause
,
NULL
);
break
;
case
NR_RRC_RLC_MAXRTX
:
// detection of RLF upon indication from RLC that the maximum number of retransmissions has been reached
LOG_W
(
NR_RRC
,
"[UE %ld ID %d] Received indication that RLC reached max retransmissions
\n
"
,
instance
,
NR_RRC_RLC_MAXRTX
(
msg_p
).
ue_id
);
handle_rlf_detection
(
rrc
);
break
;
case
NR_RRC_MAC_MSG3_IND
:
nr_rrc_handle_msg3_indication
(
rrc
,
NR_RRC_MAC_MSG3_IND
(
msg_p
).
rnti
);
break
;
...
...
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