LOG_E(PHY,"Fatal error in HARQ entity due to unknown process identity %d at line %d in function %s of file %s \n",harq_pid,__LINE__,__func__,__FILE__);
...
...
@@ -258,7 +294,7 @@ harq_result_t uplink_harq_process(NR_UE_ULSCH_t *ulsch, int harq_pid, int ndi, n
}
/* 38.321 5.4.2.1 2> if the uplink grant was received on PDCCH for the C-RNTI and the HARQ buffer of the identified process is empty */
if((ulsch->harq_processes[harq_pid]->first_tx==1)&&(rnti_type==C_RNTI_NR)){/* no transmission yet on this process so consider its harq buffer as empty */
if((ulsch->harq_processes[harq_pid]->first_tx==1)&&(rnti_type==_C_RNTI_)){/* no transmission yet on this process so consider its harq buffer as empty */
ulsch->harq_processes[harq_pid]->first_tx=0;
ulsch->harq_processes[harq_pid]->DCINdi=ndi;/* store first value of ndi */
ulsch->harq_processes[harq_pid]->round=0;
...
...
@@ -270,7 +306,7 @@ harq_result_t uplink_harq_process(NR_UE_ULSCH_t *ulsch, int harq_pid, int ndi, n
}
/* 38.321 5.4.2.1 2> if the received grant was not addressed to a Temporary C-RNTI on PDCCH, and the NDI provided in the associated HARQ */
/* information has been toggled compared to the value in the previous transmission of this TB of this HARQ process */
elseif((ulsch->harq_processes[harq_pid]->DCINdi!=ndi)&&(rnti_type!=Temporary_C_RNTI_NR)){/* is ndi toogled so this is a new grant ? */
elseif((ulsch->harq_processes[harq_pid]->DCINdi!=ndi)&&(rnti_type!=_TC_RNTI_)){/* is ndi toogled so this is a new grant ? */
ulsch->harq_processes[harq_pid]->DCINdi=ndi;/* store first value of ndi */