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
lizhongxiao
OpenXG-RAN
Commits
ceef53c5
Commit
ceef53c5
authored
Jan 09, 2024
by
francescomani
Committed by
Jaroslava Fiedlerova
Jan 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvements in ITTI for multi-ue instances
parent
8cd2d446
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
20 deletions
+16
-20
openair2/COMMON/mac_messages_types.h
openair2/COMMON/mac_messages_types.h
+0
-1
openair2/LAYER2/NR_MAC_UE/mac_proto.h
openair2/LAYER2/NR_MAC_UE/mac_proto.h
+1
-1
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
+2
-3
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+2
-2
openair2/RRC/NR_UE/L2_interface_ue.c
openair2/RRC/NR_UE/L2_interface_ue.c
+1
-1
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+6
-8
openair2/RRC/NR_UE/rrc_proto.h
openair2/RRC/NR_UE/rrc_proto.h
+1
-1
openair3/NAS/NR_UE/nr_nas_msg_sim.c
openair3/NAS/NR_UE/nr_nas_msg_sim.c
+3
-3
No files found.
openair2/COMMON/mac_messages_types.h
View file @
ceef53c5
...
...
@@ -159,7 +159,6 @@ typedef struct RrcMacCcchDataInd_s {
}
RrcMacCcchDataInd
;
typedef
struct
NRRrcMacCcchDataInd_s
{
uint16_t
rnti
;
uint32_t
sdu_size
;
uint8_t
sdu
[
CCCH_SDU_SIZE
];
}
NRRrcMacCcchDataInd
;
...
...
openair2/LAYER2/NR_MAC_UE/mac_proto.h
View file @
ceef53c5
...
...
@@ -149,7 +149,7 @@
\param module_id module id */
void
nr_ue_init_mac
(
module_id_t
module_idP
);
void
send_srb0_rrc
(
int
rnti
,
const
uint8_t
*
sdu
,
sdu_size_t
sdu_len
,
void
*
data
);
void
send_srb0_rrc
(
int
ue_id
,
const
uint8_t
*
sdu
,
sdu_size_t
sdu_len
,
void
*
data
);
/**\brief apply default configuration values in nr_mac instance
\param mac mac instance */
...
...
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
View file @
ceef53c5
...
...
@@ -42,7 +42,7 @@
#include "openair2/LAYER2/RLC/rlc.h"
static
NR_UE_MAC_INST_t
*
nr_ue_mac_inst
;
void
send_srb0_rrc
(
int
rnti
,
const
uint8_t
*
sdu
,
sdu_size_t
sdu_len
,
void
*
data
)
void
send_srb0_rrc
(
int
ue_id
,
const
uint8_t
*
sdu
,
sdu_size_t
sdu_len
,
void
*
data
)
{
AssertFatal
(
sdu_len
>
0
&&
sdu_len
<
CCCH_SDU_SIZE
,
"invalid CCCH SDU size %d
\n
"
,
sdu_len
);
...
...
@@ -50,8 +50,7 @@ void send_srb0_rrc(int rnti, const uint8_t *sdu, sdu_size_t sdu_len, void *data)
memset
(
NR_RRC_MAC_CCCH_DATA_IND
(
message_p
).
sdu
,
0
,
sdu_len
);
memcpy
(
NR_RRC_MAC_CCCH_DATA_IND
(
message_p
).
sdu
,
sdu
,
sdu_len
);
NR_RRC_MAC_CCCH_DATA_IND
(
message_p
).
sdu_size
=
sdu_len
;
NR_RRC_MAC_CCCH_DATA_IND
(
message_p
).
rnti
=
rnti
;
itti_send_msg_to_task
(
TASK_RRC_NRUE
,
0
,
message_p
);
itti_send_msg_to_task
(
TASK_RRC_NRUE
,
ue_id
,
message_p
);
}
void
send_msg3_rrc_request
(
module_id_t
mod_id
,
int
rnti
)
...
...
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
ceef53c5
...
...
@@ -750,8 +750,8 @@ srb_found:
NR_RRC_DCCH_DATA_IND
(
message_p
).
dcch_index
=
srb_id
;
NR_RRC_DCCH_DATA_IND
(
message_p
).
sdu_p
=
rrc_buffer_p
;
NR_RRC_DCCH_DATA_IND
(
message_p
).
sdu_size
=
size
;
NR_RRC_DCCH_DATA_IND
(
message_p
).
rnti
=
ue
->
rntiMaybeUEid
;
itti_send_msg_to_task
(
TASK_RRC_NRUE
,
0
,
message_p
);
ue_id_t
ue_id
=
ue
->
rntiMaybeUEid
;
itti_send_msg_to_task
(
TASK_RRC_NRUE
,
ue_id
,
message_p
);
}
}
...
...
openair2/RRC/NR_UE/L2_interface_ue.c
View file @
ceef53c5
...
...
@@ -101,7 +101,7 @@ int8_t nr_mac_rrc_data_ind_ue(const module_id_t module_id,
return
(
0
);
}
void
nr_mac_rrc_msg3_ind
(
const
module_id_t
mod_id
,
int
rnti
)
void
nr_mac_rrc_msg3_ind
(
const
module_id_t
mod_id
,
const
int
rnti
)
{
MessageDef
*
message_p
=
itti_alloc_new_message
(
TASK_MAC_UE
,
0
,
NR_RRC_MAC_MSG3_IND
);
NR_RRC_MAC_MSG3_IND
(
message_p
).
rnti
=
rnti
;
...
...
openair2/RRC/NR_UE/rrc_UE.c
View file @
ceef53c5
...
...
@@ -565,11 +565,12 @@ static int nr_decode_SI(NR_UE_RRC_SI_INFO *SI_info, NR_SystemInformation_t *si)
return
0
;
}
void
nr_rrc_ue_generate_ra_msg
(
NR_UE_RRC_INST_t
*
rrc
,
RA_trigger_t
trigger
)
void
nr_rrc_ue_generate_ra_msg
(
NR_UE_RRC_INST_t
*
rrc
,
RA_trigger_t
trigger
,
int
rnti
)
{
switch
(
trigger
)
{
case
INITIAL_ACCESS_FROM_RRC_IDLE
:
// After SIB1 is received, prepare RRCConnectionRequest
rrc
->
rnti
=
rnti
;
nr_rrc_ue_generate_RRCSetupRequest
(
rrc
);
break
;
case
RRC_CONNECTION_REESTABLISHMENT
:
...
...
@@ -865,7 +866,6 @@ static void rrc_ue_generate_RRCSetupComplete(instance_t instance, const uint8_t
}
static
void
nr_rrc_process_rrcsetup
(
const
instance_t
instance
,
const
rnti_t
rnti
,
const
uint8_t
gNB_index
,
const
NR_RRCSetup_t
*
rrcSetup
)
{
...
...
@@ -876,7 +876,6 @@ static void nr_rrc_process_rrcsetup(const instance_t instance,
// TODO none of the procedures implemented yet
// perform the cell group configuration procedure in accordance with the received masterCellGroup
rrc
->
rnti
=
rnti
;
nr_rrc_ue_process_masterCellGroup
(
instance
,
rrc
->
perNB
+
gNB_index
,
&
rrcSetup
->
criticalExtensions
.
choice
.
rrcSetup
->
masterCellGroup
,
...
...
@@ -914,7 +913,6 @@ static void nr_rrc_process_rrcsetup(const instance_t instance,
}
static
int8_t
nr_rrc_ue_decode_ccch
(
const
instance_t
instance
,
const
rnti_t
rnti
,
const
NRRrcMacCcchDataInd
*
ind
,
const
uint8_t
gNB_index
)
{
...
...
@@ -950,8 +948,8 @@ static int8_t nr_rrc_ue_decode_ccch(const instance_t instance,
break
;
case
NR_DL_CCCH_MessageType__c1_PR_rrcSetup
:
LOG_I
(
NR_RRC
,
"[UE%ld][RAPROC] Logical Channel DL-CCCH (SRB0), Received NR_RRCSetup
RNTI %x
\n
"
,
instance
,
rnti
);
nr_rrc_process_rrcsetup
(
instance
,
rnti
,
gNB_index
,
dl_ccch_msg
->
message
.
choice
.
c1
->
choice
.
rrcSetup
);
LOG_I
(
NR_RRC
,
"[UE%ld][RAPROC] Logical Channel DL-CCCH (SRB0), Received NR_RRCSetup
\n
"
,
instance
);
nr_rrc_process_rrcsetup
(
instance
,
gNB_index
,
dl_ccch_msg
->
message
.
choice
.
c1
->
choice
.
rrcSetup
);
rval
=
0
;
break
;
...
...
@@ -1459,7 +1457,7 @@ void *rrc_nrue(void *notUsed)
break
;
case
NR_RRC_MAC_MSG3_IND
:
nr_rrc_ue_generate_ra_msg
(
rrc
,
INITIAL_ACCESS_FROM_RRC_IDLE
);
nr_rrc_ue_generate_ra_msg
(
rrc
,
INITIAL_ACCESS_FROM_RRC_IDLE
,
NR_RRC_MAC_MSG3_IND
(
msg_p
).
rnti
);
break
;
case
NR_RRC_MAC_RA_IND
:
...
...
@@ -1483,7 +1481,7 @@ void *rrc_nrue(void *notUsed)
case
NR_RRC_MAC_CCCH_DATA_IND
:
{
NRRrcMacCcchDataInd
*
ind
=
&
NR_RRC_MAC_CCCH_DATA_IND
(
msg_p
);
nr_rrc_ue_decode_ccch
(
instance
,
ind
->
rnti
,
ind
,
0
);
nr_rrc_ue_decode_ccch
(
instance
,
ind
,
0
);
}
break
;
case
NR_RRC_DCCH_DATA_IND
:
...
...
openair2/RRC/NR_UE/rrc_proto.h
View file @
ceef53c5
...
...
@@ -88,7 +88,7 @@ void nr_rrc_going_to_IDLE(instance_t instance,
NR_RRCRelease_t
*
RRCRelease
);
void
nr_mac_rrc_ra_ind
(
const
module_id_t
mod_id
,
int
frame
,
bool
success
);
void
nr_mac_rrc_msg3_ind
(
const
module_id_t
mod_id
,
int
rnti
);
void
nr_mac_rrc_msg3_ind
(
const
module_id_t
mod_id
,
const
int
rnti
);
/**\brief RRC UE task.
\param void *args_p Pointer on arguments to start the task. */
...
...
openair3/NAS/NR_UE/nr_nas_msg_sim.c
View file @
ceef53c5
...
...
@@ -549,12 +549,12 @@ static void generateAuthenticationResp(nr_ue_nas_t *nas, as_nas_info_t *initialN
initialNasMsg
->
length
=
mm_msg_encode
(
mm_msg
,
(
uint8_t
*
)(
initialNasMsg
->
data
),
size
);
}
int
nas_itti_kgnb_refresh_req
(
const
uint8_t
kgnb
[
32
])
int
nas_itti_kgnb_refresh_req
(
instance_t
instance
,
const
uint8_t
kgnb
[
32
])
{
MessageDef
*
message_p
;
message_p
=
itti_alloc_new_message
(
TASK_NAS_NRUE
,
0
,
NAS_KENB_REFRESH_REQ
);
memcpy
(
NAS_KENB_REFRESH_REQ
(
message_p
).
kenb
,
kgnb
,
sizeof
(
NAS_KENB_REFRESH_REQ
(
message_p
).
kenb
));
return
itti_send_msg_to_task
(
TASK_RRC_NRUE
,
0
,
message_p
);
return
itti_send_msg_to_task
(
TASK_RRC_NRUE
,
instance
,
message_p
);
}
static
void
generateSecurityModeComplete
(
nr_ue_nas_t
*
nas
,
as_nas_info_t
*
initialNasMsg
)
...
...
@@ -1219,7 +1219,7 @@ void *nas_nrue(void *args_p)
generateAuthenticationResp
(
nas
,
&
initialNasMsg
,
pdu_buffer
);
break
;
case
FGS_SECURITY_MODE_COMMAND
:
nas_itti_kgnb_refresh_req
(
nas
->
security
.
kgnb
);
nas_itti_kgnb_refresh_req
(
instance
,
nas
->
security
.
kgnb
);
generateSecurityModeComplete
(
nas
,
&
initialNasMsg
);
break
;
case
FGS_DOWNLINK_NAS_TRANSPORT
:
...
...
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