fix: do not access array before check
This commit is contained in:
@@ -4637,13 +4637,13 @@ int generate_ue_dlsch_params_from_dci(int frame,
|
||||
break;
|
||||
}
|
||||
|
||||
dlsch0_harq = dlsch[0]->harq_processes[harq_pid];
|
||||
|
||||
if (harq_pid>=8) {
|
||||
LOG_E(PHY,"Format 1: harq_pid=%d >= 8\n", harq_pid);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
dlsch0_harq = dlsch[0]->harq_processes[harq_pid];
|
||||
|
||||
if((mcs>28) && (dlsch0_harq->round == 0) )
|
||||
{
|
||||
// DCI false detection
|
||||
|
||||
Reference in New Issue
Block a user