From f4ed3c48213224914249a27756c2c1da3ee5d4c4 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Mon, 26 Sep 2016 12:56:16 +0200 Subject: [PATCH] dci: added missing flag 1a/1c in pack functions --- srslte/lib/phch/dci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srslte/lib/phch/dci.c b/srslte/lib/phch/dci.c index 3203fc48d..fbe7d6b45 100644 --- a/srslte/lib/phch/dci.c +++ b/srslte/lib/phch/dci.c @@ -648,6 +648,8 @@ int dci_format1As_pack(srslte_ra_dl_dci_t *data, srslte_dci_msg_t *msg, uint32_t fprintf(stderr, "Format 1A accepts type2 resource allocation only\n"); return SRSLTE_ERROR; } + + data->dci_is_1a = true; *y++ = data->type2_alloc.mode; // localized or distributed VRB assignment @@ -719,7 +721,7 @@ int dci_format1As_pack(srslte_ra_dl_dci_t *data, srslte_dci_msg_t *msg, uint32_t *y++ = 0; } msg->nof_bits = (y - msg->data); - + return SRSLTE_SUCCESS; } @@ -878,6 +880,8 @@ int dci_format1Cs_pack(srslte_ra_dl_dci_t *data, srslte_dci_msg_t *msg, uint32_t "Format 1C accepts distributed type2 resource allocation only\n"); return SRSLTE_ERROR; } + + data->dci_is_1c = true; if (nof_prb >= 50) { *y++ = data->type2_alloc.n_gap;