updated allocate crnti method in mac to accoutn for new phy interface

master
Francisco Paisana 4 years ago
parent 26f46ea067
commit 3eb1b83a43

@ -469,15 +469,6 @@ uint16_t mac::reserve_new_crnti(const sched_interface::ue_cfg_t& ue_cfg)
return SRSLTE_INVALID_RNTI;
}
// Register new user in RRC
rrc_h->add_user(rnti, ue_cfg);
// Add temporal rnti to the PHY
if (phy_h->add_rnti(rnti, ue_cfg.supported_cc_list[0].enb_cc_idx) != SRSLTE_SUCCESS) {
Error("Registering c-rnti=0x%x to PHY\n", rnti);
return SRSLTE_INVALID_RNTI;
}
// Allocate one new UE object in advance
prealloc_ue(1);
return rnti;

@ -484,7 +484,9 @@ uint16_t rrc::enb_mobility_handler::start_ho_ue_resource_alloc(
return SRSLTE_INVALID_RNTI;
}
/* Allocate C-RNTI */
/* Create new User */
// Allocate C-RNTI in MAC
sched_interface::ue_cfg_t ue_cfg = {};
ue_cfg.supported_cc_list.resize(1);
ue_cfg.supported_cc_list[0].active = true;
@ -497,6 +499,9 @@ uint16_t rrc::enb_mobility_handler::start_ho_ue_resource_alloc(
return SRSLTE_INVALID_RNTI;
}
// Register new user in RRC
rrc_ptr->add_user(rnti, ue_cfg);
// /* Setup e-RABs & DRBs / establish an UL/DL S1 bearer to the S-GW */
// if (not setup_ue_erabs(rnti, msg)) {
// rrc_ptr->rrc_log->error("Failed to setup e-RABs for rnti=0x%x\n", );

Loading…
Cancel
Save