Skip to content
Closed
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions gmm/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,18 @@ func HandleRegistrationRequest(ctx ctxt.Context, ue *context.AmfUe, anType model
ue.Location = ue.RanUe[anType].Location
ue.Tai = ue.RanUe[anType].Tai

switch anType {
case models.AccessType__3_GPP_ACCESS:
switch {
case ue.Location.NrLocation != nil:
ue.RatType = models.RatType_NR
case ue.Location.EutraLocation != nil:
ue.RatType = models.RatType_EUTRA
}
case models.AccessType_NON_3_GPP_ACCESS:
ue.RatType = models.RatType_WLAN
}

// Check TAI
taiList := make([]models.Tai, len(amfSelf.SupportTaiLists))
copy(taiList, amfSelf.SupportTaiLists)
Expand Down
4 changes: 3 additions & 1 deletion producer/ue_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ func CreateUEContextProcedure(ueContextID string, createUeContextRequest models.
ue.UdmGroupId = ueContextCreateData.UeContext.UdmGroupId
ue.AusfGroupId = ueContextCreateData.UeContext.AusfGroupId
// ueContextCreateData.UeContext.HpcfId
ue.RatType = ueContextCreateData.UeContext.RestrictedRatList[0] // minItem = -1
// RestrictedRatList contains RAT types the UE cannot use, so it must
// not be copied into ue.RatType. RatType is set from the access type
// during HandleRegistrationRequest (gmm/handler.go).
// ueContextCreateData.UeContext.ForbiddenAreaList
// ueContextCreateData.UeContext.ServiceAreaRestriction
// ueContextCreateData.UeContext.RestrictedCoreNwTypeList
Expand Down
Loading