Section: 5.3.13.5 Handling of failure to resume RRC Connection
Content: The UE shall: 1> if timer T319 expires: 2> if the UE supports multiple CEF report: 3> if the UE has connection establishment failure information or connection resume failure information available in VarConnEstFailReport and if the RPLMN is equal to plmn-identity stored in VarConnEstFailReport; and 3> if the cell identity of current cell is not equal to the cell identity stored in measResultFailedCell in VarConnEstFailReport and if the maxCEFReport-r17 has not been reached: 4> append the VarConnEstFailReport as a new entry in the VarConnEstFailReportList; 2> if the UE has connection establishment failure information or connection resume failure information available in VarConnEstFailReport and if the RPLMN is not equal to plmn-identity stored in VarConnEstFailReport; or 2> if the cell identity of current cell is not equal to the cell identity stored in measResultFailedCell in VarConnEstFailReport: 3> reset the numberOfConnFail to 0; 2> if the UE has connection establishment failure information or connection resume failure information available in VarConnEstFailReportList and if the RPLMN is not equal to plmn-identity stored in any entry of VarConnEstFailReportList: 3> clear the content included in VarConnEstFailReportList; 2> clear the content included in VarConnEstFailReport except for the numberOfConnFail, if any; 2> store the following connection resume failure information in the VarConnEstFailReport by setting its fields as follows: 3> set the plmn-Identity to the PLMN selected by upper layers (see TS 24.501[ Non-Access-Stratum (NAS) protocol for 5G System (5GS); Stage 3 ]  [23]) from the PLMN(s) included in the plmn-IdentityInfoList in SIB1; 3> set the measResultFailedCell to include the global cell identity, tracking area code, the cell level and SS/PBCH block level RSRP, and RSRQ, and SS/PBCH block indexes, of the failed cell based on the available SSB measurements collected up to the moment the UE detected connection resume failure; 3> if available, set the measResultNeighCells, in order of decreasing ranking-criterion as used for cell re-selection, to include neighbouring cell measurements for at most the following number of neighbouring cells: 6 intra-frequency and 3 inter-frequency neighbours per frequency as well as 3 inter-RAT neighbours, per frequency/ set of frequencies per RAT and according to the following: 4> for each neighbour cell included, include the optional fields that are available; NOTE: The UE includes the latest results of the available measurements as used for cell reselection evaluation, which are performed in accordance with the performance requirements as specified in TS 38.133[ NR; Requirements for support of radio resource management ]  [14]. 3> if available, set the locationInfo as in 5.3.3.7; 3> set perRAInfoList to indicate the performed random access procedure related information as specified in 5.7.10.5; 3> if numberOfConnFail is smaller than 8: 4> increment the numberOfConnFail by 1; 2> perform the actions upon going to RRC_IDLE as specified in 5.3.11 with release cause 'RRC Resume failure'. 1> else if upon receiving integrity check failure indication from lower layers while T319 is running: 2> perform the actions upon going to RRC_IDLE as specified in 5.3.11 with release cause 'RRC Resume failure'. 1> else if indication from the MCG RLC that the maximum number of retransmissions has been reached is received while SDT procedure is ongoing; or 1> if random access problem indication is received from MCG MAC while SDT procedure is ongoing; or 1> if the lower layers indicate that cg-SDT-TimeAlignmentTimer or the configuredGrantTimer expired before receiving network response for the UL CG-SDT transmission with CCCH message while SDT procedure is ongoing; or 1> if integrity check failure indication is received from lower layers while SDT procedure is ongoing; or 1> if T319a expires: 2> consider SDT procedure is not ongoing; 2> perform the actions upon going to RRC_IDLE as specified in 5.3.11 with release cause 'RRC Resume failure'. The UE may discard the connection resume failure or connection establishment failure information, i.e. release the UE variable VarConnEstFailReport and the UE variable VarConnEstFailReportList, 48 hours after the last connection resume failure is detected. The L2 U2N Relay UE either indicates to upper layers (to trigger PC5 unicast link release) or sends NotificationMessageSidelink message to the connected L2 U2N Remote UE(s) in accordance with 5.8.9.10.