From 8e48467a3000797b6eaed71bf94e576c43cbceda Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 25 Mar 2021 13:05:43 +0000 Subject: [PATCH] Make sure that meas_report_desc is present if ho_active == true in rr.conf --- srsenb/src/enb_cfg_parser.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srsenb/src/enb_cfg_parser.cc b/srsenb/src/enb_cfg_parser.cc index a704c3a93..cc55e202d 100644 --- a/srsenb/src/enb_cfg_parser.cc +++ b/srsenb/src/enb_cfg_parser.cc @@ -747,6 +747,10 @@ static int parse_cell_list(all_args_t* args, rrc_cfg_t* rrc_cfg, Setting& root) if (cellroot.exists("ho_active") and cellroot["ho_active"]) { HANDLEPARSERCODE(parse_meas_cell_list(&cell_cfg.meas_cfg, cellroot["meas_cell_list"])); + if (not cellroot.exists("meas_report_desc")) { + ERROR("PARSER ERROR: \"ho_active\" is set to true, but field \"meas_report_desc\" doesn't exist.\n"); + return -1; + } HANDLEPARSERCODE(parse_meas_report_desc(&cell_cfg.meas_cfg, cellroot["meas_report_desc"])); }