From f185272367852614f6c3f456660697c5b9512c4f Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Fri, 9 Oct 2020 14:20:55 +0100 Subject: [PATCH] added comments explaining the meaning of the cell reselection procedures --- srsue/hdr/stack/rrc/rrc_procedures.h | 1 + srsue/src/stack/rrc/rrc.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/srsue/hdr/stack/rrc/rrc_procedures.h b/srsue/hdr/stack/rrc/rrc_procedures.h index bdef71168..ccb370831 100644 --- a/srsue/hdr/stack/rrc/rrc_procedures.h +++ b/srsue/hdr/stack/rrc/rrc_procedures.h @@ -263,6 +263,7 @@ private: class rrc::cell_reselection_proc { public: + /// Timer duration to restart Cell Reselection Procedure const static uint32_t cell_reselection_periodicity_ms = 20, cell_reselection_periodicity_long_ms = 1000; cell_reselection_proc(rrc* rrc_); diff --git a/srsue/src/stack/rrc/rrc.cc b/srsue/src/stack/rrc/rrc.cc index 1f346050d..8b5acd2e8 100644 --- a/srsue/src/stack/rrc/rrc.cc +++ b/srsue/src/stack/rrc/rrc.cc @@ -471,7 +471,7 @@ void rrc::in_sync() // Cell selection criteria Section 5.2.3.2 of 36.304 bool rrc::cell_selection_criteria(float rsrp, float rsrq) { - return std::isnormal(rsrp) and (meas_cells.serving_cell().has_sib3() and get_srxlev(rsrp) > 0); + return std::isnormal(rsrp) and meas_cells.serving_cell().has_sib3() and get_srxlev(rsrp) > 0; } float rrc::get_srxlev(float Qrxlevmeas)