Section: 5.7.10.3 Reception of the UEInformationRequest message
Content: Upon receiving the UEInformationRequest message, the UE shall, only after successful security activation: 1> if the idleModeMeasurementReq is included in the UEInformationRequest and the UE has stored VarMeasIdleReport that contains measurement information concerning cells other than the PCell: 2> set the measResultIdleEUTRA in the UEInformationResponse message to the value of measReportIdleEUTRA in the VarMeasIdleReport, if available; 2> set the measResultIdleNR in the UEInformationResponse message to the value of measReportIdleNR in the VarMeasIdleReport, if available; 2> discard the VarMeasIdleReport upon successful delivery of the UEInformationResponse message confirmed by lower layers; 1> if the logMeasReportReq is present and if the RPLMN is included in plmn-IdentityList stored in VarLogMeasReport, or if the current registered SNPN is included in snpn-ConfigIDList stored in VarLogMeasReport: 2> if VarLogMeasReport includes one or more logged measurement entries, set the contents of the logMeasReport in the UEInformationResponse message as follows: 3> include the absoluteTimeStamp and set it to the value of absoluteTimeInfo in the VarLogMeasReport; 3> include the traceReference and set it to the value of traceReference in the VarLogMeasReport; 3> include the traceRecordingSessionRef and set it to the value of traceRecordingSessionRef in the VarLogMeasReport; 3> include the tce-Id and set it to the value of tce-Id in the VarLogMeasReport; 3> include the logMeasInfoList and set it to include one or more entries from the VarLogMeasReport starting from the entries logged first, and for each entry of the logMeasInfoList that is included, include all information stored in the corresponding logMeasInfoList entry in VarLogMeasReport; 3> if the VarLogMeasReport includes one or more additional logged measurement entries that are not included in the logMeasInfoList within the UEInformationResponse message: 4> include the logMeasAvailable; 4> if bt-LocationInfo is included in locationInfo of one or more of the additional logged measurement entries in VarLogMeasReport that are not included in the logMeasInfoList within the UEInformationResponse message: 5> include the logMeasAvailableBT; 4> if wlan-LocationInfo is included in locationInfo of one or more of the additional logged measurement entries in VarLogMeasReport that are not included in the logMeasInfoList within the UEInformationResponse message: 5> include the logMeasAvailableWLAN; 1> if ra-ReportReq is set to true and the UE has random access related information available in VarRA-Report and if the RPLMN is included in plmn-IdentityList stored in VarRA-Report; or 1> if ra-ReportReq is set to true and the UE has random access related information available in VarRA-Report and if the registered SNPN is included in snpn-IdentityList stored in VarRA-Report: 2> set the ra-ReportList in the UEInformationResponse message to the value of ra-ReportList in VarRA-Report; 2> discard the ra-ReportList from VarRA-Report upon successful delivery of the UEInformationResponse message confirmed by lower layers; 1> if rlf-ReportReq is set to true: 2> if the UE has radio link failure information or handover failure information available in VarRLF-Report and if the RPLMN is included in plmn-IdentityList stored in VarRLF-Report; or 2> if the UE has radio link failure information or handover failure information available in VarRLF-Report and if the current registered SNPN is included in snpn-IdentityList stored in VarRLF-Report: 3> set timeSinceFailure in VarRLF-Report to the time that elapsed since the last radio link failure or handover failure in NR; 3> set the rlf-Report in the UEInformationResponse message to the value of rlf-Report in VarRLF-Report; 3> discard the rlf-Report from VarRLF-Report upon successful delivery of the UEInformationResponse message confirmed by lower layers; 2> else if the UE is capable of cross-RAT RLF reporting as defined in TS 38.306[ NR; User Equipment (UE) radio access capabilities ]  [26] and has radio link failure information or handover failure information available in VarRLF-Report of TS 36.331[ Evolved Universal Terrestrial Radio Access (E-UTRA); Radio Resource Control (RRC); Protocol specification ]  [10] and if the RPLMN is included in plmn-IdentityList stored in VarRLF-Report of TS 36.331[ Evolved Universal Terrestrial Radio Access (E-UTRA); Radio Resource Control (RRC); Protocol specification ]  [10]: 3> set timeSinceFailure in VarRLF-Report of TS 36.331[ Evolved Universal Terrestrial Radio Access (E-UTRA); Radio Resource Control (RRC); Protocol specification ]  [10] to the time that elapsed since the last radio link failure or handover failure in EUTRA; 3> set failedPCellId-EUTRA in the rlf-Report in the UEInformationResponse message to indicate the PCell in which RLF was detected or the source PCell of the failed handover in the VarRLF-Report of TS 36.331[ Evolved Universal Terrestrial Radio Access (E-UTRA); Radio Resource Control (RRC); Protocol specification ]  [10]; 3> set the measResult-RLF-Report-EUTRA in the rlf-Report in the UEInformationResponse message to the value of rlf-Report in VarRLF-Report of TS 36.331[ Evolved Universal Terrestrial Radio Access (E-UTRA); Radio Resource Control (RRC); Protocol specification ]  [10]; 3> discard the rlf-Report from VarRLF-Report of TS 36.331[ Evolved Universal Terrestrial Radio Access (E-UTRA); Radio Resource Control (RRC); Protocol specification ]  [10] upon successful delivery of the UEInformationResponse message confirmed by lower layers; 1> if connEstFailReportReq is set to true and the UE has connection establishment failure or connection resume failure information in VarConnEstFailReport or VarConnEstFailReportList and if the RPLMN is equal to plmn-Identity stored in VarConnEstFailReport or in at least one of the entries of VarConnEstFailReportList: 1> if connEstFailReportReq is set to true and if the UE has connection establishment failure information or connection resume failure information available in VarConnEstFailReport or VarConnEstFailReportList and if the registered SNPN identity is equal to snpn-identity stored in VarConnEstFailReport or any entry of VarConnEstFailReportList: 2> set timeSinceFailure in VarConnEstFailReport to the time that elapsed since the last connection establishment failure or connection resume failure in NR; 2> set the connEstFailReport in the UEInformationResponse message to the value of connEstFailReport in VarConnEstFailReport; 2> if the UE supports multiple CEF report: 3> for each connEstFailReport in the connEstFailReportList in VarConnEstFailReportList: 4> set timeSinceFailure to the time that elapsed since the associated connection establishment failure or connection resume failure in NR; 2> for each connEstFailReport in the connEstFailReportList in the UEInformationResponse message, set the value to the value of connEstFailReport in VarConnEstFailReport in VarConnEstFailReportList; 2> discard the connEstFailReport from VarConnEstFailReport and VarConnEstFailReportList upon successful delivery of the UEInformationResponse message confirmed by lower layers; 1> if the mobilityHistoryReportReq is set to true: 2> include the mobilityHistoryReport and set it to include visitedCellInfoList from VarMobilityHistoryReport; 2> include in the mobilityHistoryReport an entry for the current PCell, possibly after removing the oldest entry if required, and set its fields as follows: 3> set visitedCellId to the global cell identity or the physical cell identity and carrier frequency of the current PCell: 3> set field timeSpent to the time spent in the current PCell; 3> if the UE supports PSCell mobility history information and if visitedPSCellInfoList is present in VarMobilityHistoryReport: 4> for the newest entry of the PCell in the mobilityHistoryReport, include visitedPSCellInfoList from VarMobilityHistoryReport; 4> if the UE is configured with a PSCell: 5> for the newest entry of the PCell in the mobilityHistoryReport, include the current PSCell information in the visitedPSCellInfoListReport, possibly after removing the oldest PSCell entry of a PCell in the mobilityHistoryReport, if required, and set its fields as follows: 6> set visitedCellId to the global cell identity or the physical cell identity and carrier frequency of the current PSCell: 6> set field timeSpent to the time spent in the current PSCell while being connected to the current PCell; 4> else: 5> for the newest entry of the PCell in the mobilityHistoryReport, include a new entry in the visitedPSCellInfoListReport, possibly after removing the oldest PSCell entry of a PCell in the mobilityHistoryReport, if required, and set its fields as follows: 6> set field timeSpent to the time spent without PSCell in the current PCell since last PSCell release since connected to the current PCell in RRC_CONNECTED; 3> else if the UE supports PSCell mobility history information: 4> if the UE is configured with a PSCell: 5> for the newest entry of the PCell in the mobilityHistoryReport, include the current PSCell information in the visitedPSCellInfoListReport, possibly after removing the oldest PSCell entry of a PCell in the mobilityHistoryReport, if required, and set its fields as follows: 6> set visitedCellId to the global cell identity or the physical cell identity and carrier frequency of the current PSCell: 6> set field timeSpent to the time spent in the current PSCell while being connected to the current PCell; 4> else: 5> for the newest entry of the PCell in the mobilityHistoryReport, include a new entry in the visitedPSCellInfoListReport, possibly after removing the oldest PSCell entry of a PCell in the mobilityHistoryReport, if required, and set its fields as follows: 6> set field timeSpent to the time spent without PSCell in the current PCell since connected to the current PCell in RRC_CONNECTED; 1> if the successHO-ReportReq is set to true and if the UE has successful handover related information available in VarSuccessHO-Report and if the RPLMN is included in the plmn-IdentityList stored in VarSuccessHO-Report; or 1> if the successHO-ReportReq is set to true and if the UE has successful handover related information available in VarSuccessHO-Report and if the current registered SNPN is included in snpn-IdentityList if stored in the VarSuccessHO-Report: 2> if the successHO-Report in the VarSuccessHO-Report concerns a DAPS handover and if a PDCP PDU has been received from the source cell of the concerned HO and a non-duplicated PDCP PDU has been received from the target cell of the concerned HO: 3> set upInterruptionTimeAtHO in VarSuccessHO-Report to include the time elapsed between the time of arrival of the last PDCP PDU received from the source cell of the concerned handover and the time of arrival of the first non-duplicate PDCP PDU received from the target cell of the concerned handover, as measured at the time of arrival of the first non-duplicate PDCP PDU received from the target cell; 2> if the successHO-Report in the VarSuccessHO-Report concerns a mobilityFromNRCommand: 3> set timeSinceSHR in VarSuccessHO-Report to the time that elapsed since the execution of the associated mobilityFromNRCommand; 2> set the successHO-Report in the UEInformationResponse message to the value of successHO-Report in the VarSuccessHO-Report, if available; 2> discard the VarSuccessHO-Report upon successful delivery of the UEInformationResponse message confirmed by lower layers; 1> if the successPSCell-ReportReq is set to true and if the UE has successful PSCell change or addition information available in VarSuccessPSCell-Report and if the RPLMN is included in plmn-IdentityList stored in VarSuccessPSCell-Report; or 1> if the successPSCell-ReportReq is set to true and if the UE has successful PSCell change or addition information available in VarSuccessPSCell-Report and if the current registered SNPN is included in snpn-IdentityList if stored in the VarSuccessPSCell-Report: 2> set the successPSCell-Report in the UEInformationResponse message to the value of successPSCell-Report in the VarSuccessPSCell-Report; 2> discard the VarSuccessPSCell-Report upon successful delivery of the UEInformationResponse message confirmed by lower layers; 1> if the coarseLocationRequest is set to true: 2> include coarseLocationInfo, if available; 1> if the flightPathInfoReq is included in the UEInformationRequest and the UE has flight path information available, set the flightPathInfoReport in the UEInformationResponse message as follows: 2> include the list of up to maxWayPointNumber waypoints along the flight path; 2> if the includeTimeStamp is set to true, for each included waypoint: 3> if available, set the field timestamp to the time when UE intends to arrive at the waypoint; 1> if the logMeasReport is included in the UEInformationResponse: 2> submit the UEInformationResponse message to lower layers for transmission via SRB2; 2> discard the logged measurement entries included in the logMeasInfoList from VarLogMeasReport upon successful delivery of the UEInformationResponse message confirmed by lower layers; 1> else: 2> submit the UEInformationResponse message to lower layers for transmission via SRB1.