@@ -323,7 +323,8 @@ func (p *Processor) CreateUEContextProcedure(ueContextID string, createUeContext
323323 logger .CommLog .Warnf ("Not comprehended IE ID 0x%04x (criticality: notify)" , ie .Id .Value )
324324 }
325325 if ie .Criticality .Value != ngapType .CriticalityPresentIgnore {
326- item := buildCriticalityDiagnosticsIEItem (ie .Criticality .Value , ie .Id .Value , ngapType .TypeOfErrorPresentNotUnderstood )
326+ item := buildCriticalityDiagnosticsIEItem (
327+ ie .Criticality .Value , ie .Id .Value , ngapType .TypeOfErrorPresentNotUnderstood )
327328 iesCriticalityDiagnostics .List = append (iesCriticalityDiagnostics .List , item )
328329 if ie .Criticality .Value == ngapType .CriticalityPresentReject {
329330 abort = true
@@ -334,37 +335,43 @@ func (p *Processor) CreateUEContextProcedure(ueContextID string, createUeContext
334335
335336 if aMFUENGAPID == nil {
336337 logger .CommLog .Error ("Missing IE AMF-UE-NGAP-ID" )
337- item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject , ngapType .ProtocolIEIDAMFUENGAPID , ngapType .TypeOfErrorPresentMissing )
338+ item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject ,
339+ ngapType .ProtocolIEIDAMFUENGAPID , ngapType .TypeOfErrorPresentMissing )
338340 iesCriticalityDiagnostics .List = append (iesCriticalityDiagnostics .List , item )
339341 abort = true
340342 }
341343 if rANUENGAPID == nil {
342344 logger .CommLog .Error ("Missing IE RAN-UE-NGAP-ID" )
343- item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject , ngapType .ProtocolIEIDRANUENGAPID , ngapType .TypeOfErrorPresentMissing )
345+ item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject ,
346+ ngapType .ProtocolIEIDRANUENGAPID , ngapType .TypeOfErrorPresentMissing )
344347 iesCriticalityDiagnostics .List = append (iesCriticalityDiagnostics .List , item )
345348 abort = true
346349 }
347350 if handoverType == nil {
348351 logger .CommLog .Error ("Missing IE HandoverType" )
349- item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject , ngapType .ProtocolIEIDHandoverType , ngapType .TypeOfErrorPresentMissing )
352+ item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject ,
353+ ngapType .ProtocolIEIDHandoverType , ngapType .TypeOfErrorPresentMissing )
350354 iesCriticalityDiagnostics .List = append (iesCriticalityDiagnostics .List , item )
351355 abort = true
352356 }
353357 if targetID == nil {
354358 logger .CommLog .Error ("Missing IE TargetID" )
355- item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject , ngapType .ProtocolIEIDTargetID , ngapType .TypeOfErrorPresentMissing )
359+ item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject ,
360+ ngapType .ProtocolIEIDTargetID , ngapType .TypeOfErrorPresentMissing )
356361 iesCriticalityDiagnostics .List = append (iesCriticalityDiagnostics .List , item )
357362 abort = true
358363 }
359364 if pDUSessionResourceListHORqd == nil {
360365 logger .CommLog .Error ("Missing IE PDUSessionResourceListHORqd" )
361- item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject , ngapType .ProtocolIEIDPDUSessionResourceListHORqd , ngapType .TypeOfErrorPresentMissing )
366+ item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject ,
367+ ngapType .ProtocolIEIDPDUSessionResourceListHORqd , ngapType .TypeOfErrorPresentMissing )
362368 iesCriticalityDiagnostics .List = append (iesCriticalityDiagnostics .List , item )
363369 abort = true
364370 }
365371 if sourceToTargetTransparentContainer == nil {
366372 logger .CommLog .Error ("Missing IE SourceToTarget-TransparentContainer" )
367- item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject , ngapType .ProtocolIEIDSourceToTargetTransparentContainer , ngapType .TypeOfErrorPresentMissing )
373+ item := buildCriticalityDiagnosticsIEItem (ngapType .CriticalityPresentReject ,
374+ ngapType .ProtocolIEIDSourceToTargetTransparentContainer , ngapType .TypeOfErrorPresentMissing )
368375 iesCriticalityDiagnostics .List = append (iesCriticalityDiagnostics .List , item )
369376 abort = true
370377 }
@@ -405,16 +412,16 @@ func (p *Processor) CreateUEContextProcedure(ueContextID string, createUeContext
405412 continue
406413 }
407414
408- smContext , ok := ue .SmContextFindByPDUSessionID (pduSessionID )
409- if ! ok {
415+ smContext , okSmContextFound := ue .SmContextFindByPDUSessionID (pduSessionID )
416+ if ! okSmContextFound {
410417 logger .CommLog .Warnf ("SmContext[PDU Session ID:%d] not found" , pduSessionID )
411418 // TODO: Check if doing error handling here
412419 continue
413420 }
414421
415- updateSmContextResponse200 , _ , _ , err := p .Consumer ().
422+ updateSmContextResponse200 , _ , _ , errSendUpdateSmContext := p .Consumer ().
416423 SendUpdateSmContextHandoverBetweenAMF (ue , smContext , amfSelf .Name , & amfSelf .ServedGuamiList [0 ], false )
417- if err != nil {
424+ if errSendUpdateSmContext != nil {
418425 logger .CommLog .Errorf ("consumer.GetConsumer().SendUpdateSmContextN2HandoverPreparing Error: %+v" , err )
419426 }
420427 if updateSmContextResponse200 == nil {
@@ -447,7 +454,8 @@ func (p *Processor) CreateUEContextProcedure(ueContextID string, createUeContext
447454 },
448455 }
449456 }
450- ngap_message .SendHandoverRequest (ue .RanUe [ue .GetAnType ()], targetRan , * cause , pduSessionReqList , * sourceToTargetTransparentContainer , false )
457+ ngap_message .SendHandoverRequest (
458+ ue .RanUe [ue .GetAnType ()], targetRan , * cause , pduSessionReqList , * sourceToTargetTransparentContainer , false )
451459
452460 // waiting for handover request acknowledge handler to finish.
453461 var createUeContextResponse context.PendingHandoverResponse
0 commit comments