Section: 5.7.8.2a Performing measurements
Content: When performing measurements on NR carriers according to this clause, the UE shall derive the cell quality as specified in 5.5.3.3 and consider the beam quality to be the value of the measurement results of the concerned beam, where each result is averaged as described in TS 38.215[ NR; Physical layer measurements ]  [9]. While in RRC_IDLE or RRC_INACTIVE, and T331 is running and SDT procedure is not ongoing, the UE shall: 1> perform the measurements in accordance with the following: 2> if the VarMeasIdleConfig includes the measIdleCarrierListEUTRA and the SIB1 contains idleModeMeasurementsEUTRA: 3> for each entry in measIdleCarrierListEUTRA within VarMeasIdleConfig: 4> if UE supports NE-DC between the serving carrier and the carrier frequency indicated by carrierFreqEUTRA within the corresponding entry: 5> perform measurements in the carrier frequency and bandwidth indicated by carrierFreqEUTRA and allowedMeasBandwidth within the corresponding entry; 5> if the reportQuantitiesEUTRA is set to rsrq: 6> consider RSRQ as the sorting quantity; 5> else: 6> consider RSRP as the sorting quantity; 5> if the measCellListEUTRA is included: 6> consider cells identified by each entry within the measCellListEUTRA to be applicable for idle/inactive mode measurement reporting; 5> else: 6> consider up to maxCellMeasIdle strongest identified cells, according to the sorting quantity, to be applicable for idle/inactive measurement reporting; 5> for all cells applicable for idle/inactive measurement reporting, derive measurement results for the measurement quantities indicated by reportQuantitiesEUTRA; 5> store the derived measurement results as indicated by reportQuantitiesEUTRA within the measReportIdleEUTRA in VarMeasIdleReport in decreasing order of the sorting quantity, i.e. the best cell is included first, as follows: 6> if qualityThresholdEUTRA is configured: 7> include the measurement results from the cells applicable for idle/inactive measurement reporting whose RSRP/RSRQ measurement results are above the value(s) provided in qualityThresholdEUTRA; 6> else: 7> include the measurement results from all cells applicable for idle/inactive measurement reporting; 2> if the VarMeasIdleConfig includes the measIdleCarrierListNR and the SIB1 contains idleModeMeasurementsNR: 3> for each entry in measIdleCarrierListNR within VarMeasIdleConfig that contains ssb-MeasConfig: 4> if UE supports carrier aggregation or NR-DC between serving carrier and the carrier frequency and subcarrier spacing indicated by carrierFreq and ssbSubCarrierSpacing within the corresponding entry: 5> perform measurements in the carrier frequency and subcarrier spacing indicated by carrierFreq and ssbSubCarrierSpacing within the corresponding entry; 5> if the reportQuantities is set to rsrq: 6> consider RSRQ as the cell sorting quantity; 5> else: 6> consider RSRP as the cell sorting quantity; 5> if the measCellListNR is included: 6> consider cells identified by each entry within the measCellListNR to be applicable for idle/inactive measurement reporting; 5> else: 6> consider up to maxCellMeasIdle strongest identified cells, according to the sorting quantity, to be applicable for idle/inactive measurement reporting; 5> for all cells applicable for idle/inactive measurement reporting, derive cell measurement results for the measurement quantities indicated by reportQuantities; 5> store the derived cell measurement results as indicated by reportQuantities for cells applicable for idle/inactive measurement reporting within measResultsPerCarrierListIdleNR in the measReportIdleNR in VarMeasIdleReport in decreasing order of the cell sorting quantity, i.e. the best cell is included first, as follows: 6> if qualityThreshold is configured: 7> include the measurement results from the cells applicable for idle/inactive measurement reporting whose RSRP/RSRQ measurement results are above the value(s) provided in qualityThreshold; 6> else: 7> include the measurement results from all cells applicable for idle/inactive measurement reporting; 5> if beamMeasConfigIdle is included in the associated entry in measIdleCarrierListNR and if UE supports idleInactiveNR-MeasBeamReport for the FR of the carrier frequency indicated by carrierFreq within the associated entry, for each cell in the measurement results: 6> derive beam measurements based on SS/PBCH block for each measurement quantity indicated in reportQuantityRS-Indexes, as described in TS 38.215[ NR; Physical layer measurements ]  [9]; 6> if the reportQuantityRS-Indexes is set to rsrq: 7> consider RSRQ as the beam sorting quantity; 6> else: 7> consider RSRP as the beam sorting quantity; 6> set resultsSSB-Indexes to include up to maxNrofRS-IndexesToReport SS/PBCH block indexes in order of decreasing beam sorting quantity as follows: 7> include the index associated to the best beam for the sorting quantity and if absThreshSS-BlocksConsolidation is included, the remaining beams whose sorting quantity is above absThreshSS-BlocksConsolidation; 6> if the includeBeamMeasurements is set to true: 7> include the beam measurement results as indicated by reportQuantityRS-Indexes; 2> if, as a result of the procedure in this clause, the UE performs measurements in one or more carrier frequency indicated by measIdleCarrierListNR or measIdleCarrierListEUTRA: 3> store the cell measurement results for RSRP and RSRQ for the serving cell within measResultServingCell in the measReportIdleNR in VarMeasIdleReport. 3> if the VarMeasIdleConfig includes the measIdleCarrierListNR and it contains an entry with carrierFreq set to the value of the serving frequency: 4> if beamMeasConfigIdle is included in that entry, and if the UE supports idleInactiveNR- MeasBeamReport for the FR of the serving cell: 5> derive beam measurements based on SS/PBCH block for each measurement quantity indicated in reportQuantityRS-Indexes, as described in TS 38.215[ NR; Physical layer measurements ]  [9]; 5> if the reportQuantityRS-Indexes is set to rsrq: 6> consider RSRQ as the beam sorting quantity; 5> else: 6> consider RSRP as the beam sorting quantity; 5> set resultsSSB-Indexes to include up to maxNrofRS-IndexesToReport SS/PBCH block indexes in order of decreasing beam sorting quantity as follows: 6> include the index associated to the best beam for the sorting quantity and if absThreshSS-BlocksConsolidation is included in SIB2 of serving cell, the remaining beams whose sorting quantity is above absThreshSS-BlocksConsolidation; 5> if the includeBeamMeasurements is set to true: 6> include the beam measurement results as indicated by reportQuantityRS-Indexes; NOTE 1: How the UE performs idle/inactive measurements is up to UE implementation as long as the requirements in TS 38.133[ NR; Requirements for support of radio resource management ]  [14] are met for measurement reporting. NOTE 2: The UE is not required to perform idle/inactive measurements on a given carrier if the SSB configuration of that carrier provided via dedicated signaling is different from the SSB configuration broadcasted in the serving cell, if any. NOTE 3: How the UE prioritizes which frequencies to measure or report (in case it is configured with more frequencies than it can measure or report) is left to UE implementation. NOTE 4: When idleModeMeasVoiceFallback is included in SIB5, UE may decide to measure and report idle/inactive measurements for EUTRA carrier frequencies included in SIB5 even if it does not support NE-DC between the serving carrier and the EUTRA carrier frequencies.