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
fbc15ea7
Commit
fbc15ea7
authored
Dec 12, 2023
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding function to handle reception of RRCSetup
parent
c37974ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
22 deletions
+53
-22
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+53
-22
No files found.
openair2/RRC/NR_UE/rrc_UE.c
View file @
fbc15ea7
...
@@ -877,6 +877,58 @@ static void rrc_ue_generate_RRCSetupComplete(instance_t instance, rnti_t rnti, c
...
@@ -877,6 +877,58 @@ static void rrc_ue_generate_RRCSetupComplete(instance_t instance, rnti_t rnti, c
nr_pdcp_data_req_srb
(
rnti
,
srb_id
,
0
,
size
,
buffer
,
deliver_pdu_srb_rlc
,
NULL
);
nr_pdcp_data_req_srb
(
rnti
,
srb_id
,
0
,
size
,
buffer
,
deliver_pdu_srb_rlc
,
NULL
);
}
}
static
void
nr_rrc_process_rrcsetup
(
const
instance_t
instance
,
const
rnti_t
rnti
,
const
uint8_t
gNB_index
,
const
NR_RRCSetup_t
*
rrcSetup
)
{
NR_UE_RRC_INST_t
*
rrc
=
&
NR_UE_rrc_inst
[
instance
];
// if the RRCSetup is received in response to an RRCReestablishmentRequest
// or RRCResumeRequest or RRCResumeRequest1
// 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
,
rnti
,
rrc
->
perNB
+
gNB_index
,
&
rrcSetup
->
criticalExtensions
.
choice
.
rrcSetup
->
masterCellGroup
,
NULL
);
// perform the radio bearer configuration procedure in accordance with the received radioBearerConfig
nr_rrc_ue_process_RadioBearerConfig
(
rrc
,
rnti
,
rrc
->
perNB
+
gNB_index
,
&
rrcSetup
->
criticalExtensions
.
choice
.
rrcSetup
->
radioBearerConfig
);
// TODO (not handled) if stored, discard the cell reselection priority information provided by
// the cellReselectionPriorities or inherited from another RAT
// stop timer T300, T301 or T319 if running;
NR_UE_Timers_Constants_t
*
timers
=
&
rrc
->
timers_and_constants
;
timers
->
T300_active
=
false
;
timers
->
T300_cnt
=
0
;
timers
->
T301_active
=
false
;
timers
->
T301_cnt
=
0
;
timers
->
T319_active
=
false
;
timers
->
T319_cnt
=
0
;
timers
->
T320_active
=
false
;
timers
->
T320_cnt
=
0
;
// TODO if T390 and T302 are running (not implemented)
// if the RRCSetup is received in response to an RRCResumeRequest, RRCResumeRequest1 or RRCSetupRequest
// enter RRC_CONNECTED
rrc
->
nrRrcState
=
RRC_STATE_CONNECTED_NR
;
// set the content of RRCSetupComplete message
// TODO procedues described in 5.3.3.4 seems more complex than what we actualy do
rrc_ue_generate_RRCSetupComplete
(
instance
,
rnti
,
rrcSetup
->
rrc_TransactionIdentifier
,
rrc
->
selected_plmn_identity
);
}
static
int8_t
nr_rrc_ue_decode_ccch
(
const
instance_t
instance
,
static
int8_t
nr_rrc_ue_decode_ccch
(
const
instance_t
instance
,
const
rnti_t
rnti
,
const
rnti_t
rnti
,
const
NRRrcMacCcchDataInd
*
ind
,
const
NRRrcMacCcchDataInd
*
ind
,
...
@@ -915,28 +967,7 @@ static int8_t nr_rrc_ue_decode_ccch(const instance_t instance,
...
@@ -915,28 +967,7 @@ static int8_t nr_rrc_ue_decode_ccch(const instance_t instance,
case
NR_DL_CCCH_MessageType__c1_PR_rrcSetup
:
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
);
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
);
// Get configuration
// Release T300 timer
rrc
->
timers_and_constants
.
T300_active
=
0
;
rrc
->
rnti
=
rnti
;
nr_rrc_ue_process_masterCellGroup
(
instance
,
rnti
,
rrc
->
perNB
+
gNB_index
,
&
dl_ccch_msg
->
message
.
choice
.
c1
->
choice
.
rrcSetup
->
criticalExtensions
.
choice
.
rrcSetup
->
masterCellGroup
,
NULL
);
nr_rrc_ue_process_RadioBearerConfig
(
rrc
,
rnti
,
rrc
->
perNB
+
gNB_index
,
&
dl_ccch_msg
->
message
.
choice
.
c1
->
choice
.
rrcSetup
->
criticalExtensions
.
choice
.
rrcSetup
->
radioBearerConfig
);
rrc
->
nrRrcState
=
RRC_STATE_CONNECTED_NR
;
rrc_ue_generate_RRCSetupComplete
(
instance
,
rnti
,
dl_ccch_msg
->
message
.
choice
.
c1
->
choice
.
rrcSetup
->
rrc_TransactionIdentifier
,
rrc
->
selected_plmn_identity
);
rval
=
0
;
rval
=
0
;
break
;
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