From b259dbedb1b385eb21c6522ccbfcfd4803473551 Mon Sep 17 00:00:00 2001 From: Carlo Galiotto Date: Fri, 4 Feb 2022 19:05:34 +0100 Subject: [PATCH] enb: tentative fix for ubuntu18.04 compile error Signed-off-by: Carlo Galiotto --- srsenb/src/enb_cfg_parser.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srsenb/src/enb_cfg_parser.cc b/srsenb/src/enb_cfg_parser.cc index aa1b17655..343376f34 100644 --- a/srsenb/src/enb_cfg_parser.cc +++ b/srsenb/src/enb_cfg_parser.cc @@ -1090,9 +1090,9 @@ static int parse_nr_cell_list(all_args_t* args, rrc_nr_cfg_t* rrc_cfg_nr, rrc_cf if (it->ul_arfcn != 0) { // Check if ul_arfcn is valid for the given band bool ul_arfcn_valid = false; - std::vector bands = band_helper.get_bands_nr(it->ul_arfcn); - for (uint32_t band_idx = 0; band_idx < bands.size(); band_idx++) { - if (bands.at(band_idx) == it->band) { + std::vector ul_bands = band_helper.get_bands_nr(it->ul_arfcn); + for (uint32_t band_idx = 0; band_idx < ul_bands.size(); band_idx++) { + if (ul_bands.at(band_idx) == it->band) { ul_arfcn_valid = true; } }