Skip to content

Commit

Permalink
smf selection fail fix
Browse files Browse the repository at this point in the history
Signed-off-by: AshithaCDAC <[email protected]>
  • Loading branch information
ashithacdac committed Nov 12, 2024
1 parent 576f501 commit 5a74930
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions context/amf_ue.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,10 @@ func (ue *AmfUe) InSubscribedNssai(targetSNssai models.Snssai) bool {
for _, sNssai := range ue.SubscribedNssai {
if reflect.DeepEqual(*sNssai.SubscribedSnssai, targetSNssai) {
return true
} else if sNssai.SubscribedSnssai.Sst == targetSNssai.Sst {
logger.ContextLog.Info("SST values match, SD values differ")
targetSNssai.Sd = sNssai.SubscribedSnssai.Sd
return true
}
}
return false
Expand Down

0 comments on commit 5a74930

Please sign in to comment.