Commit 4d8e4110 authored by Cedric Roux's avatar Cedric Roux

fix: check that dlsch[0] is not NULL

Note: the dci formats 2, 2A and 1E were not checked,
this has to be done. dlsch[0] and dlsch[1] (when
applicable) must be checked somehow.
parent 82403ed1
......@@ -4001,6 +4001,7 @@ int generate_ue_dlsch_params_from_dci(int frame,
break;
case format1A:
if (!dlsch[0]) return -1;
switch (frame_parms->N_RB_DL) {
case 6:
......@@ -4414,6 +4415,7 @@ int generate_ue_dlsch_params_from_dci(int frame,
break;
case format1C:
if (!dlsch[0]) return -1;
harq_pid = 0;
dlsch0_harq = dlsch[0]->harq_processes[harq_pid];
......@@ -4549,6 +4551,7 @@ int generate_ue_dlsch_params_from_dci(int frame,
break;
case format1:
if (!dlsch[0]) return -1;
switch (frame_parms->N_RB_DL) {
case 6:
......@@ -5868,6 +5871,7 @@ int generate_ue_dlsch_params_from_dci(int frame,
break;
case format1E_2A_M10PRB:
if (!dlsch[0]) return -1;
harq_pid = ((DCI1E_5MHz_2A_M10PRB_TDD_t *)dci_pdu)->harq_pid;
......
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