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
zzha zzha
OpenXG-RAN
Commits
9aee7bf7
Commit
9aee7bf7
authored
Oct 02, 2023
by
Robert Schmidt
Committed by
francescomani
Oct 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
srb0 rnti
parent
91891299
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
+3
-6
No files found.
openair2/LAYER2/NR_MAC_UE/main_ue_nr.c
View file @
9aee7bf7
...
@@ -45,10 +45,7 @@
...
@@ -45,10 +45,7 @@
static
NR_UE_MAC_INST_t
*
nr_ue_mac_inst
;
static
NR_UE_MAC_INST_t
*
nr_ue_mac_inst
;
// TODO: refactor
static
void
send_srb0_rrc
(
int
rnti
,
const
uint8_t
*
sdu
,
sdu_size_t
sdu_len
,
void
*
data
)
struct
gNB_MAC_INST_s
;
typedef
struct
gNB_MAC_INST_s
gNB_MAC_INST
;
static
void
send_srb0_rrc
(
gNB_MAC_INST
*
mac
,
int
rnti
,
const
uint8_t
*
sdu
,
sdu_size_t
sdu_len
,
void
*
rawUE
)
{
{
AssertFatal
(
sdu_len
>
0
&&
sdu_len
<
CCCH_SDU_SIZE
,
"invalid CCCH SDU size %d
\n
"
,
sdu_len
);
AssertFatal
(
sdu_len
>
0
&&
sdu_len
<
CCCH_SDU_SIZE
,
"invalid CCCH SDU size %d
\n
"
,
sdu_len
);
...
@@ -68,7 +65,7 @@ static void send_srb0_rrc(gNB_MAC_INST *mac, int rnti, const uint8_t *sdu, sdu_s
...
@@ -68,7 +65,7 @@ static void send_srb0_rrc(gNB_MAC_INST *mac, int rnti, const uint8_t *sdu, sdu_s
void
send_msg3_rrc_request
(
module_id_t
mod_id
,
int
rnti
)
void
send_msg3_rrc_request
(
module_id_t
mod_id
,
int
rnti
)
{
{
nr_rlc_activate_srb0
(
rnti
,
NULL
,
NULL
,
send_srb0_rrc
);
nr_rlc_activate_srb0
(
rnti
,
NULL
,
send_srb0_rrc
);
nr_mac_rrc_msg3_ind
(
mod_id
,
rnti
);
nr_mac_rrc_msg3_ind
(
mod_id
,
rnti
);
}
}
...
@@ -98,7 +95,7 @@ NR_UE_MAC_INST_t * nr_l2_init_ue(NR_UE_RRC_INST_t* rrc_inst) {
...
@@ -98,7 +95,7 @@ NR_UE_MAC_INST_t * nr_l2_init_ue(NR_UE_RRC_INST_t* rrc_inst) {
int
rc
=
rlc_module_init
(
0
);
int
rc
=
rlc_module_init
(
0
);
AssertFatal
(
rc
==
0
,
"%s: Could not initialize RLC layer
\n
"
,
__FUNCTION__
);
AssertFatal
(
rc
==
0
,
"%s: Could not initialize RLC layer
\n
"
,
__FUNCTION__
);
/* convention: RNTI for SRB0 is 0, as it changes all the time */
/* convention: RNTI for SRB0 is 0, as it changes all the time */
nr_rlc_activate_srb0
(
0
,
NULL
,
NULL
,
send_srb0_rrc
);
nr_rlc_activate_srb0
(
nr_ue_mac_inst
->
crnti
,
NULL
,
send_srb0_rrc
);
if
(
IS_SOFTMODEM_NOS1
){
if
(
IS_SOFTMODEM_NOS1
){
// get default noS1 configuration
// get default noS1 configuration
NR_RadioBearerConfig_t
*
rbconfig
=
NULL
;
NR_RadioBearerConfig_t
*
rbconfig
=
NULL
;
...
...
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