From 97133894e6aefd8e65cfe86920339610cc044cb3 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Fri, 18 Sep 2020 12:31:14 +0200 Subject: [PATCH] the Ocs value used in the measReport triggering decision was not being set correctly. The enum of the cell individual offset in the measCfg was being cast to an int and stored. Instead what we want is to store the actual offset value using the ASN1 enum->number lookup table. --- srsue/src/stack/rrc/rrc_meas.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/srsue/src/stack/rrc/rrc_meas.cc b/srsue/src/stack/rrc/rrc_meas.cc index 7cac8c4a7..d9f28526b 100644 --- a/srsue/src/stack/rrc/rrc_meas.cc +++ b/srsue/src/stack/rrc/rrc_meas.cc @@ -470,7 +470,7 @@ void rrc::rrc_meas::var_meas_cfg::eval_triggers() Ofs = offset_val(serving_obj->second); auto serving_cell_off = find_pci_in_meas_obj(serving_obj->second, serving_pci); if (serving_cell_off != serving_obj->second.cells_to_add_mod_list.end()) { - Ocs = serving_cell_off->cell_individual_offset; + Ocs = serving_cell_off->cell_individual_offset.to_number(); } } @@ -813,7 +813,7 @@ void rrc::rrc_meas::var_meas_cfg::measObject_addmod(const meas_obj_to_add_mod_li log_h->debug("MEAS: cell idx=%d, pci=%d, q_offset=%d\n", c.cell_idx, c.pci, - c.cell_individual_offset.value); + c.cell_individual_offset.to_number()); } } } @@ -882,8 +882,10 @@ void rrc::rrc_meas::var_meas_cfg::measObject_addmod(const meas_obj_to_add_mod_li local_obj.black_cells_to_add_mod_list.size()); if (log_h->get_level() == LOG_LEVEL_DEBUG) { for (auto& c : local_obj.cells_to_add_mod_list) { - log_h->debug( - "MEAS: cell idx=%d, pci=%d, q_offset=%d\n", c.cell_idx, c.pci, c.cell_individual_offset.value); + log_h->debug("MEAS: cell idx=%d, pci=%d, q_offset=%d\n", + c.cell_idx, + c.pci, + c.cell_individual_offset.to_number()); } for (auto& b : local_obj.black_cells_to_add_mod_list) { log_h->debug("MEAS: black-listed cell idx=%d\n", b.cell_idx);