###########################################
## SCFD file version: 0.2                ##
## Release: FLF/FLC18SP_1802_002         ##
## LTE version: FLF18SP_RADIO_1802_002   ##
## LTE version: FLC18SP_RADIO_1802_002   ##
###########################################



###########
# COMMON: #
###########

####################################################################################################################
# LBT5442: [US KPI] CRL21255 Context Fetch Guard Timer
####################################################################################################################
# OM_LTE_SFS_RNL.20753
# Migration of the parameters introduced with CRL21255
#Migration of the new optional parameter LNCEL-t301Guard:
# If LNBTS-actRLFbasedRCR is set to ‘true’ 
# then during migration the parameter t301Guard shall be added in all LNCEL instances with following values:
#- If SIB-t301 is not configured in the same LNCEL instance then add t301Guard to the LNCEL instance with its default value 100.
#- If SIB-t301 is configured in the same LNCEL instance and it is configured to value 100ms then add t301Guard to the LNCEL instance with value 90. (Note: 90 is the closest allowed value to the default value. The default value is not allowed to be configured in this case due to a consistency check.)
#- If SIB-t301 is configured in the same LNCEL instance and it is configured to a value higher than 100ms then add t301Guard to the LNCEL instance with its default value 100.

add_param minor LNCEL t301Guard 100
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL t301Guard = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/SIB-0 t301 == CONST "100ms" ? CONST 90 :

add_param minor LNCEL tempRLFbasedRCRAct false
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL tempRLFbasedRCRAct = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS} actRLFbasedRCR == CONST "true" ? CONST "true" :

dependence_del_param minor LNCEL tempRLFbasedRCRAct false t301Guard
del_param minor LNCEL tempRLFbasedRCRAct

#Please note that parameter t301 and t301Guard have different data types and units.
# If LNBTS-actRLFbasedRCR is set to ‘false’ 
# then do not add any of the new optional parameters during migration.
#Migration of the new optional parameter LNCEL-t301Qci1:
#The new optional parameter LNCEL- t301Qci1 shall not be added during migration.



####################################################################################################################
# LTE4088 LTE-NR Dual Connectivity Option 3X
####################################################################################################################
#OM_LTE_SFS_RNL.20160
#During migration following tasks need to be done, no matter if the BTS serves FDD or TDD cells.
#(1) In MOC /MRBTS/LNBTS 
#	the parameter actLteNrDualConnectivity shall be added with the default value
#	in the qciTab[6...9] the structure members lteNrDualConnectSupport shall be added to those structures with the default value
#	the structure pdcpProf1001 shall be added with all its member set to the default value.
#OM_LTE_SFS_RNL.20344
#During migration following tasks need to be done, no matter if the BTS serves FDD or TDD cells.
#(1) In each instance of MOC /MRBTS/LNBTS/LNCEL where moPrMappingList exists,   
#	the member lteNrDualConnectCapable shall be added with default value.

#actLteNrDualConnectivity and lteNrDualConnectSupport already added
add_list minor LNBTS pdcpProf1001
add_list_item minor LNBTS pdcpProf1001
add_list_param minor LNBTS pdcpProf1001 0 pdcpProfileId 1001
add_list_param minor LNBTS pdcpProf1001 0 snSizeDl 18bit
add_list_param minor LNBTS pdcpProf1001 0 snSizeUl 18bit
add_list_param minor LNBTS pdcpProf1001 0 statusRepReq 0
add_list_param minor LNBTS pdcpProf1001 0 tDiscard 300ms



####################################################################################################################
# LBT5574-D: CRL21949 Include native and overlapping band in Idle Mode Mobility Control
####################################################################################################################
# OM_LTE_SFS_RNL.20518
# Migration of CRL21949 parameters:
#Creation/initialization of new parameters:
#The new optional parameter LNCEL-actMfbiDupFre shall be initialized according following rules:
#For Verizon Wireless networks, i.e.,
#if
#LNBTS-mcc is '311' and
#LNBTS-mnc is '480' and
#LNBTS-mncLength is '3'
#or
#LNBTS-mcc is '312' and
#LNBTS-mnc is '770' and
#LNBTS-mncLength is '3'
#then
#LNCEL-actMfbiDupFre shall be set to 'true'.
#otherwise
#LNCEL-actMfbiDupFre shall be set to 'false'.

#v0.2 false --> False, true --> True
add_param minor LNCEL actMfbiDupFre False
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL actMfbiDupFre = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS} mcc == CONST 311 && PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS} mnc == CONST 480 && PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS} mncLength == CONST 3 ? CONST "True" :
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL actMfbiDupFre = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS} mcc == CONST 312 && PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS} mnc == CONST 770 && PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS} mncLength == CONST 3 ? CONST "True" :
#v0.2 end




###########
# FDD:    #
###########

####################################################################################################################
# LTE4416-A-g: In-Device Coexistence for LAA -- Late Object Model Parameters adjustment for LTE4416-A
####################################################################################################################
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNBTS_FDD/LAA idcLaaScellReleaseTimer = CONST "0" == CONST "0" ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNBTS_FDD-${LNBTS_FDD}/LAA-${LAA} idcLaaScellReleaseTimer / CONST 1000 :







#history:
add_log minor "Conversion from FLF/FLC18_RADIO_1802_001 to FLF/FLC18SP_RADIO_1802_002"