Section: 5.3.15.2 Reception of the RRCReject by the UE
Content: The UE shall: 1> stop timer T300, if running; 1> stop timer T319, if running; 1> stop timer T319a, if running and consider SDT procedure is not ongoing; 1> stop timer T302, if running; 1> reset MAC and release the default MAC Cell Group configuration; 1> if waitTime is configured in the RRCReject: 2> start timer T302, with the timer value set to the waitTime; 1> if RRCReject is received in response to a request from upper layers: 2> inform the upper layer that access barring is applicable for all access categories except categories '0' and '2'; 1> if RRCReject is received in response to an RRCSetupRequest: 2> inform upper layers about the failure to setup the RRC connection, upon which the procedure ends; 1> else if RRCReject is received in response to an RRCResumeRequest or an RRCResumeRequest1: 2> if resume is triggered by upper layers: 3> inform upper layers about the failure to resume the RRC connection; 2> if resume is triggered due to an RNA update; or 2> if resume is triggered for SDT and T380 has expired: 3> set the variable pendingRNA-Update to true; 2> discard the current KgNB key, the KRRCenc key, the KRRCint key, the KUPint key and the KUPenc key derived in accordance with 5.3.13.3; 2> if resume is triggered for SDT: 3> for SRB2, if it is resumed and for SRB1: 4> trigger the PDCP entity to perform SDU discard as specified in TS 38.323[ NR; Packet Data Convergence Protocol (PDCP) specification ]  [5]; 4> re-establish the RLC entity as specified in TS 38.322[ NR; Radio Link Control (RLC) protocol specification ]  [4]; 3> for each DRB that is not suspended: 4> indicate PDCP suspend to lower layers; 4> re-establish the RLC entity as specified in TS 38.322[ NR; Radio Link Control (RLC) protocol specification ]  [4]; 2> suspend SRB1 and the radio bearers configured for SDT, if any; 2> the procedure ends. Upon L2 U2N Relay UE receives RRCReject, it 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. The RRC_INACTIVE UE shall continue to monitor paging while the timer T302 is running. NOTE: If timer T331 is running, the UE continues to perform idle/inactive measurements according to 5.7.8.