Skip to content

Commit

Permalink
Merge pull request #244 from pastorsx/sp_dev_meas_rep_ue
Browse files Browse the repository at this point in the history
notification for NrMeasRepUe subscription 4G and 5G neighbor cell information is mutually exclusive
  • Loading branch information
dilallkx authored May 31, 2021
2 parents 7711289 + ebf1cbe commit b9c2727
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion go-apps/meep-rnis/server/rnis.go
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,6 @@ func checkMrNotificationRegisteredSubscriptions(key string, jsonInfo string, ext
notif.NewRadioMeasNeiInfo = append(notif.NewRadioMeasNeiInfo, neighborCell)
default:
}

}
}

Expand Down Expand Up @@ -1594,6 +1593,10 @@ func checkNrMrNotificationRegisteredSubscriptions(key string, jsonInfo string, e

notif.AssociateId = append(notif.AssociateId, *assocId)

//4G and 5G neighbours information are mutually exclusive
//If at least one 5G neighbor exist, only report 5G
report5GNeighborOnly := false

strongestRsrp := int32(0)
//adding the data of all reachable cells
for _, poa := range ueData.InRangePoas {
Expand Down Expand Up @@ -1630,6 +1633,8 @@ func checkNrMrNotificationRegisteredSubscriptions(key string, jsonInfo string, e
}

notif.NrNeighCellMeasInfo = append(notif.NrNeighCellMeasInfo, neighborCell)
report5GNeighborOnly = true

case poaType4G:
var neighborCell NrMeasRepUeNotificationEutraNeighCellMeasInfo
neighborCell.Rsrp = poa.Rsrp
Expand All @@ -1641,6 +1646,9 @@ func checkNrMrNotificationRegisteredSubscriptions(key string, jsonInfo string, e

}
}
if report5GNeighborOnly {
notif.EutraNeighCellMeasInfo = nil
}

go sendNrMrNotification(subscription.CallbackReference, notif)
log.Info("Nr_Meas_Rep_Ue Notification" + "(" + subsIdStr + ")")
Expand Down Expand Up @@ -2021,6 +2029,7 @@ func subscriptionsPost(w http.ResponseWriter, r *http.Request) {
supportedTriggerAlreadyPresent = true
}
}

if !supportedTriggerAlreadyPresent {
subscription.FilterCriteriaAssocTri.Trigger = append(subscription.FilterCriteriaAssocTri.Trigger, TRIGGER_PERIODICAL_REPORT_STRONGEST_CELLS)
}
Expand Down

0 comments on commit b9c2727

Please sign in to comment.