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
058b040c
Commit
058b040c
authored
Aug 17, 2021
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ue context setup first fix, the feature is not well implemented
parent
90999e5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
21 deletions
+26
-21
openair2/F1AP/f1ap_cu_ue_context_management.c
openair2/F1AP/f1ap_cu_ue_context_management.c
+13
-11
openair2/F1AP/f1ap_du_ue_context_management.c
openair2/F1AP/f1ap_du_ue_context_management.c
+13
-9
openair2/F1AP/f1ap_du_ue_context_management.h
openair2/F1AP/f1ap_du_ue_context_management.h
+0
-1
No files found.
openair2/F1AP/f1ap_cu_ue_context_management.c
View file @
058b040c
...
...
@@ -133,17 +133,19 @@ int CU_send_UE_CONTEXT_SETUP_REQUEST(instance_t instance,
ie6
->
value
.
present
=
F1AP_UEContextSetupRequestIEs__value_PR_CUtoDURRCInformation
;
/* optional */
/* 6.1 cG_ConfigInfo */
const
char
cG_ConfigInfoStr
[]
=
"asdsa1d32sa1d31asd31as"
;
asn1cCalloc
(
ie6
->
value
.
choice
.
CUtoDURRCInformation
.
cG_ConfigInfo
,
F1AP_CG_ConfigInfo_t
,
cG_ConfigInfo
);
OCTET_STRING_fromBuf
(
cG_ConfigInfo
,
cG_ConfigInfoStr
,
strlen
(
cG_ConfigInfoStr
))
;
/* optional */
/* 6.2 uE_CapabilityRAT_ContainerList */
asn1cCalloc
(
ie6
->
value
.
choice
.
CUtoDURRCInformation
.
uE_CapabilityRAT_ContainerList
,
F1AP_UE_CapabilityRAT_ContainerList_t
,
uE_CapabilityRAT_ContainerList
);
OCTET_STRING_fromBuf
(
uE_CapabilityRAT_ContainerList
,
cG_ConfigInfoStr
,
strlen
(
cG_ConfigInfoStr
))
;
/* optional */
/* 6.3 measConfig */
asn1cCalloc
(
ie6
->
value
.
choice
.
CUtoDURRCInformation
.
measConfig
,
F1AP_MeasConfig_t
,
measConfig
);
OCTET_STRING_fromBuf
(
measConfig
,
cG_ConfigInfoStr
,
strlen
(
cG_ConfigInfoStr
))
;
if
(
0
)
{
const
char
cG_ConfigInfoStr
[]
=
"asdsa1d32sa1d31asd31as"
;
asn1cCalloc
(
ie6
->
value
.
choice
.
CUtoDURRCInformation
.
cG_ConfigInfo
,
F1AP_CG_ConfigInfo_t
,
cG_ConfigInfo
);
OCTET_STRING_fromBuf
(
cG_ConfigInfo
,
cG_ConfigInfoStr
,
strlen
(
cG_ConfigInfoStr
))
;
/* optional */
/* 6.2 uE_CapabilityRAT_ContainerList */
asn1cCalloc
(
ie6
->
value
.
choice
.
CUtoDURRCInformation
.
uE_CapabilityRAT_ContainerList
,
F1AP_UE_CapabilityRAT_ContainerList_t
,
uE_CapabilityRAT_ContainerList
);
OCTET_STRING_fromBuf
(
uE_CapabilityRAT_ContainerList
,
cG_ConfigInfoStr
,
strlen
(
cG_ConfigInfoStr
))
;
/* optional */
/* 6.3 measConfig */
asn1cCalloc
(
ie6
->
value
.
choice
.
CUtoDURRCInformation
.
measConfig
,
F1AP_MeasConfig_t
,
measConfig
);
OCTET_STRING_fromBuf
(
measConfig
,
cG_ConfigInfoStr
,
strlen
(
cG_ConfigInfoStr
))
;
}
/* mandatory */
/* c7. Candidate_SpCell_List */
...
...
openair2/F1AP/f1ap_du_ue_context_management.c
View file @
058b040c
...
...
@@ -148,12 +148,11 @@ int DU_handle_UE_CONTEXT_SETUP_REQUEST(instance_t instance,
// AssertFatal(0, "check configuration, send to appropriate handler\n");
protocol_ctxt_t
ctxt
;
// ctxt.rnti = f1ap_get_rnti_by_du_id(&f1ap_du_inst[instance], ie->value.choice.GNB_DU_UE_F1AP_ID);
ctxt
.
rnti
=
0x1234
;
// decode RRC Container and act on the message type
rnti_t
rnti
=
f1ap_get_rnti_by_du_id
(
false
,
instance
,
du_ue_f1ap_id
)
;
ctxt
.
module_id
=
instance
;
ctxt
.
instance
=
instance
;
ctxt
.
enb_flag
=
1
;
ctxt
.
enb_flag
=
1
;
if
(
ie
->
value
.
choice
.
RRCContainer
.
size
)
{
mem_block_t
*
pdcp_pdu_p
=
NULL
;
pdcp_pdu_p
=
get_free_mem_block
(
ie
->
value
.
choice
.
RRCContainer
.
size
,
__func__
);
...
...
@@ -161,22 +160,23 @@ int DU_handle_UE_CONTEXT_SETUP_REQUEST(instance_t instance,
memcpy
(
&
pdcp_pdu_p
->
data
[
0
],
ie
->
value
.
choice
.
RRCContainer
.
buf
,
ie
->
value
.
choice
.
RRCContainer
.
size
);
/* for rfsim */
du_rlc_data_req
(
&
ctxt
,
1
,
0x00
,
1
,
1
,
0
,
ie
->
value
.
choice
.
RRCContainer
.
size
,
pdcp_pdu_p
);
DU_send_UE_CONTEXT_SETUP_RESPONSE
(
instance
,
ctxt
.
rnti
);
}
else
{
LOG_E
(
F1AP
,
" RRCContainer in UEContextSetupRequestIEs size id 0
\n
"
);
}
}
else
{
LOG_E
(
F1AP
,
"can't find RRCContainer in UEContextSetupRequestIEs by id %ld
\n
"
,
F1AP_ProtocolIE_ID_id_RRCContainer
);
}
return
0
;
return
0
;
}
//void DU_send_UE_CONTEXT_SETUP_RESPONSE(F1AP_UEContextSetupResponse_t *UEContextSetupResponse) {
int
DU_send_UE_CONTEXT_SETUP_RESPONSE
(
instance_t
instance
)
{
int
DU_send_UE_CONTEXT_SETUP_RESPONSE
(
instance_t
instance
,
rnti_t
rntiP
)
{
F1AP_F1AP_PDU_t
pdu
=
{
0
};
F1AP_UEContextSetupResponse_t
*
out
;
uint8_t
*
buffer
=
NULL
;
uint32_t
len
=
0
;
rnti_t
rntiP
;
// note: need get value
/* Create */
/* 0. Message Type */
pdu
.
present
=
F1AP_F1AP_PDU_PR_successfulOutcome
;
...
...
@@ -208,8 +208,8 @@ int DU_send_UE_CONTEXT_SETUP_RESPONSE(instance_t instance) {
{
/* cellGroupConfig */
OCTET_STRING_fromBuf
(
&
ie3
->
value
.
choice
.
DUtoCURRCInformation
.
cellGroupConfig
,
"asdsa"
,
strlen
(
"asdsa"
));
strlen
(
"asdsa"
));
/* OPTIONAL */
/* measGapConfig */
if
(
0
)
{
...
...
@@ -474,6 +474,10 @@ int DU_send_UE_CONTEXT_SETUP_RESPONSE(instance_t instance) {
return
-
1
;
}
f1ap_itti_send_sctp_data_req
(
false
,
instance
,
buffer
,
len
,
getCxt
(
false
,
instance
)
->
default_sctp_stream_id
);
return
0
;
}
...
...
openair2/F1AP/f1ap_du_ue_context_management.h
View file @
058b040c
...
...
@@ -40,7 +40,6 @@ int DU_handle_UE_CONTEXT_SETUP_REQUEST(instance_t instance,
uint32_t
assoc_id
,
uint32_t
stream
,
F1AP_F1AP_PDU_t
*
pdu
);
int
DU_send_UE_CONTEXT_SETUP_RESPONSE
(
instance_t
instance
);
int
DU_send_UE_CONTEXT_SETUP_FAILURE
(
instance_t
instance
);
...
...
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