diff --git a/lib/include/srslte/interfaces/enb_interfaces.h b/lib/include/srslte/interfaces/enb_interfaces.h index fc5129424..f03b6514d 100644 --- a/lib/include/srslte/interfaces/enb_interfaces.h +++ b/lib/include/srslte/interfaces/enb_interfaces.h @@ -188,15 +188,6 @@ public: class phy_interface_mac_lte { public: - /** - * Interface for MAC to add or modify user in the active UE database setting. This function requires a primary cell - * (PCell) index and a list of secondary cells (SCell) for the UE. The elements in the list SCell list must follow the - * UE's SCell indexes order. - * - * @param rnti identifier of the user - * @param pcell_index Primary cell (PCell) index - */ - virtual int add_rnti(uint16_t rnti, uint32_t pcell_index) = 0; /** * Removes an RNTI context from all the physical layer components, including secondary cells diff --git a/srsenb/hdr/phy/phy.h b/srsenb/hdr/phy/phy.h index 598a75f0e..255d68e0e 100644 --- a/srsenb/hdr/phy/phy.h +++ b/srsenb/hdr/phy/phy.h @@ -51,7 +51,6 @@ public: std::string get_type() override { return "lte"; }; /* MAC->PHY interface */ - int add_rnti(uint16_t rnti, uint32_t pcell_index) override; void rem_rnti(uint16_t rnti) final; int pregen_sequences(uint16_t rnti) override; void set_mch_period_stop(uint32_t stop) final; diff --git a/srsenb/src/phy/phy.cc b/srsenb/src/phy/phy.cc index 3c41077fb..48ef3d021 100644 --- a/srsenb/src/phy/phy.cc +++ b/srsenb/src/phy/phy.cc @@ -150,24 +150,6 @@ void phy::stop() } /***** MAC->PHY interface **********/ -int phy::add_rnti(uint16_t rnti, uint32_t pcell_index) -{ - if (SRSLTE_RNTI_ISUSER(rnti)) { - // Create default PHY configuration with the desired PCell index - phy_interface_rrc_lte::phy_rrc_cfg_list_t phy_rrc_dedicated_list(1); - phy_rrc_dedicated_list[0].enb_cc_idx = pcell_index; - - workers_common.ue_db.addmod_rnti(rnti, phy_rrc_dedicated_list); - } - - for (uint32_t i = 0; i < nof_workers; i++) { - if (workers[i].add_rnti(rnti, pcell_index) != SRSLTE_SUCCESS) { - return SRSLTE_ERROR; - } - } - - return SRSLTE_SUCCESS; -} void phy::rem_rnti(uint16_t rnti) { diff --git a/srsenb/src/stack/mac/mac.cc b/srsenb/src/stack/mac/mac.cc index 1cd87cebd..74d97995c 100644 --- a/srsenb/src/stack/mac/mac.cc +++ b/srsenb/src/stack/mac/mac.cc @@ -491,12 +491,6 @@ void mac::rach_detected(uint32_t tti, uint32_t enb_cc_idx, uint32_t preamble_idx // Register new user in RRC rrc_h->add_user(rnti, ue_cfg); - // Add temporal rnti to the PHY - if (phy_h->add_rnti(rnti, enb_cc_idx) != SRSLTE_SUCCESS) { - Error("Registering temporal-rnti=0x%x to PHY\n", rnti); - return; - } - // Trigger scheduler RACH scheduler.dl_rach_info(enb_cc_idx, rar_info);