Section: 5.8.18.3 NR sidelink positioning transmission
Content: A UE capable of NR sidelink positioning that is configured by upper layers to transmit SL-PRS shall: 1> if the conditions for NR sidelink positioning operation as defined in 5.8.2 are met: 2> if the frequency used for NR sidelink positioning is included in sl-FreqInfoToAddModList in sl-ConfigDedicatedNR within RRCReconfiguration message or included in sl-PosConfigCommonNR within SIB23: 3> if the UE is in RRC_CONNECTED and uses the frequency included in sl-ConfigDedicatedNR within RRCReconfiguration message: 4> if the UE is configured with sl-ScheduledConfig: 5> if T310 for MCG or T311 is running; and if sl-PRS-TxPoolExceptional or sl-TxPoolExceptional is included in sl-FreqInfoList for the concerned frequency in SIB23 or included in sl-ConfigDedicatedNR in RRCReconfiguration; or 5> if T301 is running and the cell on which the UE initiated RRC connection re-establishment provides SIB23 including sl-PRS-TxPoolExceptional or sl-TxPoolExceptional for the concerned frequency; or 5> if T304 for MCG is running and the UE is configured with sl-PRS-TxPoolExceptional or sl-TxPoolExceptional included in sl-ConfigDedicatedNR for the concerned frequency in RRCReconfiguration: 6> configure lower layers to perform the sidelink resource allocation scheme 2 based on random selection using the resource pool indicated by sl-PRS-TxPoolExceptional or sl-TxPoolExceptional as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3]; 5> else: 6> configure lower layers to perform the sidelink resource allocation scheme 1 for NR sidelink positioning; 5> if T311 is running, configure the lower layers to release the resources indicated by rrc-ConfiguredSidelinkGrant (if any); 4> if the UE is configured with sl-UE-SelectedConfig: 5> if a result of full sensing, if selected and is allowed by sl-PosAllowedResourceSelectionConfig, on the resources configured in sl-PRS-TxPoolSelectedNormal or by sl-AllowedResourceSelectionConfig, on the resources configured in sl-TxPoolSelectedNormal for the concerned frequency included in sl-ConfigDedicatedNR within RRCReconfiguration is not available in accordance with TS 38.214[ NR; Physical layer procedures for data ]  [19]; 6> if sl-TxPoolExceptional or sl-PRS-TxPoolExceptional for the concerned frequency is included in RRCReconfiguration; or 6> if the PCell provides SIB25 including sl-TxPoolExceptional or sl-PRS-TxPoolExceptional in sl-FreqInfoList for the concerned frequency: 7> configure lower layers to perform the sidelink resource allocation scheme 2 based on random selection using the pool of resources indicated by sl-TxPoolExceptional or sl-PRS-TxPoolExceptional as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3]; 5> else, if the sl-PRS-TxPoolSelectedNormal or sl-TxPoolSelectedNormal for the concerned frequency is included in the sl-ConfigDedicatedNR within RRCReconfiguration: 6> configure lower layers to perform the sidelink resource allocation scheme 2 based on resource selection operation according to sl-PosAllowedResourceSelectionConfig (as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3] and TS 38.214[ NR; Physical layer procedures for data ]  [19]) using the pools of resources indicated by sl-PRS-TxPoolSelectedNormalNormal for the concerned frequency, or based on resource selection operation according to sl-AllowedResourceSelectionConfig (as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3] and TS 38.214[ NR; Physical layer procedures for data ]  [19]) using the pools of resources indicated by sl-TxPoolSelectedNormal for the concerned frequency; 3> else: 4> if the cell chosen for NR sidelink positioning transmission provides SIB23: 5> if SIB23 includes sl-PosTxPoolSelectedNormal for the concerned frequency, and a result of full sensing, if selected and is allowed by sl-PosAllowedResourceSelectionConfig, on the resources configured in the sl-PRS-TxPoolSelectedNormal is available in accordance with TS 38.214[ NR; Physical layer procedures for data ]  [19] or random selection, if allowed by sl-PosAllowedResourceSelectionConfig, is selected: 6> configure lower layers to perform the sidelink resource allocation scheme 2 based on resource selection operation according to sl-PosAllowedResourceSelectionConfig using the pools of resources indicated by sl-PosTxPoolSelectedNormal for the concerned frequency as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3]; 5> if SIB23 includes sl-TxPoolSelectedNormal for the concerned frequency, and a result of full sensing, if selected and is allowed by sl-AllowedResourceSelectionConfig, on the resources configured in the sl-TxPoolSelectedNormal is available in accordance with TS 38.214[ NR; Physical layer procedures for data ]  [19] or random selection, if allowed by sl-AllowedResourceSelectionConfig, is selected: 6> configure lower layers to perform the sidelink resource allocation scheme 2 based on resource selection operation according to sl-AllowedResourceSelectionConfig using the pools of resources indicated by sl-TxPoolSelectedNormal for the concerned frequency as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3]; 5> else if SIB23 includes sl-PRS-TxPoolExceptional or sl-TxPoolExceptional for the concerned frequency: 6> from the moment the UE initiates RRC connection establishment or RRC connection resume, until receiving an RRCReconfiguration including sl-ConfigDedicatedNR, or receiving an RRCRelease or an RRCReject; or 6> if a result of full sensing, if selected and is allowed by sl-PosAllowedResourceSelectionConfig, on the resources configured in sl-PRS-TxPoolSelectedNormal or if selected and is allowed by sl-AllowedResourceSelectionConfig, on the resources configured in sl-TxPoolSelectedNormal for the concerned frequency in SIB23 is not available in accordance with TS 38.214[ NR; Physical layer procedures for data ]  [19]: 7> configure lower layers to perform the sidelink resource allocation scheme 2 based on random selection (as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3]) using the pool of resources indicated by sl-PRS-TxPoolExceptional or sl-TxPoolExceptional for the concerned frequency; 2> else: 3> configure lower layers to perform the sidelink resource allocation scheme 2 based on resource selection operation according to sl-PosAllowedResourceSelectionConfig (as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3] and TS 38.214[ NR; Physical layer procedures for data ]  [19]) using the pools of resources indicated by sl-PRS-TxPoolSelectedNormal in SL-PosPreconfigurationNR for the concerned frequency or based on sl-AllowedResourceSelectionConfig (as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3] and TS 38.214[ NR; Physical layer procedures for data ]  [19]) using the pools of resources indicated by sl-TxPoolSelectedNormal in SidelinkPreconfigNR for the concerned frequency.. NOTE: The same Notes as in clause 5.8.8 are applicable for this clause unless otherwise stated.