Skip to content

Commit

Permalink
fix: guti check in SendDeregistration
Browse files Browse the repository at this point in the history
  • Loading branch information
ianchen0119 committed Sep 25, 2024
1 parent ea0ec7f commit e9aa98c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions internal/nwucp/handler/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ func SendPduSessionEstablishmentRequest(ue *security.RanUeContext,

func SendDeregistration() {
n3ueContext := context.N3UESelf()
mobileIdentity5GS := nasType.MobileIdentity5GS{
Len: n3ueContext.GUTI.Len,
Buffer: n3ueContext.GUTI.Octet[:],
}
deregistrationRequest := nasPacket.GetDeregistrationRequest(0x02, 0x01, 0x00, mobileIdentity5GS)
if n3ueContext.GUTI != nil {
mobileIdentity5GS := nasType.MobileIdentity5GS{
Len: n3ueContext.GUTI.Len,
Buffer: n3ueContext.GUTI.Octet[:],
}
deregistrationRequest := nasPacket.GetDeregistrationRequest(0x02, 0x01, 0x00, mobileIdentity5GS)

SendNasMsg(n3ueContext.RanUeContext, n3ueContext.N3IWFRanUe.TCPConnection, deregistrationRequest)
SendNasMsg(n3ueContext.RanUeContext, n3ueContext.N3IWFRanUe.TCPConnection, deregistrationRequest)
}
}

0 comments on commit e9aa98c

Please sign in to comment.