From 2c7287e4d454e978abfed479ae8de53490113779 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Tue, 11 Jan 2022 10:50:05 +0100 Subject: [PATCH] Fix successful related typos --- lib/include/srsran/interfaces/ue_nr_interfaces.h | 6 +++--- srsue/src/phy/sync_sa.cc | 4 ++-- test/phy/nr_phy_test.cc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/include/srsran/interfaces/ue_nr_interfaces.h b/lib/include/srsran/interfaces/ue_nr_interfaces.h index e78e2655a..1f3f907f5 100644 --- a/lib/include/srsran/interfaces/ue_nr_interfaces.h +++ b/lib/include/srsran/interfaces/ue_nr_interfaces.h @@ -50,9 +50,9 @@ public: */ struct cell_select_result_t { enum { - ERROR = 0, ///< The cell selection procedure failed due a to an invalid configuration - UNSUCCESFUL, ///< The cell selection failed to find and synchronise the SSB - SUCCESFUL, ///< The cell selection was succesful, resulting in a camping state + ERROR = 0, ///< The cell selection procedure failed due a to an invalid configuration + UNSUCCESSFUL, ///< The cell selection failed to find and synchronise the SSB + SUCCESSFUL, ///< The cell selection was successful, resulting in a camping state } status; }; diff --git a/srsue/src/phy/sync_sa.cc b/srsue/src/phy/sync_sa.cc index 2a9d297f8..a73c02dfc 100644 --- a/srsue/src/phy/sync_sa.cc +++ b/srsue/src/phy/sync_sa.cc @@ -187,10 +187,10 @@ rrc_interface_phy_nr::cell_select_result_t sync_sa::cell_select_run(const phy_in // Determine if the procedure was successful if the current state is camping, otherwise it is unsuccessful if (phy_state.is_camping()) { logger.info("Cell Select: SFN synchronized. CAMPING..."); - result.status = rrc_interface_phy_nr::cell_select_result_t::SUCCESFUL; + result.status = rrc_interface_phy_nr::cell_select_result_t::SUCCESSFUL; } else { logger.info("Cell Select: Could not synchronize SFN"); - result.status = rrc_interface_phy_nr::cell_select_result_t::UNSUCCESFUL; + result.status = rrc_interface_phy_nr::cell_select_result_t::UNSUCCESSFUL; } rrc_proc_state = PROC_IDLE; diff --git a/test/phy/nr_phy_test.cc b/test/phy/nr_phy_test.cc index 843121ef0..2d163128e 100644 --- a/test/phy/nr_phy_test.cc +++ b/test/phy/nr_phy_test.cc @@ -230,7 +230,7 @@ int main(int argc, char** argv) // Start cell selection procedure srsue::rrc_interface_phy_nr::cell_select_result_t cs_res = tb.run_cell_select(args.phy_cfg.carrier, args.phy_cfg.get_ssb_cfg()); - srsran_assert(cs_res.status == srsue::rrc_interface_phy_nr::cell_select_result_t::SUCCESFUL, + srsran_assert(cs_res.status == srsue::rrc_interface_phy_nr::cell_select_result_t::SUCCESSFUL, "Failed to perform cell selection"); // Run per TTI basis