Fixed test failing

master
Ismael Gomez 8 years ago
parent d80146e657
commit 64f90bbe4c

@ -201,9 +201,9 @@ uint32_t srslte_pdcch_ue_locations_ncce(uint32_t nof_cce, srslte_dci_location_t
L = (1 << l);
// For all possible ncce offset
for (i = 0; i < M[l]; i++) {
if (nof_cce > L) {
ncce = L * ((Yk + i) % (nof_cce / L));
if (k < max_candidates &&
ncce + PDCCH_FORMAT_NOF_CCE(l) <= nof_cce)
if (k < max_candidates && ncce + L <= nof_cce)
{
c[k].L = l;
c[k].ncce = ncce;
@ -215,6 +215,7 @@ uint32_t srslte_pdcch_ue_locations_ncce(uint32_t nof_cce, srslte_dci_location_t
}
}
}
}
DEBUG("Initiated %d candidate(s) in the UE-specific search space for C-RNTI: 0x%x\n", k, rnti);
@ -245,9 +246,9 @@ uint32_t srslte_pdcch_common_locations_ncce(uint32_t nof_cce, srslte_dci_locatio
for (l = 3; l > 1; l--) {
L = (1 << l);
for (i = 0; i < M[l]; i++) {
if (nof_cce > L) {
uint32_t ncce = L * (i % (nof_cce / L));
if (k < max_candidates &&
ncce + PDCCH_FORMAT_NOF_CCE(l) <= nof_cce)
if (k < max_candidates && ncce + L <= nof_cce)
{
c[k].L = l;
c[k].ncce = ncce;
@ -257,6 +258,7 @@ uint32_t srslte_pdcch_common_locations_ncce(uint32_t nof_cce, srslte_dci_locatio
}
}
}
}
INFO("Initiated %d candidate(s) in the Common search space\n", k);

Loading…
Cancel
Save