added check for cfi in srslte_ue_dl_find_ul_dci

master
Ismael Gomez 8 years ago
parent b795a22f6a
commit 0dd24e32df

@ -65,7 +65,7 @@ int srslte_dci_msg_to_dl_grant(srslte_dci_msg_t *msg, uint16_t msg_rnti,
//srslte_dci_format_t tmp = msg->format; //srslte_dci_format_t tmp = msg->format;
ret = srslte_dci_msg_unpack_pdsch(msg, dl_dci, nof_prb, nof_ports, crc_is_crnti); ret = srslte_dci_msg_unpack_pdsch(msg, dl_dci, nof_prb, nof_ports, crc_is_crnti);
if (ret) { if (ret) {
//fprintf(stderr, "Can't unpack DCI message %s (%d)\n", srslte_dci_format_string(tmp), tmp); fprintf(stderr, "Can't unpack DCI message %s (%d)\n", srslte_dci_format_string(msg->format), msg->format);
return ret; return ret;
} }

@ -376,7 +376,7 @@ static int dci_blind_search(srslte_ue_dl_t *q, dci_blind_search_t *search_space,
int srslte_ue_dl_find_ul_dci(srslte_ue_dl_t *q, uint32_t cfi, uint32_t sf_idx, uint16_t rnti, srslte_dci_msg_t *dci_msg) int srslte_ue_dl_find_ul_dci(srslte_ue_dl_t *q, uint32_t cfi, uint32_t sf_idx, uint16_t rnti, srslte_dci_msg_t *dci_msg)
{ {
if (rnti) { if (rnti && cfi > 1 && cfi < 4) {
/* Do not search if an UL DCI is already pending */ /* Do not search if an UL DCI is already pending */
if (q->pending_ul_dci_rnti == rnti) { if (q->pending_ul_dci_rnti == rnti) {
q->pending_ul_dci_rnti = 0; q->pending_ul_dci_rnti = 0;

Loading…
Cancel
Save