account for all exit points

This commit is contained in:
Francisco Paisana 2020-03-16 10:28:42 +00:00 committed by Francisco Paisana
parent 854211496b
commit eb20f651b9
1 changed files with 2 additions and 0 deletions

View File

@ -490,6 +490,7 @@ void mac::rach_detected(uint32_t tti, uint32_t enb_cc_idx, uint32_t preamble_idx
ue_cfg.dl_cfg.tm = SRSLTE_TM1;
if (scheduler.ue_cfg(rnti, ue_cfg) != SRSLTE_SUCCESS) {
Error("Registering new user rnti=0x%x to SCHED\n", rnti);
rach_tprof.stop(tprof_id);
return;
}
@ -499,6 +500,7 @@ void mac::rach_detected(uint32_t tti, uint32_t enb_cc_idx, uint32_t preamble_idx
// Add temporal rnti to the PHY
if (phy_h->add_rnti(rnti, enb_cc_idx, true) != SRSLTE_SUCCESS) {
Error("Registering temporal-rnti=0x%x to PHY\n", rnti);
rach_tprof.stop(tprof_id);
return;
}