srsue,mac: return temp-rnti for UL grants if availabl

master
Ismael Gomez 3 years ago
parent 711d9e8004
commit 1507eed79c

@ -196,15 +196,15 @@ void cc_worker::decode_pdcch_ul()
}
// Search for grants
int n_dl =
int n_ul =
srsran_ue_dl_nr_find_ul_dci(&ue_dl, &dl_slot_cfg, rnti.id, rnti.type, dci_rx.data(), (uint32_t)dci_rx.size());
if (n_dl < SRSRAN_SUCCESS) {
if (n_ul < SRSRAN_SUCCESS) {
logger.error("Error decoding UL NR-PDCCH");
return;
}
// Iterate over all received grants
for (int i = 0; i < n_dl; i++) {
for (int i = 0; i < n_ul; i++) {
// Log found DCI
if (logger.info.enabled()) {
std::array<char, 512> str;

@ -153,6 +153,10 @@ void mac_nr::update_buffer_states()
mac_interface_phy_nr::sched_rnti_t mac_nr::get_ul_sched_rnti_nr(const uint32_t tti)
{
if (proc_ra.has_temp_crnti() && has_crnti() == false) {
logger.debug("SCHED: Searching temp C-RNTI=0x%x (proc_ra)", proc_ra.get_temp_crnti());
return {proc_ra.get_temp_crnti(), srsran_rnti_type_c};
}
return {rntis.get_crnti(), srsran_rnti_type_c};
}

Loading…
Cancel
Save