From f571d46cf83c8a59075d0356d503a86ad78c64fd Mon Sep 17 00:00:00 2001 From: Matan Perelman Date: Sun, 22 May 2022 16:38:32 +0300 Subject: [PATCH] enb,cfg_parser: Add GERAN speed state scale factors --- srsenb/sib.conf.example | 3 +++ srsenb/src/enb_cfg_parser.cc | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/srsenb/sib.conf.example b/srsenb/sib.conf.example index 0d4e60aa4..7ca5dafba 100644 --- a/srsenb/sib.conf.example +++ b/srsenb/sib.conf.example @@ -143,6 +143,9 @@ sib3 = # Must be added to sib1::sched_info::si_mapping_info array parameter to be transmitted # # t_resel_geran: Cell reselection timer (seconds) +# t_resel_geran_sf: Optional speed dependent ScalingFactor for t_resel_geran. +# sf_medium: Scaling factor if the UE is in Medium Mobility state, one of "0.25", "0.5", "0.75" or "1.0". +# sf_high: Scaling factor if the UE is in High Mobility state, one of "0.25", "0.5", "0.75" or "1.0". # carrier_freqs_info_list: A list of carrier frequency groups. # cell_resel_prio: Absolute priority of the carrier frequency group # ncc_permitted: 8-bit bitmap of NCC carriers permitted for monitoring diff --git a/srsenb/src/enb_cfg_parser.cc b/srsenb/src/enb_cfg_parser.cc index d8f372eb3..7f4f1f303 100644 --- a/srsenb/src/enb_cfg_parser.cc +++ b/srsenb/src/enb_cfg_parser.cc @@ -2236,7 +2236,13 @@ int parse_sib7(std::string filename, sib_type7_s* data) parser::section sib7("sib7"); sib7.add_field(new parser::field("t_resel_geran", &data->t_resel_geran)); - // TODO: t_resel_geran_sf + + parser::section t_resel_geran_sf("t_resel_geran_sf"); + sib7.add_subsection(&t_resel_geran_sf); + t_resel_geran_sf.set_optional(&data->t_resel_geran_sf_present); + + t_resel_geran_sf.add_field(make_asn1_enum_number_str_parser("sf_medium", &data->t_resel_geran_sf.sf_medium)); + t_resel_geran_sf.add_field(make_asn1_enum_number_str_parser("sf_high", &data->t_resel_geran_sf.sf_high)); data->carrier_freqs_info_list_present = true; parser::section geran_neigh("carrier_freqs_info_list");