From a5d37ce9c55d52d9517027b6406c0ead1e8f2af0 Mon Sep 17 00:00:00 2001 From: ab Date: Tue, 4 Jun 2024 23:26:52 +0200 Subject: [PATCH] fix: fix AMF exit if Capability5GMM IE was not provided by the UE --- internal/gmm/handler.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/gmm/handler.go b/internal/gmm/handler.go index c9e0665..f228524 100644 --- a/internal/gmm/handler.go +++ b/internal/gmm/handler.go @@ -638,8 +638,7 @@ func HandleInitialRegistration(ue *context.AmfUe, anType models.AccessType) erro if ue.RegistrationRequest.Capability5GMM != nil { ue.Capability5GMM = *ue.RegistrationRequest.Capability5GMM } else { - gmm_message.SendRegistrationReject(ue.RanUe[anType], nasMessage.Cause5GMMProtocolErrorUnspecified, "") - return fmt.Errorf("Capability5GMM is nil") + ue.GmmLog.Warnf("Capability5GMM is nil, Not sending a Registration Reject") } storeLastVisitedRegisteredTAI(ue, ue.RegistrationRequest.LastVisitedRegisteredTAI) @@ -797,8 +796,7 @@ func HandleMobilityAndPeriodicRegistrationUpdating(ue *context.AmfUe, anType mod ue.Capability5GMM = *ue.RegistrationRequest.Capability5GMM } else { if ue.RegistrationType5GS != nasMessage.RegistrationType5GSPeriodicRegistrationUpdating { - gmm_message.SendRegistrationReject(ue.RanUe[anType], nasMessage.Cause5GMMProtocolErrorUnspecified, "") - return fmt.Errorf("Capability5GMM is nil") + ue.GmmLog.Warnf("Capability5GMM is nil, Not sending a Registration Reject") } }