Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AMF sends Registration Reject if 5GMM Capability IE was not provided by the UE #131

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions internal/gmm/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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")
}
}

Expand Down
Loading