fix 2 bugs: one new introduced by merge develop, one introduced by extra change asked in code review
This commit is contained in:
@@ -87,7 +87,7 @@ if ((Kprime%Kb) > 0)
|
||||
else
|
||||
Z = (Kprime/Kb);
|
||||
|
||||
LOG_D(PHY,"nr segmetation B %u Bprime %u Kprime %u z %u \n", B, Bprime, Kprime, Z);
|
||||
LOG_D(PHY,"nr segmentation B %u Bprime %u Kprime %u z %u \n", B, Bprime, Kprime, Z);
|
||||
|
||||
if (Z <= 2) {
|
||||
*K = 2;
|
||||
|
||||
@@ -357,8 +357,10 @@ void downlink_harq_process(NR_DL_UE_HARQ_t *dl_harq, int harq_pid, int ndi, int
|
||||
if (ndi!=dl_harq->DCINdi) {
|
||||
dl_harq->first_rx = true;
|
||||
dl_harq->DLround = 0;
|
||||
} else
|
||||
} else {
|
||||
dl_harq->first_rx = false;
|
||||
dl_harq->DLround++;
|
||||
}
|
||||
|
||||
dl_harq->status = ACTIVE;
|
||||
|
||||
|
||||
@@ -478,13 +478,10 @@ int main(int argc, char **argv)
|
||||
harq_process->n_dmrs_cdm_groups = 1;
|
||||
printf("harq process ue mcs = %d Qm = %d, symb %d\n", harq_process->mcs, harq_process->Qm, nb_symb_sch);
|
||||
|
||||
unsigned char *test_input;
|
||||
test_input = (unsigned char *) malloc16(sizeof(unsigned char) * TBS / 8);
|
||||
unsigned char *test_input=dlsch->harq_process.pdu;
|
||||
//unsigned char test_input[TBS / 8] __attribute__ ((aligned(16)));
|
||||
for (i = 0; i < TBS / 8; i++)
|
||||
test_input[i] = (unsigned char) rand();
|
||||
dlsch->harq_process.pdu=test_input;
|
||||
//estimated_output = harq_process->b;
|
||||
|
||||
#ifdef DEBUG_NR_DLSCHSIM
|
||||
for (i = 0; i < TBS / 8; i++) printf("test_input[i]=%hhu \n",test_input[i]);
|
||||
@@ -618,8 +615,6 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}*/
|
||||
|
||||
//free(test_input); it must not be free as it is in DLSCH_struct -> free_gNB_dlsch () -> free(harq->pdu) with no checks or control
|
||||
|
||||
free_channel_desc_scm(gNB2UE);
|
||||
|
||||
reset_DLSCH_struct(gNB, &msgDataTx);
|
||||
|
||||
Reference in New Issue
Block a user