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
常顺宇
OpenXG-RAN
Commits
6eeb2577
Commit
6eeb2577
authored
Jan 29, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add UE_Capability to type eNB_RRC_UE_t and read it when received
parent
dd7d2ef6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
openair2/RRC/LITE/defs.h
openair2/RRC/LITE/defs.h
+2
-0
openair2/RRC/LITE/rrc_eNB.c
openair2/RRC/LITE/rrc_eNB.c
+19
-5
No files found.
openair2/RRC/LITE/defs.h
View file @
6eeb2577
...
...
@@ -396,6 +396,8 @@ typedef struct eNB_RRC_UE_s {
HANDOVER_INFO
*
handover_info
;
MeasResults_t
*
measResults
;
UE_EUTRA_Capability_t
*
UE_Capability
;
#if defined(ENABLE_SECURITY)
/* KeNB as derived from KASME received from EPC */
uint8_t
kenb
[
32
];
...
...
openair2/RRC/LITE/rrc_eNB.c
View file @
6eeb2577
...
...
@@ -4994,7 +4994,6 @@ rrc_eNB_decode_dcch(
asn_dec_rval_t
dec_rval
;
//UL_DCCH_Message_t uldcchmsg;
UL_DCCH_Message_t
*
ul_dcch_msg
=
NULL
;
//&uldcchmsg;
UE_EUTRA_Capability_t
*
UE_EUTRA_Capability
=
NULL
;
int
i
;
struct
rrc_eNB_ue_context_s
*
ue_context_p
=
NULL
;
...
...
@@ -5385,18 +5384,33 @@ rrc_eNB_decode_dcch(
xer_fprint
(
stdout
,
&
asn_DEF_UL_DCCH_Message
,
(
void
*
)
ul_dcch_msg
);
#endif
LOG_I
(
RRC
,
"got UE capabilities for UE %x
\n
"
,
ctxt_pP
->
rnti
);
if
(
ue_context_p
->
ue_context
.
UE_Capability
)
{
LOG_I
(
RRC
,
"freeing old UE capabilities for UE %x
\n
"
,
ctxt_pP
->
rnti
);
asn_DEF_UE_EUTRA_Capability
.
free_struct
(
&
asn_DEF_UE_EUTRA_Capability
,
ue_context_p
->
ue_context
.
UE_Capability
,
0
);
ue_context_p
->
ue_context
.
UE_Capability
=
0
;
}
dec_rval
=
uper_decode
(
NULL
,
&
asn_DEF_UE_EUTRA_Capability
,
(
void
**
)
&
UE_EUTRA
_Capability
,
(
void
**
)
&
ue_context_p
->
ue_context
.
UE
_Capability
,
ul_dcch_msg
->
message
.
choice
.
c1
.
choice
.
ueCapabilityInformation
.
criticalExtensions
.
choice
.
c1
.
choice
.
ueCapabilityInformation_r8
.
ue_CapabilityRAT_ContainerList
.
list
.
array
[
0
]
->
ueCapabilityRAT_Container
.
buf
,
ul_dcch_msg
->
message
.
choice
.
c1
.
choice
.
ueCapabilityInformation
.
criticalExtensions
.
choice
.
c1
.
choice
.
ueCapabilityInformation_r8
.
ue_CapabilityRAT_ContainerList
.
list
.
array
[
0
]
->
ueCapabilityRAT_Container
.
size
,
0
,
0
);
//#ifdef XER_PRINT
//xer_fprint(stdout, &asn_DEF_UE_EUTRA_Capability, (void *)UE_EUTRA_Capability);
//#endif
#ifdef XER_PRINT
xer_fprint
(
stdout
,
&
asn_DEF_UE_EUTRA_Capability
,
ue_context_p
->
ue_context
.
UE_Capability
);
#endif
if
((
dec_rval
.
code
!=
RC_OK
)
&&
(
dec_rval
.
consumed
==
0
))
{
LOG_E
(
RRC
,
PROTOCOL_RRC_CTXT_UE_FMT
" Failed to decode UE capabilities (%zu bytes)
\n
"
,
PROTOCOL_RRC_CTXT_UE_ARGS
(
ctxt_pP
),
dec_rval
.
consumed
);
asn_DEF_UE_EUTRA_Capability
.
free_struct
(
&
asn_DEF_UE_EUTRA_Capability
,
ue_context_p
->
ue_context
.
UE_Capability
,
0
);
ue_context_p
->
ue_context
.
UE_Capability
=
0
;
}
#if defined(ENABLE_USE_MME)
...
...
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