From 90beda34a16cfbbdef8bd09645f4230aa0a593c7 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 12 Mar 2020 16:52:17 +0100 Subject: [PATCH] fix parsing of optional field in SIB3 --- srsenb/src/enb_cfg_parser.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srsenb/src/enb_cfg_parser.cc b/srsenb/src/enb_cfg_parser.cc index a2fa3b857..225cfc3ba 100644 --- a/srsenb/src/enb_cfg_parser.cc +++ b/srsenb/src/enb_cfg_parser.cc @@ -1250,10 +1250,9 @@ int parse_sib3(std::string filename, sib_type3_s* data) sib3.add_subsection(&resel_common); resel_common.add_field(make_asn1_enum_number_parser("q_hyst", &data->cell_resel_info_common.q_hyst)); - parser::section speed_resel("speed_state_resel_params"); + speed_resel.set_optional(&data->cell_resel_info_common.speed_state_resel_pars_present); resel_common.add_subsection(&speed_resel); - resel_common.set_optional(&data->cell_resel_info_common.speed_state_resel_pars_present); sib_type3_s::cell_resel_info_common_s_::speed_state_resel_pars_s_* resel_pars = &data->cell_resel_info_common.speed_state_resel_pars;