Commit 9aa5fc03 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue with SD for SMF selection

parent 16d20139
......@@ -900,7 +900,8 @@ bool amf_n11::discover_smf(
if (Snssai.count("sd") > 0) sd = Snssai["sd"].get<string>();
if (sst == snssai.sST) {
// Match SD (optional) only if it is provided
if (sd.empty() or (snssai.sD.compare(sd) == 0)) {
if ((sst <= SST_MAX_STANDARDIZED_VALUE) or sd.empty() or
(snssai.sD.compare(sd) == 0)) {
Logger::amf_n11().debug(
"S-NSSAI [SST- %d, SD -%s] is matched for SMF profile",
snssai.sST, snssai.sD.c_str());
......
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