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
0070bf11
Commit
0070bf11
authored
Sep 26, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix fill_BEARER_CONTEXT_SETUP_REQUEST()
parent
29212d4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openair2/E1AP/e1ap.c
openair2/E1AP/e1ap.c
+3
-3
No files found.
openair2/E1AP/e1ap.c
View file @
0070bf11
...
...
@@ -499,7 +499,7 @@ int e1ap_handle_RELEASE_ACKNOWLEDGE(instance_t instance, sctp_assoc_t assoc_id,
BEARER CONTEXT SETUP REQUEST
*/
static
int
fill_BEARER_CONTEXT_SETUP_REQUEST
(
e1ap_
setup_req_t
*
setup
,
e1ap_
bearer_setup_req_t
*
const
bearerCxt
,
E1AP_E1AP_PDU_t
*
pdu
)
static
int
fill_BEARER_CONTEXT_SETUP_REQUEST
(
e1ap_bearer_setup_req_t
*
const
bearerCxt
,
E1AP_E1AP_PDU_t
*
pdu
)
{
pdu
->
present
=
E1AP_E1AP_PDU_PR_initiatingMessage
;
asn1cCalloc
(
pdu
->
choice
.
initiatingMessage
,
msg
);
...
...
@@ -540,7 +540,7 @@ static int fill_BEARER_CONTEXT_SETUP_REQUEST(e1ap_setup_req_t *setup, e1ap_beare
ieC4
->
id
=
E1AP_ProtocolIE_ID_id_Serving_PLMN
;
ieC4
->
criticality
=
E1AP_Criticality_ignore
;
ieC4
->
value
.
present
=
E1AP_BearerContextSetupRequestIEs__value_PR_PLMN_Identity
;
PLMN_ID_t
*
servingPLMN
=
setup
->
plmns
;
// First PLMN is serving PLMN. TODO: Remove hard coding here
PLMN_ID_t
*
servingPLMN
=
&
bearerCxt
->
servingPLMNid
;
MCC_MNC_TO_PLMNID
(
servingPLMN
->
mcc
,
servingPLMN
->
mnc
,
servingPLMN
->
mnc_digit_length
,
&
ieC4
->
value
.
choice
.
PLMN_Identity
);
/* mandatory */
/* Activity Notification Level */
...
...
@@ -635,7 +635,7 @@ void e1apCUCP_send_BEARER_CONTEXT_SETUP_REQUEST(instance_t instance, e1ap_bearer
E1AP_E1AP_PDU_t
pdu
=
{
0
};
e1ap_setup_req_t
*
setupReq
=
&
getCxtE1
(
instance
)
->
setupReq
;
fill_BEARER_CONTEXT_SETUP_REQUEST
(
setupReq
,
bearerCxt
,
&
pdu
);
fill_BEARER_CONTEXT_SETUP_REQUEST
(
bearerCxt
,
&
pdu
);
e1ap_encode_send
(
CPtype
,
setupReq
,
&
pdu
,
0
,
__func__
);
}
...
...
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