fix minor issues

master
Ismael Gomez 3 years ago
parent 7920e084b8
commit 6bdefa33e4

@ -784,7 +784,7 @@ int phy_ue_db::set_ul_grant_available(uint32_t tti, const stack_interface_phy_lt
// Check that eNb Cell/Carrier is active for the given RNTI // Check that eNb Cell/Carrier is active for the given RNTI
if (_assert_active_enb_cc(rnti, enb_cc_idx) != SRSRAN_SUCCESS) { if (_assert_active_enb_cc(rnti, enb_cc_idx) != SRSRAN_SUCCESS) {
ret = SRSRAN_ERROR; ret = SRSRAN_ERROR;
srslog::fetch_basic_logger("RRC-NR").error("Error setting grant for rnti=0x%x, cc=%d\n", rnti, enb_cc_idx); srslog::fetch_basic_logger("PHY").error("Error setting grant for rnti=0x%x, cc=%d\n", rnti, enb_cc_idx);
continue; continue;
} }
// Rise Grant available flag // Rise Grant available flag

@ -216,10 +216,7 @@ int mac::ue_rem(uint16_t rnti)
int mac::ue_set_crnti(uint16_t temp_crnti, uint16_t crnti, const sched_interface::ue_cfg_t& cfg) int mac::ue_set_crnti(uint16_t temp_crnti, uint16_t crnti, const sched_interface::ue_cfg_t& cfg)
{ {
srsran::rwlock_read_guard lock(rwlock); srsran::rwlock_read_guard lock(rwlock);
if (temp_crnti != crnti) { if (temp_crnti == crnti) {
// if C-RNTI is changed, it corresponds to older user. Handover scenario.
// ue_db[crnti]->reset();
} else {
// Schedule ConRes Msg4 // Schedule ConRes Msg4
scheduler.dl_mac_buffer_state(crnti, (uint32_t)srsran::dl_sch_lcid::CON_RES_ID); scheduler.dl_mac_buffer_state(crnti, (uint32_t)srsran::dl_sch_lcid::CON_RES_ID);
} }

Loading…
Cancel
Save