Commit 4b86b6bb authored by Robert Schmidt's avatar Robert Schmidt

Changes to make 7.2 work

parent 10367133
...@@ -112,7 +112,7 @@ NR_gNB_DLSCH_t new_gNB_dlsch(NR_DL_FRAME_PARMS *frame_parms, uint16_t N_RB) ...@@ -112,7 +112,7 @@ NR_gNB_DLSCH_t new_gNB_dlsch(NR_DL_FRAME_PARMS *frame_parms, uint16_t N_RB)
bzero(harq, sizeof(NR_DL_gNB_HARQ_t)); bzero(harq, sizeof(NR_DL_gNB_HARQ_t));
harq->b = malloc16(dlsch_bytes); harq->b = malloc16(dlsch_bytes);
AssertFatal(harq->b, "cannot allocate memory for harq->b\n"); AssertFatal(harq->b, "cannot allocate memory for harq->b\n");
bzero(harq->sdu, dlsch_bytes); //bzero(harq->sdu, dlsch_bytes);
harq->sdu_len = dlsch_bytes; harq->sdu_len = dlsch_bytes;
nr_emulate_dlsch_payload(harq->sdu, (dlsch_bytes) >> 3); nr_emulate_dlsch_payload(harq->sdu, (dlsch_bytes) >> 3);
bzero(harq->b, dlsch_bytes); bzero(harq->b, dlsch_bytes);
......
...@@ -69,5 +69,6 @@ void nr_fill_dlsch_tx_req(processingData_L1tx_t *msgTx, int idx, uint8_t *sdu, u ...@@ -69,5 +69,6 @@ void nr_fill_dlsch_tx_req(processingData_L1tx_t *msgTx, int idx, uint8_t *sdu, u
nfapi_nr_dl_tti_pdsch_pdu *pdsch = &harq->pdsch_pdu; nfapi_nr_dl_tti_pdsch_pdu *pdsch = &harq->pdsch_pdu;
AssertFatal(pdsch->pdsch_pdu_rel15.pduIndex == idx, "PDSCH PDU index %d does not match %d\n", pdsch->pdsch_pdu_rel15.pduIndex, idx); AssertFatal(pdsch->pdsch_pdu_rel15.pduIndex == idx, "PDSCH PDU index %d does not match %d\n", pdsch->pdsch_pdu_rel15.pduIndex, idx);
harq->sdu_len = sdu_len; harq->sdu_len = sdu_len;
AssertFatal(sdu_len <= sizeof(harq->sdu), "buffer too small\n");
memcpy(harq->sdu, sdu, sdu_len); memcpy(harq->sdu, sdu, sdu_len);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment