Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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-AMF
Commits
1a62fb49
Commit
1a62fb49
authored
Mar 28, 2023
by
Rohan Raju Kharade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes for servie accept
parent
e1cb34f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+2
-2
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+7
-6
src/ngap/ngapIEs/S-NSSAI.cpp
src/ngap/ngapIEs/S-NSSAI.cpp
+1
-1
No files found.
src/amf-app/amf_n1.cpp
View file @
1a62fb49
...
...
@@ -4512,7 +4512,7 @@ void amf_n1::initialize_registration_accept(
// Network Feature Support
// TODO: remove hardcoded values
registration_accept
->
Set5gsNetworkFeatureSupport
(
0x0
1
,
0x00
);
// 0x00, 0x00 to disable IMS
0x0
0
,
0x00
);
// 0x00, 0x00 to disable IMS
// Allowed/Rejected/Configured NSSAI
// Get the list of common SST, SD between UE and AMF
...
...
@@ -4590,7 +4590,7 @@ void amf_n1::initialize_registration_accept(
registration_accept
->
SetAllowedNssai
(
allowed_nssais
);
registration_accept
->
SetRejectedNssai
(
rejected_nssais
);
registration_accept
->
SetConfiguredNssai
(
allowed_nssais
);
// TODO
//
registration_accept->SetConfiguredNssai(allowed_nssais); // TODO
return
;
}
...
...
src/amf-app/amf_n2.cpp
View file @
1a62fb49
...
...
@@ -831,12 +831,6 @@ void amf_n2::handle_itti_message(itti_initial_context_setup_request& itti_msg) {
guami
.
AmfSetID
=
amf_cfg
.
guami
.
AmfSetID
;
guami
.
AmfPointer
=
amf_cfg
.
guami
.
AmfPointer
;
msg
->
setGuami
(
guami
);
msg
->
setUESecurityCapability
(
0xe000
,
0xe000
,
0xe000
,
0xe000
);
// TODO: remove hardcoded value
msg
->
setSecurityKey
((
uint8_t
*
)
bdata
(
itti_msg
.
kgnb
));
msg
->
setNasPdu
(
itti_msg
.
nas
);
// Get the list allowed NSSAI from the common PLMN between gNB and AMF
std
::
vector
<
S_Nssai
>
list
;
/* for (auto p : amf_cfg.plmn_list) {
...
...
@@ -860,6 +854,13 @@ void amf_n2::handle_itti_message(itti_initial_context_setup_request& itti_msg) {
}
msg
->
setAllowedNssai
(
list
);
msg
->
setUESecurityCapability
(
0xe000
,
0xe000
,
0x0000
,
0x0000
);
// TODO: remove hardcoded value
msg
->
setSecurityKey
((
uint8_t
*
)
bdata
(
itti_msg
.
kgnb
));
msg
->
setNasPdu
(
itti_msg
.
nas
);
if
(
itti_msg
.
is_sr
or
itti_msg
.
is_pdu_exist
)
{
// Set UE Radio Capability if available
if
(
gc
->
ue_radio_cap_ind
)
{
...
...
src/ngap/ngapIEs/S-NSSAI.cpp
View file @
1a62fb49
...
...
@@ -132,7 +132,7 @@ std::string S_NSSAI::getSd() const {
//------------------------------------------------------------------------------
bool
S_NSSAI
::
encode
(
Ngap_S_NSSAI_t
*
s_NSSAI
)
{
conv
::
int8_2_octet_string
(
sst_
,
s_NSSAI
->
sST
);
if
(
sd_
.
has_value
())
{
if
(
sd_
.
has_value
()
&&
(
sd_
.
value
()
!=
SD_NO_VALUE
)
)
{
s_NSSAI
->
sD
=
(
Ngap_SD_t
*
)
calloc
(
1
,
sizeof
(
Ngap_SD_t
));
if
(
!
s_NSSAI
->
sD
)
return
false
;
if
(
!
EncodeSD
(
s_NSSAI
->
sD
))
{
...
...
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