fix for SMF nr_cell_id selection (#574)

This commit is contained in:
Kenny Barlee 2020-09-22 18:31:13 +01:00 committed by GitHub
parent 62d95be036
commit ede4282389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -406,7 +406,7 @@ int ogs_pfcp_context_parse_config(const char *local, const char *remote)
uint8_t num_of_apn = 0;
uint32_t e_cell_id[OGS_MAX_NUM_OF_CELL_ID] = {0,};
uint8_t num_of_e_cell_id = 0;
uint32_t nr_cell_id[OGS_MAX_NUM_OF_CELL_ID] = {0,};
uint64_t nr_cell_id[OGS_MAX_NUM_OF_CELL_ID] = {0,};
uint8_t num_of_nr_cell_id = 0;
/* full list RR enabled by default */
@ -567,7 +567,7 @@ int ogs_pfcp_context_parse_config(const char *local, const char *remote)
v = ogs_yaml_iter_value(&nr_cell_id_iter);
if (v) {
nr_cell_id[num_of_nr_cell_id]
= ogs_uint28_from_string((char*)v);
= ogs_uint36_from_string((char*)v);
num_of_nr_cell_id++;
}
} while (

View File

@ -91,7 +91,7 @@ typedef struct ogs_pfcp_node_s {
uint8_t num_of_apn;
uint32_t e_cell_id[OGS_MAX_NUM_OF_CELL_ID];
uint8_t num_of_e_cell_id;
uint32_t nr_cell_id[OGS_MAX_NUM_OF_CELL_ID];
uint64_t nr_cell_id[OGS_MAX_NUM_OF_CELL_ID];
uint8_t num_of_nr_cell_id;
/* flag to enable/ disable full list RR for this node */