Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
openairinterface5G
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
POWDER-Mirror
openairinterface5G
Commits
61fb99c7
Commit
61fb99c7
authored
3 years ago
by
Laurent THOMAS
Browse files
Options
Downloads
Patches
Plain Diff
cleanup nr_band function
parent
31d9da3f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair2/F1AP/f1ap_cu_interface_management.c
+20
-25
20 additions, 25 deletions
openair2/F1AP/f1ap_cu_interface_management.c
with
20 additions
and
25 deletions
openair2/F1AP/f1ap_cu_interface_management.c
+
20
−
25
View file @
61fb99c7
...
...
@@ -118,29 +118,28 @@ int CU_handle_F1_SETUP_REQUEST(instance_t instance,
LOG_D
(
F1AP
,
"req->num_cells_available %d
\n
"
,
req
->
num_cells_available
);
for
(
i
=
0
;
i
<
req
->
num_cells_available
;
i
++
)
{
F1AP_GNB_DU_Served_Cells_Item_t
*
served_cells_item_p
;
served_cells_item_p
=
&
(((
F1AP_GNB_DU_Served_Cells_ItemIEs_t
*
)
ie
->
value
.
choice
.
GNB_DU_Served_Cells_List
.
list
.
array
[
i
])
->
value
.
choice
.
GNB_DU_Served_Cells_Item
);
F1AP_Served_Cell_Information_t
*
served_cell_information
=
&
gnb_du_served_cells_item
->
served_Cell_Information
;
F1AP_GNB_DU_Served_Cells_Item_t
*
served_cells_item
=
&
(((
F1AP_GNB_DU_Served_Cells_ItemIEs_t
*
)
ie
->
value
.
choice
.
GNB_DU_Served_Cells_List
.
list
.
array
[
i
])
->
value
.
choice
.
GNB_DU_Served_Cells_Item
);
F1AP_Served_Cell_Information_t
*
servedCellInformation
=
&
served_cells_item
->
served_Cell_Information
;
/* tac */
if
(
served
_
Cell
_
Information
->
fiveGS_TAC
)
{
OCTET_STRING_TO_INT16
(
served
_
Cell
_
Information
->
fiveGS_TAC
,
req
->
cell
[
i
].
tac
);
if
(
servedCellInformation
->
fiveGS_TAC
)
{
OCTET_STRING_TO_INT16
(
servedCellInformation
->
fiveGS_TAC
,
req
->
cell
[
i
].
tac
);
LOG_D
(
F1AP
,
"req->tac[%d] %d
\n
"
,
i
,
req
->
cell
[
i
].
tac
);
}
/* - nRCGI */
TBCD_TO_MCC_MNC
(
&
(
served
_
Cell
_
Information
->
nRCGI
.
pLMN_Identity
),
req
->
cell
[
i
].
mcc
,
TBCD_TO_MCC_MNC
(
&
(
servedCellInformation
->
nRCGI
.
pLMN_Identity
),
req
->
cell
[
i
].
mcc
,
req
->
cell
[
i
].
mnc
,
req
->
cell
[
i
].
mnc_digit_length
);
// NR cellID
BIT_STRING_TO_NR_CELL_IDENTITY
(
&
served
_
Cell
_
Information
->
nRCGI
.
nRCellIdentity
,
BIT_STRING_TO_NR_CELL_IDENTITY
(
&
servedCellInformation
->
nRCGI
.
nRCellIdentity
,
req
->
cell
[
i
].
nr_cellid
);
LOG_D
(
F1AP
,
"[SCTP %d] Received nRCGI: MCC %d, MNC %d, CELL_ID %llu
\n
"
,
assoc_id
,
req
->
cell
[
i
].
mcc
,
req
->
cell
[
i
].
mnc
,
(
long
long
unsigned
int
)
req
->
cell
[
i
].
nr_cellid
);
/* - nRPCI */
req
->
cell
[
i
].
nr_pci
=
served
_
Cell
_
Information
->
nRPCI
;
req
->
cell
[
i
].
nr_pci
=
servedCellInformation
->
nRPCI
;
LOG_D
(
F1AP
,
"req->nr_pci[%d] %d
\n
"
,
i
,
req
->
cell
[
i
].
nr_pci
);
// LTS: FIXME data model failure: we don't KNOW if we receive a 4G or a 5G cell
...
...
@@ -151,27 +150,23 @@ int CU_handle_F1_SETUP_REQUEST(instance_t instance,
f1ap_req
(
true
,
instance
)
->
cell_type
=
CELL_MACRO_ENB
;
struct
F1AP_GNB_DU_System_Information
*
DUsi
=
served_cells_item
->
gNB_DU_System_Information
;
LOG_I
(
F1AP
,
"Received Cell in %d context
\n
"
,
f1ap_req
(
true
,
instance
)
->
cell_type
==
CELL_MACRO_GNB
);
// System Information
/* mib */
req
->
mib
[
i
]
=
calloc
(
served_cells_item_p
->
gNB_DU_System_Information
->
mIB_message
.
size
+
1
,
sizeof
(
char
));
memcpy
(
req
->
mib
[
i
],
served_cells_item_p
->
gNB_DU_System_Information
->
mIB_message
.
buf
,
served_cells_item_p
->
gNB_DU_System_Information
->
mIB_message
.
size
);
req
->
mib
[
i
]
=
calloc
(
DUsi
->
mIB_message
.
size
+
1
,
sizeof
(
char
));
memcpy
(
req
->
mib
[
i
],
DUsi
->
mIB_message
.
buf
,
DUsi
->
mIB_message
.
size
);
/* Convert the mme name to a printable string */
req
->
mib
[
i
][
served_cells_item_p
->
gNB_DU_System_Information
->
mIB_message
.
size
]
=
'\0'
;
req
->
mib_length
[
i
]
=
served_cells_item_p
->
gNB_DU_System_Information
->
mIB_message
.
size
;
LOG_D
(
F1AP
,
"req->mib[%d] len = %d
\n
"
,
i
,
req
->
mib_length
[
i
]);
req
->
mib
[
i
][
DUsi
->
mIB_message
.
size
]
=
'\0'
;
req
->
mib_length
[
i
]
=
DUsi
->
mIB_message
.
size
;
LOG_D
(
F1AP
,
"req->mib[%d] len = %d
\n
"
,
i
,
req
->
mib_length
[
i
]);
/* sib1 */
req
->
sib1
[
i
]
=
calloc
(
served_cells_item_p
->
gNB_DU_System_Information
->
sIB1_message
.
size
+
1
,
sizeof
(
char
));
memcpy
(
req
->
sib1
[
i
],
served_cells_item_p
->
gNB_DU_System_Information
->
sIB1_message
.
buf
,
served_cells_item_p
->
gNB_DU_System_Information
->
sIB1_message
.
size
);
req
->
sib1
[
i
]
=
calloc
(
DUsi
->
sIB1_message
.
size
+
1
,
sizeof
(
char
));
memcpy
(
req
->
sib1
[
i
],
DUsi
->
sIB1_message
.
buf
,
DUsi
->
sIB1_message
.
size
);
/* Convert the mme name to a printable string */
req
->
sib1
[
i
][
served_cells_item_p
->
gNB_DU_System_Information
->
sIB1_message
.
size
]
=
'\0'
;
req
->
sib1_length
[
i
]
=
served_cells_item_p
->
gNB_DU_System_Information
->
sIB1_message
.
size
;
LOG_D
(
F1AP
,
"req->sib1[%d] len = %d
\n
"
,
i
,
req
->
sib1_length
[
i
]);
req
->
sib1
[
i
][
DUsi
->
sIB1_message
.
size
]
=
'\0'
;
req
->
sib1_length
[
i
]
=
DUsi
->
sIB1_message
.
size
;
LOG_D
(
F1AP
,
"req->sib1[%d] len = %d
\n
"
,
i
,
req
->
sib1_length
[
i
]);
}
// char *measurement_timing_information[F1AP_MAX_NB_CELLS];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment