refactor,sched: fix log lines related with meas gap collisions

master
Francisco 4 years ago committed by Francisco Paisana
parent a51f2a1de4
commit 51c9fc514d

@ -645,12 +645,22 @@ alloc_result sf_sched::alloc_phich(sched_ue* user)
if (not user->phich_enabled(get_tti_rx(), cc_cfg->enb_cc_idx)) {
// PHICH falls in measGap. PHICH hi=1 is assumed by UE. In case of NACK, the HARQ is going to be resumed later on.
logger.info(
"SCHED: UL skipped retx rnti=0x%x, pid=%d. Cause: PHICH-measGap collision", user->get_rnti(), h->get_id());
h->pop_pending_phich(); // empty pending PHICH
bool ack = h->pop_pending_phich(); // empty pending PHICH
if (h->is_empty(0)) {
logger.debug("SCHED: PHICH hi=%d not sent for rnti=0x%x, cc=%d, pid=%d. Cause: PHICH-measGap collision",
(int)ack,
user->get_rnti(),
get_enb_cc_idx(),
h->get_id());
} else {
// Note: Given that the UE assumes PHICH hi=1, it is not expecting PUSCH grants for tti_tx_ul. Requesting PDCCH
// for the UL Harq has the effect of forbidding PUSCH grants, since phich_tti == pdcch_tti.
h->request_pdcch();
logger.info("SCHED: UL skipped retx rnti=0x%x, cc=%d, pid=%d. Cause: PHICH-measGap collision",
user->get_rnti(),
get_enb_cc_idx(),
h->get_id());
}
return alloc_result::no_cch_space;
}

@ -250,6 +250,7 @@ bool ue_cell_ded_list::alloc_cell_resources(uint32_t ue_cc_idx)
}
}
}
logger.info("Setup measurement gap period=%d offset=%d", cell->meas_gap_period, cell->meas_gap_offset);
}
} else {
if (ue_cc_idx == 1 and not n_pucch_cs_present) {

Loading…
Cancel
Save