Section: 5.3.10.5 RLF report content determination
Content: The UE shall determine the content in the VarRLF-Report as follows: 1> clear the information included in VarRLF-Report, if any; 1> if the UE is not in SNPN access mode, set the plmn-IdentityList to include the list of EPLMNs stored by the UE (i.e. includes the RPLMN); 1> else if the UE is in SNPN access mode, set the snpn-IdentityList to include the list of equivalent SNPNs stored by the UE (i.e., registered SNPN); 1> set the measResultLastServCell to include the cell level RSRP, RSRQ and the available SINR, of the source PCell (in case HO failure) or PCell (in case RLF) based on the available SSB and CSI-RS measurements collected up to the moment the UE detected failure; 1> if measRSSI-ReportConfig is configured for the frequency of the source PCell (in case HO failure) or PCell (in case of RLF), set the measResultLastServCell-RSSI to the linear average of the available RSSI sample value(s) provided by lower layers for the frequency of the source PCell (in case HO failure) or PCell (in case of RLF) up to the moment the UE detected the failure; 1> if the SS/PBCH block-based measurement quantities are available: 2> set the rsIndexResults in measResultLastServCell to include all the available measurement quantities of the source PCell (in case HO failure) or PCell (in case RLF), ordered such that the highest SS/PBCH block RSRP is listed first if SS/PBCH block RSRP measurement results are available, otherwise the highest SS/PBCH block RSRQ is listed first if SS/PBCH block RSRQ measurement results are available, otherwise the highest SS/PBCH block SINR is listed first, based on the available SS/PBCH block based measurements collected up to the moment the UE detected failure; 1> if the CSI-RS based measurement quantities are available: 2> set the rsIndexResults in measResultLastServCell to include all the available measurement quantities of the source PCell (in case HO failure) or PCell (in case RLF), ordered such that the highest CSI-RS RSRP is listed first if CSI-RS RSRP measurement results are available, otherwise the highest CSI-RS RSRQ is listed first if CSI-RS RSRQ measurement results are available, otherwise the highest CSI-RS SINR is listed first, based on the available CSI-RS based measurements collected up to the moment the UE detected failure; 1> for each of the configured measObjectNR in which measurements are available: 2> if the SS/PBCH block-based measurement quantities are available: 3> set the measResultListNR in measResultNeighCells to include all the available measurement quantities of the best measured cells, other than the source PCell (in case HO failure) or PCell (in case RLF), ordered such that the cell with highest SS/PBCH block RSRP is listed first if SS/PBCH block RSRP measurement results are available, otherwise the cell with highest SS/PBCH block RSRQ is listed first if SS/PBCH block RSRQ measurement results are available, otherwise the cell with highest SS/PBCH block SINR is listed first, based on the available SS/PBCH block based measurements collected up to the moment the UE detected failure; 4> for each neighbour cell included, include the optional fields that are available; NOTE 0a: For the neighboring cells included in measResultListNR in measResultNeighCells ordered based on the SS/PBCH block measurement quantities, UE also includes the CSI-RS based measurement quantities, if available. 2> if the CSI-RS based measurement quantities are available: 3> set the measResultListNR in measResultNeighCells to include all the available measurement quantities of the best measured cells, other than the source PCell (in case HO failure) or PCell (in case RLF), ordered such that the cell with highest CSI-RS RSRP is listed first if CSI-RS RSRP measurement results are available, otherwise the cell with highest CSI-RS RSRQ is listed first if CSI-RS RSRQ measurement results are available, otherwise the cell with highest CSI-RS SINR is listed first, based on the available CSI-RS based measurements collected up to the moment the UE detected radio link failure; 4> for each neighbour cell included, include the optional fields that are available; NOTE 0b: For ordering the neighboring cells based on the CSI-RS measurement quantities, UE includes measurements only for the cells not yet included in measResultListNR in measResultNeighCells to avoid overriding SS/PBCH block-based ordered measurements. 2> for each neighbour cell, if any, included in measResultListNR in measResultNeighCells: 3> if the UE supports RLF-Report for conditional handover and if the neighbour cell is one of the candidate cells for which the reconfigurationWithSync is included in the masterCellGroup in the MCG VarConditionalReconfig at the moment of the detected failure: 4> set choConfig in MeasResult2NR to the execution condition for each measId within condTriggerConfig associated to the neighbour cell within the MCG VarConditionalReconfig; 4> if the first entry of choConfig corresponds to a fulfilled execution condition at the moment of handover failure, or radio link failure; or 4> if the second entry of choConfig, if available, corresponds to a fulfilled execution condition at the moment of handover failure, or radio link failure: 5> set firstTriggeredEvent to the execution condition condFirstEvent corresponding to the first entry of choConfig or to the execution condition condSecondEvent corresponding to the second entry of choConfig, whichever execution condition was fulfilled first in time; 5> set timeBetweenEvents to the elapsed time between the point in time of fullfilling the condition in choConfig that was fulfilled first in time, and the point in time of fullfilling the condition in choConfig that was fulfilled second in time, if both the first execution condition corresponding to the first entry and the second execution condition corresponding to the second entry in the choConfig were fullfilled; 1> for each of the configured measObjectNR if measRSSI-ReportConfig is configured for the configured frequency: 2> set the measResultNeighFreq-RSSI in the measResultNeighFreqList-RSSI to the linear average of the available RSSI sample value(s) provided by lower layers for the frequencies other than the frequency of the source PCell (in case HO failure) or of the PCell (in case RLF), up to the moment the UE detected failure; 1> for each of the configured EUTRA frequencies in which measurements are available; 2> set the measResultListEUTRA in measResultNeighCells to include the best measured cells ordered such that the cell with highest RSRP is listed first if RSRP measurement results are available, otherwise the cell with highest RSRQ is listed first, and based on measurements collected up to the moment the UE detected failure; 3> for each neighbour cell included, include the optional fields that are available; NOTE 1: The measured quantities are filtered by the L3 filter as configured in the mobility measurement configuration. The measurements are based on the time domain measurement resource restriction, if configured. Exclude-listed cells are not required to be reported. 1> set the c-RNTI to the C-RNTI used in the source PCell (in case HO failure) or PCell (in case RLF); 1> if the failure is detected due to reconfiguration with sync failure as described in 5.3.5.8.3, set the fields in VarRLF-report as follows: 2> set the connectionFailureType to hof; 2> if the UE supports RLF-Report for DAPS handover and if any DAPS bearer was configured while T304 was running: 3> set lastHO-Type to daps; 3> if radio link failure was detected in the source PCell, according to clause 5.3.10.3: 4> set timeConnSourceDAPS-Failure to the time between the initiation of the DAPS handover execution and the radio link failure detected in the source PCell while T304 was running; 4> set the rlf-Cause to the trigger for detecting the source radio link failure in accordance with clause 5.3.10.4; 2> if the UE supports RLF-Report for conditional handover and if configuration of the conditional handover is available in the MCG VarConditionalReconfig at the moment of the handover failure: 3> if the UE executed a conditional handover toward target PCell according to the condRRCReconfig of the target PCell: 4> set timeSinceCHO-Reconfig to the time elapsed between the execution of the last RRCReconfiguration message including reconfigurationWithSync for the target PCell of the failed conditional handover, and the reception in the source PCell of the last conditionalReconfiguration including the condRRCReconfig of the target PCell of the failed conditional handover; 3> else: 4> set timeSinceCHO-Reconfig to the time elapsed between the execution of the last RRCReconfiguration message including reconfigurationWithSync for the target PCell of the failed handover, and the reception in the source PCell of the last conditionalReconfiguration including the condRRCReconfig; 3> set choCandidateCellList to include the global cell identity, if available, and otherwise to the physical cell identity and carrier frequency of each of the candidate target cells for conditional handover included in condRRCReconfig within the MCG VarConditionalReconfig at the time of the failed handover, excluding the candidate target cells included in measResultNeighCells; 2> if the UE supports RLF-Report for conditional handover and if the last executed RRCReconfiguration message including reconfigurationWithSync was concerning a conditional handover: 3> set lastHO-Type to cho; 2> set the nrFailedPCellId in failedPCellId to the global cell identity and tracking area code, if available, and otherwise to the physical cell identity and carrier frequency of the target PCell of the failed handover; 2> include nrPreviousCell in previousPCellId and set it to the global cell identity and tracking area code of the PCell where the last RRCReconfiguration message including reconfigurationWithSync was received; 2> set the timeConnFailure to the elapsed time since the execution of the last RRCReconfiguration message including the reconfigurationWithSync; 1> else if the failure is detected due to Mobility from NR failure as described in 5.4.3.5, set the fields in VarRLF-report as follows: 2> set the connectionFailureType to hof; 2> if last MobilityFromNRCommand concerned a failed inter-RAT handover from NR to E-UTRA and if the UE supports Radio Link Failure Report for Inter-RAT MRO EUTRA (NR to EUTRA): 3> set the eutraFailedPCellId in failedPCellId to the global cell identity and tracking area code, if available, and otherwise to the physical cell identity and carrier frequency of the target PCell of the failed handover; 2> include nrPreviousCell in previousPCellId and set it to the global cell identity and tracking area code of the PCell where the last MobilityFromNRCommand message was received; 2> set the timeConnFailure to the elapsed time since the initialization of the handover associated to the last MobilityFromNRCommand message; 2> if voiceFallbackIndication is included in the last MobilityFromNRCommand: 3> include the voiceFallbackHO; 1> else if the failure is detected due to radio link failure as described in 5.3.10.3, set the fields in VarRLF-report as follows: 2> set the connectionFailureType to rlf; 2> set the rlf-Cause to the trigger for detecting radio link failure in accordance with clause 5.3.10.4; 2> set the nrFailedPCellId in failedPCellId to the global cell identity and the tracking area code, if available, and otherwise to the physical cell identity and carrier frequency of the PCell where radio link failure is detected; 2> if an RRCReconfiguration message including the reconfigurationWithSync was received before the connection failure: 3> if the last successfully executed RRCReconfiguration message including the reconfigurationWithSync concerned an intra NR handover and it was received while connected to the previous PCell to which the UE was connected before connecting to the PCell where radio link failure is detected; and 3> if T311 was not running before entering the PCell in which the radio link failure was detected: 4> include the nrPreviousCell in previousPCellId and set it to the global cell identity and the tracking area code of the PCell where the last executed RRCReconfiguration message including reconfigurationWithSync was received; 4> if the last executed RRCReconfiguration message including reconfigurationWithSync was concerning a DAPS handover: 5> set lastHO-Type to daps; 4> else if the last executed RRCReconfiguration message including reconfigurationWithSync was concerning a conditional handover: 5> set lastHO-Type to cho; 4> set the timeConnFailure to the elapsed time since the execution of the last RRCReconfiguration message including the reconfigurationWithSync; 3> else if the last RRCReconfiguration message including the reconfigurationWithSync concerned a handover to NR from E-UTRA and if the UE supports Radio Link Failure Report for Inter-RAT MRO EUTRA: 4> include the eutraPreviousCell in previousPCellId and set it to the global cell identity and the tracking area code of the E-UTRA PCell where the last RRCReconfiguration message including reconfigurationWithSync was received embedded in E-UTRA RRC message MobilityFromEUTRACommand message as specified in TS 36.331[ Evolved Universal Terrestrial Radio Access (E-UTRA); Radio Resource Control (RRC); Protocol specification ]  [10] clause 5.4.3.3; 4> set the timeConnFailure to the elapsed time since reception of the last RRCReconfiguration message including the reconfigurationWithSync embedded in E-UTRA RRC message MobilityFromEUTRACommand message as specified in TS 36.331[ Evolved Universal Terrestrial Radio Access (E-UTRA); Radio Resource Control (RRC); Protocol specification ]  [10] clause 5.4.3.3; 2> if configuration of the conditional handover is available in the MCG VarConditionalReconfig at the moment of declaring the radio link failure: 3> set timeSinceCHO-Reconfig to the time elapsed between the detection of the radio link failure, and the reception, in the source PCell, of the last conditionalReconfiguration including the condRRCReconfig message; 3> set choCandidateCellList to include the global cell identity if available, and otherwise to the physical cell identity and carrier frequency of each of all the candidate target cells for conditional handover included in condRRCReconfig within the MCG VarConditionalReconfig at the time of radio link failure, excluding the candidate target cells included in measResultNeighCells; 1> if connectionFailureType is rlf and the rlf-Cause is set to randomAccessProblem or beamFailureRecoveryFailure; or 1> if connectionFailureType is rlf and the rlf-Cause is set to lbtFailure and the radio link failure is detected during the random access procedure; or 1> if connectionFailureType is hof and if the failed handover is an intra-RAT handover: 2> set the ra-InformationCommon to include the random-access related information as described in clause 5.7.10.5; 1> if connectionFailureType is rlf and the rlf-Cause is set to lbtFailure, and the radio link failure is not detected during the random access procedure: 2> set the locationAndBandwidth and subcarrierSpacing in bwp-Info associated to the UL BWP in which the consistent uplink LBT failure was detected; 1> if the rlf-Cause is set to t310-Expiry or t312-Expiry: 2> set the ssbRLMConfigBitmap and/or csi-rsRLMConfigBitmap in measResultLastServCell to include the radio link monitoring configuration of the last serving cell, if available; 1> if the UE supports RLF-Report for fast MCG recovery procedure: 2> if the fast MCG recovery procedure fails due to expiry of timer T316: 3> set the mcgRecoveryFailureCause to t316-expiry; 2> else if the SCG was deactivated before initiation of the fast MCG recovery procedure: 3> set the mcgRecoveryFailureCause to scgDeactivated; Editor´s note: The use of scgDeactivated cause. 2> else if the UE detected SCG failure while the timer T316 was running or before initiation of the fast MCG recovery procedure: 3> set the pSCellId to the global cell identity of the PSCell, if available, otherwise to the physical cell identity and carrier frequency of the PSCell; 3> set the scgFailureCause value according to 5.7.3.5; 3> set the elapsedTimeSCGFailure to the time elapsed between SCG failure and the MCG failure; 1> if available, set the locationInfo as in 5.3.3.7. The UE may discard the radio link failure information or handover failure information, i.e. release the UE variable VarRLF-Report, 48 hours after the radio link failure/handover failure is detected. NOTE 2: In this clause, the term 'handover failure' has been used to refer to 'reconfiguration with sync failure'.