Commit fc46dcff authored by Cedric Roux's avatar Cedric Roux

fix format 1A DCI management

I am not sure this is enough. To be refined.
parent 80f47817
...@@ -4329,6 +4329,9 @@ int generate_ue_dlsch_params_from_dci(int frame, ...@@ -4329,6 +4329,9 @@ int generate_ue_dlsch_params_from_dci(int frame,
dlsch0_harq->first_tx, dlsch0_harq->first_tx,
dlsch0_harq->status, dlsch0_harq->status,
dlsch0_harq->round); dlsch0_harq->round);
dlsch[0]->active = 1;
if ((ndi!=dlsch0_harq->DCINdi)|| // DCI has been toggled or this is the first transmission if ((ndi!=dlsch0_harq->DCINdi)|| // DCI has been toggled or this is the first transmission
(dlsch0_harq->first_tx==1)) { (dlsch0_harq->first_tx==1)) {
...@@ -4403,6 +4406,10 @@ int generate_ue_dlsch_params_from_dci(int frame, ...@@ -4403,6 +4406,10 @@ int generate_ue_dlsch_params_from_dci(int frame,
} }
dlsch[0]->rnti = rnti; dlsch[0]->rnti = rnti;
dlsch0 = dlsch[0]; dlsch0 = dlsch[0];
if (dlsch0_harq->round == 0)
dlsch0_harq->status = ACTIVE;
//printf("Format 1A: harq_pid %d, nb_rb %d, round %d\n",harq_pid,dlsch0_harq->nb_rb,dlsch0_harq->round); //printf("Format 1A: harq_pid %d, nb_rb %d, round %d\n",harq_pid,dlsch0_harq->nb_rb,dlsch0_harq->round);
break; break;
...@@ -4649,7 +4656,6 @@ int generate_ue_dlsch_params_from_dci(int frame, ...@@ -4649,7 +4656,6 @@ int generate_ue_dlsch_params_from_dci(int frame,
return(-1); return(-1);
} }
dlsch0_harq->delta_PUCCH = delta_PUCCH_lut[TPC&3]; dlsch0_harq->delta_PUCCH = delta_PUCCH_lut[TPC&3];
dlsch[0]->current_harq_pid = harq_pid; dlsch[0]->current_harq_pid = 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