Section: 5.7.3.5 Actions related to transmission of SCGFailureInformation message
Content: The UE shall set the contents of the SCGFailureInformation message as follows: 1> if the UE initiates transmission of the SCGFailureInformation message due to T310 expiry: 2> set the failureType as t310-Expiry; 1> else if the UE initiates transmission of the SCGFailureInformation message due to T312 expiry: 2> set the failureType as other and set the failureType-v1610 as t312-Expiry; 1> else if the UE initiates transmission of the SCGFailureInformation message to provide reconfiguration with sync failure information for an SCG: 2> set the failureType as synchReconfigFailureSCG; 1> else if the UE initiates transmission of the SCGFailureInformation message to provide random access problem indication from SCG MAC: 2> if the random access procedure was initiated for beam failure recovery: 3> set the failureType as other and set the failureType-v1610 as beamFailureRecoveryFailure; 2> else: 3> set the failureType as randomAccessProblem; 1> else if the UE initiates transmission of the SCGFailureInformation message to provide indication from SCG RLC that the maximum number of retransmissions has been reached: 2> set the failureType as rlc-MaxNumRetx; 1> else if the UE initiates transmission of the SCGFailureInformation message due to SRB3 IP check failure: 2> set the failureType as srb3-IntegrityFailure; 1> else if the UE initiates transmission of the SCGFailureInformation message due to Reconfiguration failure of NR RRC reconfiguration message: 2> set the failureType as scg-reconfigFailure; 1> else if the UE initiates transmission of the SCGFailureInformation message due to consistent uplink LBT failures: 2> set the failureType as other and set the failureType-v1610 as scg-lbtFailure; 1> else if connected as an IAB-node and the SCGFailureInformation is initiated due to the reception of a BH RLF indication on BAP entity from the SCG: 2> set the failureType as other and set failureType-v1610 as bh-RLF; 1> else if the UE initiates transmission of the SCGFailureInformation message due to beam failure of the PSCell while the SCG is deactivated: 2> set the failureType as other and set failureType-v1610 as beamFailure; 1> include and set MeasResultSCG-Failure in accordance with 5.7.3.4; 1> for each MeasObjectNR configured by a MeasConfig associated with the MCG, and for which measurement results are available: 2> include an entry in measResultFreqList; 2> if there is a measId configured with the MeasObjectNR and a reportConfig which has rsType set to ssb: 3> set ssbFrequency in measResultFreqList to the value indicated by ssbFrequency as included in the MeasObjectNR; 2> if there is a measId configured with the MeasObjectNR and a reportConfig which has rsType set to csi-rs: 3> set refFreqCSI-RS in measResultFreqList to the value indicated by refFreqCSI-RS as included in the associated measurement object; 2> if a serving cell is associated with the MeasObjectNR: 3> set measResultServingCell in measResultFreqList to include the available quantities of the concerned cell and in accordance with the performance requirements in TS 38.133[ NR; Requirements for support of radio resource management ]  [14]; 2> set the measResultNeighCellList in measResultFreqList to include the best measured cells, ordered such that the best cell is listed first, and based on measurements collected up to the moment the UE detected the failure, and set its fields as follows; 3> ordering the cells with sorting as follows: 4> based on SS/PBCH block if SS/PBCH block measurement results are available and otherwise based on CSI-RS; 4> using RSRP if RSRP measurement results are available, otherwise using RSRQ if RSRQ measurement results are available, otherwise using SINR; 3> if the UE supports SCG failure information for mobility robustness optimization for conditional PSCell change or addition, for each neighbour cell, if any, included in measResultListNR in measResultFreqList: 4> if the neighbour cell is one of the candidate cells for which the reconfigurationWithSync is included in the secondaryCellGroup in the MCG VarConditionalReconfig (for CPA or inter-SN CPC in NR-DC) or SCG VarConditionalReconfig (for intra-SN CPC) at the moment of the detected SCG failure (radio link failure at PSCell or PSCell change or addition failure): 5> if the first entry of choConfig corresponds to a fulfilled execution condition at the moment of SCG failure; or 5> if the second entry of choConfig, if available, corresponds to a fulfilled execution condition at the moment of SCG failure: 6> 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; 6> set timeBetweenEvents to the elapsed time between the point in time of fulfilling the condition in choConfig that was fulfilled first in time, and the point in time of fulfilling 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 fulfilled; 3> for each neighbour cell included: 4> 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. NOTE 2: Field measResultSCG-Failure is used to report available results for NR frequencies the UE is configured to measure by SCG RRC signalling. 1> if available, set the locationInfo as in 5.3.3.7 according to the otherConfig associated with the NR MCG. 1> if the UE supports SCG failure for mobility robustness optimization: 2> if the failureType is set to synchReconfigFailureSCG; or 2> if the failureType is set to randomAccessProblem and the SCG failure was declared while T304 was running: 3> set perRAInfoList to indicate the performed random access procedure related information as specified in 5.7.10.5. 3> set the failedPSCellId to the physical cell identity and carrier frequency of the target PSCell of the failed PSCell change; 3> set the previousPSCellId to the physical cell identity and carrier frequency of the source PSCell associated to the last received RRCReconfiguration message including reconfigurationWithSync for the SCG, if available; 3> set the timeSCGFailure to the elapsed time since the last execution of RRCReconfiguration message including the reconfigurationWithSync for the SCG until declaring the SCG failure; 2> else: 3> set the failedPSCellId to the physical cell identity and carrier frequency of the PSCell in which the SCG failure was declared; 3> if the last RRCReconfiguration message including the reconfigurationWithSync for the SCG was received to enter the PSCell in which the SCG failure was declared: 4> set the timeSCGFailure to the elapsed time since the last execution of RRCReconfiguration message including the reconfigurationWithSync for the SCG until declaring the SCG failure; 4> set the previousPSCellId to the physical cell identity and carrier frequency of the source PSCell associated to the last received RRCReconfiguration message including reconfigurationWithSync for the SCG; 1> release successPSCell-Config configured by the source PSCell, if available. The UE shall submit the SCGFailureInformation message to lower layers for transmission.