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
9ae4d863
Commit
9ae4d863
authored
May 28, 2021
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix fiveGS_TAC byte order for LTE
parent
fa33b048
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
16 deletions
+26
-16
openair2/F1AP/f1ap_du_interface_management.c
openair2/F1AP/f1ap_du_interface_management.c
+26
-16
No files found.
openair2/F1AP/f1ap_du_interface_management.c
View file @
9ae4d863
...
@@ -199,14 +199,19 @@ int DU_send_F1_SETUP_REQUEST(instance_t instance) {
...
@@ -199,14 +199,19 @@ int DU_send_F1_SETUP_REQUEST(instance_t instance) {
served_cell_information
.
nRPCI
=
f1ap_du_data
->
nr_pci
[
i
];
// int 0..1007
served_cell_information
.
nRPCI
=
f1ap_du_data
->
nr_pci
[
i
];
// int 0..1007
/* - fiveGS_TAC */
/* - fiveGS_TAC */
if
(
RC
.
nrrrc
)
{
uint8_t
fiveGS_TAC
[
3
];
uint8_t
fiveGS_TAC
[
3
];
served_cell_information
.
fiveGS_TAC
=
calloc
(
1
,
sizeof
(
*
served_cell_information
.
fiveGS_TAC
));
fiveGS_TAC
[
0
]
=
((
uint8_t
*
)
&
f1ap_du_data
->
tac
[
i
])[
2
];
fiveGS_TAC
[
0
]
=
((
uint8_t
*
)
&
f1ap_du_data
->
tac
[
i
])[
2
];
fiveGS_TAC
[
1
]
=
((
uint8_t
*
)
&
f1ap_du_data
->
tac
[
i
])[
1
];
fiveGS_TAC
[
1
]
=
((
uint8_t
*
)
&
f1ap_du_data
->
tac
[
i
])[
1
];
fiveGS_TAC
[
2
]
=
((
uint8_t
*
)
&
f1ap_du_data
->
tac
[
i
])[
0
];
fiveGS_TAC
[
2
]
=
((
uint8_t
*
)
&
f1ap_du_data
->
tac
[
i
])[
0
];
OCTET_STRING_fromBuf
(
served_cell_information
.
fiveGS_TAC
,
OCTET_STRING_fromBuf
(
served_cell_information
.
fiveGS_TAC
,
(
const
char
*
)
fiveGS_TAC
,
(
const
char
*
)
fiveGS_TAC
,
3
);
3
);
}
else
{
OCTET_STRING_fromBuf
(
served_cell_information
.
fiveGS_TAC
,
(
const
char
*
)
&
f1ap_du_data
->
tac
[
i
],
3
);
}
/* - Configured_EPS_TAC */
/* - Configured_EPS_TAC */
if
(
0
){
if
(
0
){
...
@@ -725,6 +730,7 @@ int DU_send_gNB_DU_CONFIGURATION_UPDATE(instance_t instance,
...
@@ -725,6 +730,7 @@ int DU_send_gNB_DU_CONFIGURATION_UPDATE(instance_t instance,
served_cell_information
.
nRPCI
=
f1ap_setup_req
->
nr_pci
[
i
];
// int 0..1007
served_cell_information
.
nRPCI
=
f1ap_setup_req
->
nr_pci
[
i
];
// int 0..1007
/* - fiveGS_TAC */
/* - fiveGS_TAC */
if
(
RC
.
nrrrc
)
{
uint8_t
fiveGS_TAC
[
3
];
uint8_t
fiveGS_TAC
[
3
];
fiveGS_TAC
[
0
]
=
((
uint8_t
*
)
&
f1ap_setup_req
->
tac
[
i
])[
2
];
fiveGS_TAC
[
0
]
=
((
uint8_t
*
)
&
f1ap_setup_req
->
tac
[
i
])[
2
];
fiveGS_TAC
[
1
]
=
((
uint8_t
*
)
&
f1ap_setup_req
->
tac
[
i
])[
1
];
fiveGS_TAC
[
1
]
=
((
uint8_t
*
)
&
f1ap_setup_req
->
tac
[
i
])[
1
];
...
@@ -732,6 +738,11 @@ int DU_send_gNB_DU_CONFIGURATION_UPDATE(instance_t instance,
...
@@ -732,6 +738,11 @@ int DU_send_gNB_DU_CONFIGURATION_UPDATE(instance_t instance,
OCTET_STRING_fromBuf
(
served_cell_information
.
fiveGS_TAC
,
OCTET_STRING_fromBuf
(
served_cell_information
.
fiveGS_TAC
,
(
const
char
*
)
fiveGS_TAC
,
(
const
char
*
)
fiveGS_TAC
,
3
);
3
);
}
else
{
OCTET_STRING_fromBuf
(
served_cell_information
.
fiveGS_TAC
,
(
const
char
*
)
&
f1ap_setup_req
->
tac
[
i
],
3
);
}
/* - Configured_EPS_TAC */
/* - Configured_EPS_TAC */
if
(
1
){
if
(
1
){
...
@@ -890,7 +901,6 @@ int DU_send_gNB_DU_CONFIGURATION_UPDATE(instance_t instance,
...
@@ -890,7 +901,6 @@ int DU_send_gNB_DU_CONFIGURATION_UPDATE(instance_t instance,
served_cell_information
.
nRPCI
=
f1ap_setup_req
->
nr_pci
[
i
];
// int 0..1007
served_cell_information
.
nRPCI
=
f1ap_setup_req
->
nr_pci
[
i
];
// int 0..1007
/* - fiveGS_TAC */
/* - fiveGS_TAC */
served_cell_information
.
fiveGS_TAC
=
calloc
(
1
,
sizeof
(
*
served_cell_information
.
fiveGS_TAC
));
OCTET_STRING_fromBuf
(
served_cell_information
.
fiveGS_TAC
,
OCTET_STRING_fromBuf
(
served_cell_information
.
fiveGS_TAC
,
(
const
char
*
)
&
f1ap_setup_req
->
tac
[
i
],
(
const
char
*
)
&
f1ap_setup_req
->
tac
[
i
],
3
);
3
);
...
...
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