Remove duplicate add_rnti() function since already done in set_config

This commit is contained in:
Ismael Gomez 2020-07-26 22:39:47 +02:00 committed by Xavier Arteaga
parent c02e920b6b
commit dda91b14f7
4 changed files with 0 additions and 34 deletions

View File

@ -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

View File

@ -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;

View File

@ -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)
{

View File

@ -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);