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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG-RAN
Commits
19685536
Commit
19685536
authored
Feb 11, 2026
by
Guido Casati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation to refactored functions in gnb_config.c
parent
afb3005a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+11
-0
openair2/GNB_APP/gnb_config_common.c
openair2/GNB_APP/gnb_config_common.c
+3
-0
No files found.
openair2/GNB_APP/gnb_config.c
View file @
19685536
...
...
@@ -2012,11 +2012,16 @@ static nr_neighbour_cell_t *get_neighbour_by_pci(seq_arr_t *neighbour_cells, int
return
NULL
;
}
/** @brief Parse and add neighbour cells for a given cell configuration
* @param[in,out] cell Neighbour cell configuration to populate
* @param[in] list Parameter list describing neighbour cells
* @param[in] n_path Base path for neighbour configuration in the config tree */
static
void
parse_neighbour_cells_list
(
neighbour_cell_configuration_t
*
cell
,
const
paramlist_def_t
*
list
,
const
char
*
n_path
)
{
cell
->
neighbour_cells
=
malloc_or_fail
(
sizeof
(
seq_arr_t
));
seq_arr_init
(
cell
->
neighbour_cells
,
sizeof
(
nr_neighbour_cell_t
));
/* Parse each neighbour cell in the list */
for
(
int
l
=
0
;
l
<
list
->
numelt
;
++
l
)
{
const
paramdef_t
*
cell_params
=
list
->
paramarray
[
l
];
nr_neighbour_cell_t
n
=
{.
gNB_ID
=
*
cell_params
[
GNB_CONFIG_N_CELL_GNB_ID_IDX
].
uptr
,
...
...
@@ -2045,6 +2050,7 @@ static void parse_neighbour_cells_list(neighbour_cell_configuration_t *cell, con
n
.
absoluteFrequencySSB
,
n
.
tac
);
/* Check for duplicate PCI in the neighbour list */
if
(
get_neighbour_by_pci
(
cell
->
neighbour_cells
,
n
.
physicalCellId
)
!=
NULL
)
{
LOG_E
(
GNB_APP
,
"Cell %ld: duplicate PCI %d in neighbour list (NCI=%ld)
\n
"
,
cell
->
nr_cell_id
,
n
.
physicalCellId
,
n
.
nrcell_id
);
AssertFatal
(
false
,
"PCI must be unique within a cell's neighbour list
\n
"
);
...
...
@@ -2054,6 +2060,8 @@ static void parse_neighbour_cells_list(neighbour_cell_configuration_t *cell, con
}
}
/** @brief Sort neighbour cell configuration by cell ID
* @param[in] rrc Pointer to RRC instance */
static
void
sort_neighbour_configuration
(
gNB_RRC_INST
*
rrc
)
{
void
*
base
=
seq_arr_front
(
rrc
->
neighbour_cell_configuration
);
...
...
@@ -2062,6 +2070,9 @@ static void sort_neighbour_configuration(gNB_RRC_INST *rrc)
qsort
(
base
,
nmemb
,
element_size
,
sort_neighbour_cell_config_by_cell_id
);
}
/** @brief Fill neighbour cell configuration from config file
* @param[in] gnb_idx gNB index
* @param[in,out] rrc Pointer to RRC instance */
static
void
fill_neighbour_cell_configuration
(
const
uint8_t
gnb_idx
,
gNB_RRC_INST
*
rrc
)
{
char
path
[
MAX_OPTNAME_SIZE
+
8
];
...
...
openair2/GNB_APP/gnb_config_common.c
View file @
19685536
...
...
@@ -31,6 +31,9 @@ uint16_t set_snssai_config(nssai_t *nssai, const int max_num_ssi, uint8_t k, uin
return
num_ssi
;
}
/** @brief Extract PLMN from parameter array
* @param[in] params Parameter array containing PLMN fields
* @return plmn_id_t structure filled from parameters */
plmn_id_t
extract_plmn_from_params
(
const
paramdef_t
*
params
,
int
n_params
)
{
plmn_id_t
plmn
=
{.
mcc
=
*
gpd
(
params
,
n_params
,
GNB_CONFIG_STRING_MOBILE_COUNTRY_CODE
)
->
uptr
,
...
...
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