Skip to content

Commit

Permalink
modified InSubscribedNssai function
Browse files Browse the repository at this point in the history
Signed-off-by: AshithaCDAC <[email protected]>
  • Loading branch information
ashithacdac committed Nov 21, 2024
1 parent 5a74930 commit a760aab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion context/amf_ue.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ func (ue *AmfUe) InAllowedNssai(targetSNssai models.Snssai, anType models.Access
return false
}

func (ue *AmfUe) InSubscribedNssai(targetSNssai models.Snssai) bool {
func (ue *AmfUe) InSubscribedNssai(targetSNssai *models.Snssai) bool {
for _, sNssai := range ue.SubscribedNssai {
if reflect.DeepEqual(*sNssai.SubscribedSnssai, targetSNssai) {
return true
Expand Down
2 changes: 1 addition & 1 deletion gmm/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ func handleRequestedNssai(ue *context.AmfUe, anType models.AccessType) error {

needSliceSelection := false
for _, requestedSnssai := range requestedNssai {
if ue.InSubscribedNssai(*requestedSnssai.ServingSnssai) {
if ue.InSubscribedNssai(requestedSnssai.ServingSnssai) {
allowedSnssai := models.AllowedSnssai{
AllowedSnssai: &models.Snssai{
Sst: requestedSnssai.ServingSnssai.Sst,
Expand Down

0 comments on commit a760aab

Please sign in to comment.