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
wangjie
OpenXG-RAN
Commits
90fbe805
Commit
90fbe805
authored
Oct 28, 2020
by
Xue Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify RRCRelease
parent
356a4d83
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
14 deletions
+28
-14
openair2/RRC/NR/MESSAGES/asn1_msg.c
openair2/RRC/NR/MESSAGES/asn1_msg.c
+18
-4
openair2/RRC/NR/MESSAGES/asn1_msg.h
openair2/RRC/NR/MESSAGES/asn1_msg.h
+2
-2
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+8
-8
No files found.
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
90fbe805
...
@@ -911,7 +911,7 @@ uint8_t do_NR_SA_UECapabilityEnquiry( const protocol_ctxt_t *const ctxt_pP,
...
@@ -911,7 +911,7 @@ uint8_t do_NR_SA_UECapabilityEnquiry( const protocol_ctxt_t *const ctxt_pP,
}
}
uint8_t
do_NR_RRC
Connection
Release
(
uint8_t
*
buffer
,
uint8_t
do_NR_RRCRelease
(
uint8_t
*
buffer
,
uint8_t
Transaction_id
)
{
uint8_t
Transaction_id
)
{
asn_enc_rval_t
enc_rval
;
asn_enc_rval_t
enc_rval
;
NR_DL_DCCH_Message_t
dl_dcch_msg
;
NR_DL_DCCH_Message_t
dl_dcch_msg
;
...
@@ -920,17 +920,31 @@ uint8_t do_NR_RRCConnectionRelease(uint8_t *buffer,
...
@@ -920,17 +920,31 @@ uint8_t do_NR_RRCConnectionRelease(uint8_t *buffer,
dl_dcch_msg
.
message
.
present
=
NR_DL_DCCH_MessageType_PR_c1
;
dl_dcch_msg
.
message
.
present
=
NR_DL_DCCH_MessageType_PR_c1
;
dl_dcch_msg
.
message
.
choice
.
c1
=
CALLOC
(
1
,
sizeof
(
struct
NR_DL_DCCH_MessageType__c1
));
dl_dcch_msg
.
message
.
choice
.
c1
=
CALLOC
(
1
,
sizeof
(
struct
NR_DL_DCCH_MessageType__c1
));
dl_dcch_msg
.
message
.
choice
.
c1
->
present
=
NR_DL_DCCH_MessageType__c1_PR_rrcRelease
;
dl_dcch_msg
.
message
.
choice
.
c1
->
present
=
NR_DL_DCCH_MessageType__c1_PR_rrcRelease
;
dl_dcch_msg
.
message
.
choice
.
c1
->
choice
.
rrcRelease
=
CALLOC
(
1
,
sizeof
(
struct
NR_RRCRelease
));
dl_dcch_msg
.
message
.
choice
.
c1
->
choice
.
rrcRelease
=
CALLOC
(
1
,
sizeof
(
NR_RRCRelease_t
));
rrcConnectionRelease
=
dl_dcch_msg
.
message
.
choice
.
c1
->
choice
.
rrcRelease
;
rrcConnectionRelease
=
dl_dcch_msg
.
message
.
choice
.
c1
->
choice
.
rrcRelease
;
// RRCConnectionRelease
// RRCConnectionRelease
rrcConnectionRelease
->
rrc_TransactionIdentifier
=
Transaction_id
;
rrcConnectionRelease
->
rrc_TransactionIdentifier
=
Transaction_id
;
rrcConnectionRelease
->
criticalExtensions
.
present
=
NR_RRCRelease__criticalExtensions_PR_rrcRelease
;
rrcConnectionRelease
->
criticalExtensions
.
present
=
NR_RRCRelease__criticalExtensions_PR_rrcRelease
;
rrcConnectionRelease
->
criticalExtensions
.
choice
.
rrcRelease
=
NULL
;
rrcConnectionRelease
->
criticalExtensions
.
choice
.
rrcRelease
=
CALLOC
(
1
,
sizeof
(
NR_RRCRelease_IEs_t
));
rrcConnectionRelease
->
criticalExtensions
.
choice
.
rrcRelease
->
deprioritisationReq
=
CALLOC
(
1
,
sizeof
(
struct
NR_RRCRelease_IEs__deprioritisationReq
));
rrcConnectionRelease
->
criticalExtensions
.
choice
.
rrcRelease
->
deprioritisationReq
->
deprioritisationType
=
NR_RRCRelease_IEs__deprioritisationReq__deprioritisationType_nr
;
rrcConnectionRelease
->
criticalExtensions
.
choice
.
rrcRelease
->
deprioritisationReq
->
deprioritisationTimer
=
NR_RRCRelease_IEs__deprioritisationReq__deprioritisationTimer_min10
;
enc_rval
=
uper_encode_to_buffer
(
&
asn_DEF_NR_DL_DCCH_Message
,
enc_rval
=
uper_encode_to_buffer
(
&
asn_DEF_NR_DL_DCCH_Message
,
NULL
,
NULL
,
(
void
*
)
&
dl_dcch_msg
,
(
void
*
)
&
dl_dcch_msg
,
buffer
,
buffer
,
RRC_BUF_SIZE
);
RRC_BUF_SIZE
);
if
(
enc_rval
.
encoded
==
-
1
)
{
LOG_I
(
NR_RRC
,
"[gNB AssertFatal]ASN1 message encoding failed (%s, %lu)!
\n
"
,
enc_rval
.
failed_type
->
name
,
enc_rval
.
encoded
);
return
-
1
;
}
return
((
enc_rval
.
encoded
+
7
)
/
8
);
return
((
enc_rval
.
encoded
+
7
)
/
8
);
}
}
...
...
openair2/RRC/NR/MESSAGES/asn1_msg.h
View file @
90fbe805
...
@@ -103,7 +103,7 @@ uint8_t do_NR_SA_UECapabilityEnquiry( const protocol_ctxt_t *const ctxt_pP,
...
@@ -103,7 +103,7 @@ uint8_t do_NR_SA_UECapabilityEnquiry( const protocol_ctxt_t *const ctxt_pP,
uint8_t
*
const
buffer
,
uint8_t
*
const
buffer
,
const
uint8_t
Transaction_id
);
const
uint8_t
Transaction_id
);
uint8_t
do_NR_RRC
Connection
Release
(
uint8_t
*
buffer
,
uint8_t
do_NR_RRCRelease
(
uint8_t
*
buffer
,
uint8_t
Transaction_id
);
uint8_t
Transaction_id
);
uint16_t
do_RRCReconfiguration
(
uint16_t
do_RRCReconfiguration
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
const
protocol_ctxt_t
*
const
ctxt_pP
,
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
90fbe805
...
@@ -1484,7 +1484,7 @@ rrc_gNB_generate_UECapabilityEnquiry(
...
@@ -1484,7 +1484,7 @@ rrc_gNB_generate_UECapabilityEnquiry(
* If received, UE should switch to RRC_IDLE mode.
* If received, UE should switch to RRC_IDLE mode.
*/
*/
void
void
rrc_gNB_generate_RRC
Connection
Release
(
rrc_gNB_generate_RRCRelease
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
const
protocol_ctxt_t
*
const
ctxt_pP
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
rrc_gNB_ue_context_t
*
const
ue_context_pP
)
)
...
@@ -1495,16 +1495,16 @@ rrc_gNB_generate_RRCConnectionRelease(
...
@@ -1495,16 +1495,16 @@ rrc_gNB_generate_RRCConnectionRelease(
memset
(
buffer
,
0
,
RRC_BUF_SIZE
);
memset
(
buffer
,
0
,
RRC_BUF_SIZE
);
size
=
do_NR_RRC
Connection
Release
(
buffer
,
rrc_gNB_get_next_transaction_identifier
(
ctxt_pP
->
module_id
));
size
=
do_NR_RRCRelease
(
buffer
,
rrc_gNB_get_next_transaction_identifier
(
ctxt_pP
->
module_id
));
ue_context_pP
->
ue_context
.
ue_reestablishment_timer
=
0
;
ue_context_pP
->
ue_context
.
ue_reestablishment_timer
=
0
;
ue_context_pP
->
ue_context
.
ue_release_timer
=
0
;
ue_context_pP
->
ue_context
.
ue_release_timer
=
0
;
LOG_I
(
NR_RRC
,
LOG_I
(
NR_RRC
,
PROTOCOL_
RRC_CTXT_UE_FMT
" Logical Channel DL-DCCH, Generate RRCConnection
Release (bytes %d)
\n
"
,
PROTOCOL_
NR_RRC_CTXT_UE_FMT
" Logical Channel DL-DCCH, Generate RRC
Release (bytes %d)
\n
"
,
PROTOCOL_RRC_CTXT_UE_ARGS
(
ctxt_pP
),
PROTOCOL_
NR_
RRC_CTXT_UE_ARGS
(
ctxt_pP
),
size
);
size
);
LOG_D
(
NR_RRC
,
LOG_D
(
NR_RRC
,
PROTOCOL_
RRC_CTXT_UE_FMT
" --- PDCP_DATA_REQ/%d Bytes (rrcConnection
Release MUI %d) --->[PDCP][RB %u]
\n
"
,
PROTOCOL_
NR_RRC_CTXT_UE_FMT
" --- PDCP_DATA_REQ/%d Bytes (rrc
Release MUI %d) --->[PDCP][RB %u]
\n
"
,
PROTOCOL_RRC_CTXT_UE_ARGS
(
ctxt_pP
),
PROTOCOL_
NR_
RRC_CTXT_UE_ARGS
(
ctxt_pP
),
size
,
size
,
rrc_gNB_mui
,
rrc_gNB_mui
,
DCCH
);
DCCH
);
...
@@ -1513,7 +1513,7 @@ rrc_gNB_generate_RRCConnectionRelease(
...
@@ -1513,7 +1513,7 @@ rrc_gNB_generate_RRCConnectionRelease(
MSC_RRC_UE
,
MSC_RRC_UE
,
buffer
,
buffer
,
size
,
size
,
MSC_AS_TIME_FMT
"
LTE_RRCConnection
Release UE %x MUI %d size %u"
,
MSC_AS_TIME_FMT
"
NR_RRC
Release UE %x MUI %d size %u"
,
MSC_AS_TIME_ARGS
(
ctxt_pP
),
MSC_AS_TIME_ARGS
(
ctxt_pP
),
ue_context_pP
->
ue_context
.
rnti
,
ue_context_pP
->
ue_context
.
rnti
,
rrc_gNB_mui
,
rrc_gNB_mui
,
...
...
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