Commit ef7337c0 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Update Allowed-NSSAI in Registration Accept

parent 02e1f3ae
...@@ -4128,6 +4128,16 @@ void amf_n1::initialize_registration_accept( ...@@ -4128,6 +4128,16 @@ void amf_n1::initialize_registration_accept(
requested_nssai.push_back(ss.second); requested_nssai.push_back(ss.second);
} }
// Allowed NSSAI
for (auto s : common_nssais) {
SNSSAI_t snssai = {};
snssai.sst = s.sst;
snssai.sd = s.sd;
Logger::amf_n1().debug("Allowed S-NSSAI (SST 0x%x, SD 0x%x)", s.sst, s.sd);
allowed_nssais.push_back(snssai);
}
// Rejected NSSAIs
for (auto rn : requested_nssai) { for (auto rn : requested_nssai) {
bool found = false; bool found = false;
...@@ -4142,9 +4152,9 @@ void amf_n1::initialize_registration_accept( ...@@ -4142,9 +4152,9 @@ void amf_n1::initialize_registration_accept(
} else { } else {
snssai.length = SST_LENGTH + SD_LENGTH; snssai.length = SST_LENGTH + SD_LENGTH;
} }
Logger::amf_n1().debug( // Logger::amf_n1().debug(
"Allowed S-NSSAI (SST 0x%x, SD 0x%x)", s.sst, s.sd); // "Allowed S-NSSAI (SST 0x%x, SD 0x%x)", s.sst, s.sd);
allowed_nssais.push_back(snssai); // allowed_nssais.push_back(snssai);
found = true; found = true;
break; break;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment