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

Workaround: avoid error

Assertion (A == harq->sdu_len * 8) failed!
In nr_dlsch_encoding() /home/eurecom/robert/nfapi-fixes-rebased-demo/openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c:276
A 540776 bits sdu_len 2061 bytes 16488 bits

Assertion (A == harq->sdu_len * 8) failed!
In nr_dlsch_encoding() /home/eurecom/robert/nfapi-fixes-rebased-demo/openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c:276
A 540776 bits sdu_len 2061 bytes 16488 bits
parent 17fcb684
...@@ -273,7 +273,7 @@ int nr_dlsch_encoding(PHY_VARS_gNB *gNB, ...@@ -273,7 +273,7 @@ int nr_dlsch_encoding(PHY_VARS_gNB *gNB,
impp.Zc = harq->Z; impp.Zc = harq->Z;
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_gNB_DLSCH_ENCODING, VCD_FUNCTION_IN); VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_gNB_DLSCH_ENCODING, VCD_FUNCTION_IN);
uint32_t A = rel15->TBSize[0]<<3; uint32_t A = rel15->TBSize[0]<<3;
AssertFatal(A == harq->sdu_len * 8, "A %d bits sdu_len %d bytes %d bits\n", A, harq->sdu_len, harq->sdu_len * 8); AssertError(A == harq->sdu_len * 8, return -1, "A %d bits sdu_len %d bytes %d bits\n", A, harq->sdu_len, harq->sdu_len * 8);
unsigned char *a=harq->sdu; unsigned char *a=harq->sdu;
if (rel15->rnti != SI_RNTI) if (rel15->rnti != SI_RNTI)
trace_NRpdu(DIRECTION_DOWNLINK, a, rel15->TBSize[0], WS_C_RNTI, rel15->rnti, frame, slot,0, 0); trace_NRpdu(DIRECTION_DOWNLINK, a, rel15->TBSize[0], WS_C_RNTI, rel15->rnti, frame, slot,0, 0);
......
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