From 68ec3eaba016d4b7784ddf1996ef56814464e1de Mon Sep 17 00:00:00 2001 From: Francisco Date: Fri, 26 Nov 2021 16:00:29 +0000 Subject: [PATCH] nr,gnb,rrc: remove obsolete TODO comment and set default rrc inactivity timeout --- srsgnb/hdr/stack/rrc/rrc_nr_config.h | 2 +- srsgnb/src/stack/rrc/rrc_nr_ue.cc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/srsgnb/hdr/stack/rrc/rrc_nr_config.h b/srsgnb/hdr/stack/rrc/rrc_nr_config.h index 11c4873f1..3e289ac4c 100644 --- a/srsgnb/hdr/stack/rrc/rrc_nr_config.h +++ b/srsgnb/hdr/stack/rrc/rrc_nr_config.h @@ -51,7 +51,7 @@ struct rrc_nr_cfg_t { rrc_nr_cfg_sr_t sr_cfg; rrc_cfg_cqi_t cqi_cfg; rrc_cell_list_nr_t cell_list; - uint32_t inactivity_timeout_ms; + uint32_t inactivity_timeout_ms = 100000; bool is_standalone; std::array nea_preference_list; diff --git a/srsgnb/src/stack/rrc/rrc_nr_ue.cc b/srsgnb/src/stack/rrc/rrc_nr_ue.cc index 7c35f2392..00a25860e 100644 --- a/srsgnb/src/stack/rrc/rrc_nr_ue.cc +++ b/srsgnb/src/stack/rrc/rrc_nr_ue.cc @@ -58,7 +58,6 @@ void rrc_nr::ue::set_activity_timeout(activity_timeout_type_t type) deadline_ms = 5000; break; case UE_INACTIVITY_TIMEOUT: - // TODO: Retrieve the parameters from somewhere(RRC?) - Currently hardcoded to 5s deadline_ms = parent->cfg.inactivity_timeout_ms; break; default: