|
|
|
@ -234,12 +234,12 @@ int srslte_enb_dl_put_pdcch_dl(srslte_enb_dl_t *q, srslte_ra_dl_dci_t *grant,
|
|
|
|
|
uint16_t rnti = srslte_pdsch_get_rnti_multi(&q->pdsch, rnti_idx);
|
|
|
|
|
|
|
|
|
|
bool rnti_is_user = true;
|
|
|
|
|
if (rnti == SRSLTE_SIRNTI || rnti == SRSLTE_PRNTI || rnti == SRSLTE_MRNTI) {
|
|
|
|
|
if (rnti == SRSLTE_SIRNTI || rnti == SRSLTE_PRNTI || (rnti >= SRSLTE_RARNTI_START && rnti <= SRSLTE_RARNTI_END)) {
|
|
|
|
|
rnti_is_user = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//srslte_ra_pdsch_fprint(stdout, grant, q->cell.nof_prb);
|
|
|
|
|
srslte_dci_msg_pack_pdsch(grant, &dci_msg, format, q->cell.nof_prb, rnti_is_user);
|
|
|
|
|
//srslte_vec_fprint_hex(stdout, dci_msg.data, dci_msg.nof_bits);
|
|
|
|
|
if (srslte_pdcch_encode(&q->pdcch, &dci_msg, location, rnti, q->sf_symbols, sf_idx, q->cfi)) {
|
|
|
|
|
fprintf(stderr, "Error encoding DCI message\n");
|
|
|
|
|
return SRSLTE_ERROR;
|
|
|
|
|