Section: 5.3.5.18.3 LTM candidate configuration addition/modification
Content: The UE shall: 1> for each ltm-CandidateId value in the ltm-CandidateToAddModList: 2> if the current VarLTM-Config includes an LTM-Candidate with the ltm-CandidateId value: 3> replace the LTM-Candidate within VarLTM-Config in accordance with the received LTM-Candidate; 2> else: 3> add the received LTM-Candidate to VarLTM-Config; 2> if the received LTM-Candidate includes ltm-DL-OrJointTCI-StateToReleaseList: 3> for each tci-StateId in the ltm-DL-OrJointTCI-StateToReleaseList: 4> if the current VarLTM-Config includes a CandidateTCI-State within an LTM-Candidate with the ltm-CandidateId value that is associated with the tci-StateId value: 5> remove the entry related to CandidateTCI-State within the LTM-Candidate from VarLTM-Config. 2> if the received LTM-Candidate includes ltm-DL-OrJointTCI-StateToAddModList: 3> for each tci-StateId in the ltm-DL-OrJointTCI-StateToAddModList: 4> if the current VarLTM-Config includes a CandidateTCI-State within an LTM-Candidate with the ltm-CandidateId value that is associated with the tci-StateId value: 5> replace the entry related to CandidateTCI-State within the LTM-Candidate from VarLTM-Config. 4> else: 5> add the received CandidateTCI-State within LTM-Candidate to VarLTM-Config; 2> if the received LTM-Candidate includes ltm-UL-TCI-StatesToReleaseList: 3> for each tci-StateId in the ltm-UL-TCI-StatesToReleaseList: 4> if the current VarLTM-Config includes an CandidateTCI-UL-State within an LTM-Candidate with the ltm-CandidateId value that is associated with the tci-StateId value: 5> remove the entry related to CandidateTCI-UL-State within the LTM-Candidate from VarLTM-Config. 2> if the received LTM-Candidate includes ltm-UL-TCI-StatesToAddModList: 3> for each tci-StateId in the ltm-UL-TCI-StatesToAddModList: 4> if the current VarLTM-Config includes an CandidateTCI-UL-State within an LTM-Candidate with the ltm-CandidateId value that is associated with the tci-StateId value: 5> replace the entry related to CandidateTCI-UL-State within the LTM-Candidate from VarLTM-Config. 4> else: 5> add the received CandidateTCI-UL-State within LTM-Candidate to VarLTM-Config. 2> if the received LTM-Candidate includes ltm-nzp-CSI-RS-ResourceToReleaseList: 3> for each nzp-CSI-RS-ResourceId in the ltm-nzp-CSI-RS-ResourceToReleaseList: 4> if the current VarLTM-Config includes an NZP-CSI-RS-Resource within an LTM-Candidate with the ltm-CandidateId value that is associated with the nzp-CSI-RS-ResourceId value: 5> remove the entry related to NZP-CSI-RS-Resource within the LTM-Candidate from VarLTM-Config. 2> if the received LTM-Candidate includes ltm-nzp-CSI-RS-ResourceToAddModList: 3> for each nzp-CSI-RS-ResourceId in the ltm-nzp-CSI-RS-ResourceToReleaseList: 4> if the current VarLTM-Config includes an NZP-CSI-RS-Resource within an LTM-Candidate with the ltm-CandidateId value that is associated with the nzp-CSI-RS-ResourceId value: 5> replace the entry related to NZP-CSI-RS-Resource within the LTM-Candidate from VarLTM-Config. 4> else: 5> add the received NZP-CSI-RS-Resource within LTM-Candidate to VarLTM-Config. 2> if the received LTM-Candidate includes ltm-nzp-CSI-RS-ResourceSetToReleaseList: 3> for each nzp-CSI-RS-ResourceSetId in the ltm-nzp-CSI-RS-ResourceSetToReleaseList: 4> if the current VarLTM-Config includes an NZP-CSI-RS-ResourceSet within an LTM-Candidate with the ltm-CandidateId value that is associated with the nzp-CSI-RS-ResourceSetId value: 5> remove the entry related to NZP-CSI-RS-ResourceSet within the LTM-Candidate from VarLTM-Config. 2> if the received LTM-Candidate includes ltm-nzp-CSI-RS-ResourceSetToAddModList: 3> for each nzp-CSI-RS-ResourceSetId in the ltm-nzp-CSI-RS-ResourceSetToReleaseList: 4> if the current VarLTM-Config includes an NZP-CSI-RS-ResourceSet within an LTM-Candidate with the ltm-CandidateId value that is associated with the nzp-CSI-RS-ResourceSetId value: 5> replace the entry related to NZP-CSI-RS-ResourceSet within the LTM-Candidate from VarLTM-Config. 4> else: 5> add the received NZP-CSI-RS-ResourceSet within LTM-Candidate to VarLTM-Config. 2> if the received LTM-Candidate includes pathlossReferenceRS-ToReleaseList: 3> for each pathlossReferenceRS-Id in the pathlossReferenceRS-ToReleaseList: 4> if the current VarLTM-Config includes an PathlossReferenceRS within an LTM-Candidate with the ltm-CandidateId value that is associated with the pathlossReferenceRS-Id value: 5> remove the entry related to PathlossReferenceRS within the LTM-Candidate from VarLTM-Config. 2> if the received LTM-Candidate includes pathlossReferenceRS-ToAddModList: 3> for each pathlossReferenceRS-Id in the pathlossReferenceRS-ToAddModList: 4> if the current VarLTM-Config includes an PathlossReferenceRS within an LTM-Candidate with the ltm-CandidateId value that is associated with the pathlossReferenceRS-Id value: 5> replace the entry related to PathlossReferenceRS within the LTM-Candidate from VarLTM-Config. 4> else: 5> add the received PathlossReferenceRS within LTM-Candidate to VarLTM-Config. 2> if the LTM-Candidate with the received ltm-CandidateId value includes ltm-UE-MeasuredTA-ID: 3> if the value of ltm-UE-MeasuredTA-ID is equal to the value of ltm-ServingCellUE-MeasuredTA-ID within VarLTM-ServingCellUE-MeasuredTA-ID: 4> inform lower layers that UE is configured with UE-based TA measurements if an LTM cell switch is executed for this LTM candidate configuration;