####################################
## SCFD file version: 0.8         ##
## PDDB version: TL16_1509_006    ##
####################################

#General checking for rule file execution
check_version minor TL16A

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

#v0.2 change for TL16_1509_005 NSNIDD
################################################################################################
# PR082196: [LTE1559][TL15A P8 regression FSMF]mimimum value of sctpMaxPayloadSize 471 is incorrect
################################################################################################
#  sctpMaxPayloadSize Min value changed from 471 to 512

check_param_value minor SCTP sctpMaxPayloadSize 512 1468

################################################################################################
# LTE2060 Addition or replacement of radios without site outage
################################################################################################
# LNBTS planFileActivationMode value "partialServicLossAllowed" needs to be replaced with "partialServiceLossAllowed"

dependence_mod_param minor LNBTS planFileActivationMode partialServicLossAllowed planFileActivationMode partialServiceLossAllowed

#v0.2 change for TL16_1509_005 NSNIDD END

#v0.3 change for TL16_1509_006 NSNIDD
################################################################################################
# PR077422: [FL16] LN7.0 - FL16 SW Upgrade, parameter gnssCableLength, gnssLineDelay missing when btsSyncMode is PhaseSync
################################################################################################
# parameter actGpsOutputLnaPowerSupply replaced by actGnssOutputLnaPowerSupply

rename_param minor GNSSI actGpsOutputLnaPowerSupply actGnssOutputLnaPowerSupply

################################################################################################
# PR084565: [LBT3187] Inconsistencies in names, default values and value ranges of new PDDB parameters ttibOperMode, ttiBundlingSinrThresholdIn and Out
################################################################################################
check_param_value minor LNCEL ttibSinrThresholdOut -8 76

#v0.3 change for TL16_1509_006 NSNIDD END

#v0.4
################################################################################################
# PR093411: [TL16 OBSAI-FSIH]: eIcicMp0DelayT and eIcicAbsPatChangeDelayT missing after offline migration from TL15A to TL16
# LTE1130 
################################################################################################
#Migration of parameters LNCEL-eIcicMp0DelayT and LNCEL-eIcicAbsPatChangeDelayT
# If in FL15A configuration the following parameter are set as defined below:
## LNCEL-actEicic is set to 'true'
## LNCEl-cellType is set to 'large'

## Following parameter migration is needed for each LNCEL instance if the above mentioned condition is satisfied AND those are NOT in the base configuration.

## 1) LNCEL-eIcicMp0DelayT 
## eIcicMp0DelayT for all those cells shall be set to the default value "10".

## 2) LNCEL-eIcicAbsPatChangeDelayT 
## eIcicAbsPatChangeDelayT for all those cells shall be set to the default value "50". //v0.5, default value changed.

add_param minor LNCEL tempReference false
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL tempReference = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} actEicic == CONST "true" && PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} cellType == CONST "large" ? CONST "true" :
#v0.6, added eIcicAbsAdaptationBeta:
#v0.7: changed tab to space before value:
dependence_add_param_based_on_string minor MRBTS/LNBTS/LNCEL tempReference true eIcicAbsAdaptationBeta 10
dependence_add_param_based_on_string minor MRBTS/LNBTS/LNCEL tempReference true eIcicMp0DelayT 10
#v0.5, default value changed to 50:
dependence_add_param_based_on_string minor MRBTS/LNBTS/LNCEL tempReference true eIcicAbsPatChangeDelayT 50

del_param minor LNCEL tempReference

#end ofv0.4###################################################################################

#v0.8 change for FL16_1509_009 NSNIDD
################################################################################################
#NA05840881: [FL15A][LGU+ DVT]No PDCCH Order transmitted before out of sync final
################################################################################################
# SFS_RNL.15497 and SFS_RNL.15495
#If configured in TL15A, parameter LNCEL-qci1ProtectionTimer must be migrated before LNCEL-inactivityTimer is migrated, 
#because in this case the migration of LNCEL-inactivityTimer is dependent on the value setting of LNCEL-qci1ProtectionTimer.

#LNCEL-qci1protectionTimer has to be migrated in order to adjust the value range of LNCEL-qci1ProtectionTimer to the new value range 2...180 sec.
#This new value range is necessary in order to adjust LNCEL-qci1ProtectionTimer value range to the new value range of LNCEL-inactivityTimer.
#If LNCEL-qci1ProtectionTimer has value '0' or '1' in previous release, then set LNCEL-qci1ProtectionTimer to new value '2', because values '0' and '1' are not allowed anymore.

dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL qci1ProtectionTimer = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} qci1ProtectionTimer == CONST "0" || PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} qci1ProtectionTimer == CONST "1" ? CONST "2" :

#LNCEL-inactivityTimer: Due to CRL9624, LNCEL-inactivityTimer gets new value range 1...65535 in TL16. 

#If LNCEL-inactivityTimer has value '0' in previous release and LNCEL-qci1ProtectionTimer is configured, 
#then set LNCEL-inactivityTimer to 'LNCEL-qci1ProtectionTimer - 1'.

add_param minor LNCEL tempConfigured false
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL tempConfigured = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} qci1ProtectionTimer < CONST "181" ? CONST "true" :
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL inactivityTimer = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} inactivityTimer == CONST "0" && PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} tempConfigured == CONST "true" ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} qci1ProtectionTimer - CONST "1" :

#Otherwise, if LNCEL-inactivityTimer has value '0' in previous release and LNCEL-qci1ProtectionTimer is not configured, 
#then set LNCEL-inactivityTimer to '65535'.

dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL inactivityTimer = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} inactivityTimer == CONST "0" && PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} tempConfigured == CONST "false" ? CONST "65535" :

del_param minor LNCEL tempConfigured

################################################################################################
# LTE2438
################################################################################################

del_param minor GNSSI gnssAntennaAltitudeConf
del_param minor GNSSI gnssAntennaLatitudeConf
del_param minor GNSSI gnssAntennaLongitudeConf

################################################################################################
# PR093811: TL16_FSIH_LTE1541-B:Maximum value of scellGoodChQualThr is smaller than maximum value of scellBadChQualThr
################################################################################################

check_param_value minor LNCEL scellBadChQualThr 1 27
check_param_value minor LNCEL scellNotDetectableThr 0 27
check_param_value minor LNCEL scellGoodChQualThr 1 27

#end of v0.8 for FL16_1509_009 NSNIDD ##########################################################

###########
# TDD:    #
###########


#version
set_version major TL16

#history:
add_log minor "Conversion from TL16 FB15.09 (003) to TL16 FB15.09 (006)"