From d95d0e2e7a9c7f49694215c54040837b93ac9fd7 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Sat, 7 Jul 2018 11:12:28 +0200 Subject: [PATCH] Fix issue #179 in master --- srsenb/src/upper/rrc.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/srsenb/src/upper/rrc.cc b/srsenb/src/upper/rrc.cc index 3a9bbd0f2..2e481ce6e 100644 --- a/srsenb/src/upper/rrc.cc +++ b/srsenb/src/upper/rrc.cc @@ -1853,11 +1853,7 @@ int rrc::ue::sr_allocate(uint32_t period, uint32_t *I_sr, uint32_t *N_pucch_sr) return -1; } if (parent->cfg.sr_cfg.sf_mapping[j_min] < period) { - if (period > 5) { - *I_sr = period - 5 + parent->cfg.sr_cfg.sf_mapping[j_min]; - } else { - *I_sr = period + parent->cfg.sr_cfg.sf_mapping[j_min]; - } + *I_sr = period - 5 + parent->cfg.sr_cfg.sf_mapping[j_min]; } else { parent->rrc_log->error("Allocating SR: invalid sf_idx=%d for period=%d\n", parent->cfg.sr_cfg.sf_mapping[j_min], period); return -1;