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
lizhongxiao
OpenXG-RAN
Commits
e44d6828
Commit
e44d6828
authored
Oct 05, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store SST/SD in RRC
parent
965ed3e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
openair2/COMMON/rrc_messages_types.h
openair2/COMMON/rrc_messages_types.h
+2
-0
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+12
-1
No files found.
openair2/COMMON/rrc_messages_types.h
View file @
e44d6828
...
@@ -412,6 +412,8 @@ typedef struct NRRrcConfigurationReq_s {
...
@@ -412,6 +412,8 @@ typedef struct NRRrcConfigurationReq_s {
uint16_t
mnc
[
PLMN_LIST_MAX_SIZE
];
uint16_t
mnc
[
PLMN_LIST_MAX_SIZE
];
uint8_t
mnc_digit_length
[
PLMN_LIST_MAX_SIZE
];
uint8_t
mnc_digit_length
[
PLMN_LIST_MAX_SIZE
];
uint8_t
num_plmn
;
uint8_t
num_plmn
;
int
sd
;
int
sst
;
bool
um_on_default_drb
;
bool
um_on_default_drb
;
bool
enable_sdap
;
bool
enable_sdap
;
...
...
openair2/GNB_APP/gnb_config.c
View file @
e44d6828
...
@@ -1569,7 +1569,6 @@ void RCconfig_NRRRC(gNB_RRC_INST *rrc)
...
@@ -1569,7 +1569,6 @@ void RCconfig_NRRRC(gNB_RRC_INST *rrc)
sprintf
(
aprefix
,
"%s.[%u].%s"
,
GNB_CONFIG_STRING_GNB_LIST
,
i
,
GNB_CONFIG_STRING_SCTP_CONFIG
);
sprintf
(
aprefix
,
"%s.[%u].%s"
,
GNB_CONFIG_STRING_GNB_LIST
,
i
,
GNB_CONFIG_STRING_SCTP_CONFIG
);
config_get
(
config_get_if
(),
SCTPParams
,
sizeofArray
(
SCTPParams
),
aprefix
);
config_get
(
config_get_if
(),
SCTPParams
,
sizeofArray
(
SCTPParams
),
aprefix
);
LOG_I
(
GNB_APP
,
"F1AP: gNB_CU_id[%d] %d
\n
"
,
k
,
rrc
->
node_id
);
LOG_I
(
GNB_APP
,
"F1AP: gNB_CU_id[%d] %d
\n
"
,
k
,
rrc
->
node_id
);
rrc
->
node_name
=
strdup
(
*
(
GNBParamList
.
paramarray
[
0
][
GNB_GNB_NAME_IDX
].
strptr
));
LOG_I
(
GNB_APP
,
"F1AP: gNB_CU_name[%d] %s
\n
"
,
k
,
rrc
->
node_name
);
LOG_I
(
GNB_APP
,
"F1AP: gNB_CU_name[%d] %s
\n
"
,
k
,
rrc
->
node_name
);
rrc
->
eth_params_s
.
local_if_name
=
strdup
(
*
(
GNBParamList
.
paramarray
[
i
][
GNB_LOCAL_S_IF_NAME_IDX
].
strptr
));
rrc
->
eth_params_s
.
local_if_name
=
strdup
(
*
(
GNBParamList
.
paramarray
[
i
][
GNB_LOCAL_S_IF_NAME_IDX
].
strptr
));
rrc
->
eth_params_s
.
my_addr
=
strdup
(
*
(
GNBParamList
.
paramarray
[
i
][
GNB_LOCAL_S_ADDRESS_IDX
].
strptr
));
rrc
->
eth_params_s
.
my_addr
=
strdup
(
*
(
GNBParamList
.
paramarray
[
i
][
GNB_LOCAL_S_ADDRESS_IDX
].
strptr
));
...
@@ -1583,6 +1582,7 @@ void RCconfig_NRRRC(gNB_RRC_INST *rrc)
...
@@ -1583,6 +1582,7 @@ void RCconfig_NRRRC(gNB_RRC_INST *rrc)
rrc
->
node_name
=
strdup
(
*
(
GNBParamList
.
paramarray
[
0
][
GNB_GNB_NAME_IDX
].
strptr
));
rrc
->
nr_cellid
=
(
uint64_t
)
*
(
GNBParamList
.
paramarray
[
i
][
GNB_NRCELLID_IDX
].
u64ptr
);
rrc
->
nr_cellid
=
(
uint64_t
)
*
(
GNBParamList
.
paramarray
[
i
][
GNB_NRCELLID_IDX
].
u64ptr
);
if
(
strcmp
(
*
(
GNBParamList
.
paramarray
[
i
][
GNB_TRANSPORT_S_PREFERENCE_IDX
].
strptr
),
"local_mac"
)
==
0
)
{
if
(
strcmp
(
*
(
GNBParamList
.
paramarray
[
i
][
GNB_TRANSPORT_S_PREFERENCE_IDX
].
strptr
),
"local_mac"
)
==
0
)
{
...
@@ -1644,6 +1644,17 @@ void RCconfig_NRRRC(gNB_RRC_INST *rrc)
...
@@ -1644,6 +1644,17 @@ void RCconfig_NRRRC(gNB_RRC_INST *rrc)
AssertFatal
((
nrrrc_config
.
mnc_digit_length
[
l
]
==
2
)
||
AssertFatal
((
nrrrc_config
.
mnc_digit_length
[
l
]
==
2
)
||
(
nrrrc_config
.
mnc_digit_length
[
l
]
==
3
),
"BAD MNC DIGIT LENGTH %d"
,
(
nrrrc_config
.
mnc_digit_length
[
l
]
==
3
),
"BAD MNC DIGIT LENGTH %d"
,
nrrrc_config
.
mnc_digit_length
[
l
]);
nrrrc_config
.
mnc_digit_length
[
l
]);
paramdef_t
SNSSAIParams
[]
=
GNBSNSSAIPARAMS_DESC
;
checkedparam_t
config_check_SNSSAIParams
[]
=
SNSSAIPARAMS_CHECK
;
for
(
int
J
=
0
;
J
<
sizeof
(
SNSSAIParams
)
/
sizeof
(
paramdef_t
);
++
J
)
SNSSAIParams
[
J
].
chkPptr
=
&
(
config_check_SNSSAIParams
[
J
]);
paramlist_def_t
SNSSAIParamList
=
{
GNB_CONFIG_STRING_SNSSAI_LIST
,
NULL
,
0
};
char
snssaistr
[
MAX_OPTNAME_SIZE
*
2
+
8
];
sprintf
(
snssaistr
,
"%s.[%i].%s.[%i]"
,
GNB_CONFIG_STRING_GNB_LIST
,
k
,
GNB_CONFIG_STRING_PLMN_LIST
,
l
);
config_getlist
(
config_get_if
(),
&
SNSSAIParamList
,
SNSSAIParams
,
sizeof
(
SNSSAIParams
)
/
sizeof
(
paramdef_t
),
snssaistr
);
AssertFatal
(
SNSSAIParamList
.
numelt
==
1
,
"cannot handle no NSSAI or more than 1
\n
"
);
nrrrc_config
.
sst
=
*
SNSSAIParamList
.
paramarray
[
0
][
GNB_SLICE_SERVICE_TYPE_IDX
].
uptr
;
nrrrc_config
.
sd
=
*
SNSSAIParamList
.
paramarray
[
0
][
GNB_SLICE_DIFFERENTIATOR_IDX
].
uptr
;
}
}
nrrrc_config
.
enable_sdap
=
*
GNBParamList
.
paramarray
[
i
][
GNB_ENABLE_SDAP_IDX
].
iptr
;
nrrrc_config
.
enable_sdap
=
*
GNBParamList
.
paramarray
[
i
][
GNB_ENABLE_SDAP_IDX
].
iptr
;
LOG_I
(
GNB_APP
,
"SDAP layer is %s
\n
"
,
nrrrc_config
.
enable_sdap
?
"enabled"
:
"disabled"
);
LOG_I
(
GNB_APP
,
"SDAP layer is %s
\n
"
,
nrrrc_config
.
enable_sdap
?
"enabled"
:
"disabled"
);
...
...
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