Fixed bug with toggling the NDI for DL HARQ retransmissions
This commit is contained in:
@@ -320,6 +320,7 @@ schedule_ue_spec_default(
|
|||||||
rballoc_sub[i] = UE_list->UE_template[CC_id][UE_id].rballoc_subband[harq_pid][i];
|
rballoc_sub[i] = UE_list->UE_template[CC_id][UE_id].rballoc_subband[harq_pid][i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Keep the old NDI, do not toggle
|
||||||
ndi = UE_list->UE_template[CC_id][UE_id].oldNDI[harq_pid];
|
ndi = UE_list->UE_template[CC_id][UE_id].oldNDI[harq_pid];
|
||||||
tpc = 1;
|
tpc = 1;
|
||||||
|
|
||||||
@@ -562,13 +563,12 @@ schedule_ue_spec_default(
|
|||||||
rballoc_sub[i] = UE_list->UE_template[CC_id][UE_id].rballoc_subband[harq_pid][i];
|
rballoc_sub[i] = UE_list->UE_template[CC_id][UE_id].rballoc_subband[harq_pid][i];
|
||||||
}
|
}
|
||||||
|
|
||||||
ndi = 1 - UE_list->UE_template[CC_id][UE_id].oldNDI[harq_pid];
|
// Toggle NDI
|
||||||
|
|
||||||
// Toggle NDI for next time
|
|
||||||
LOG_D(MAC,"CC_id %d Frame %d, subframeP %d: Toggling Format1 NDI for UE %d (rnti %x/%d) oldNDI %d\n",
|
LOG_D(MAC,"CC_id %d Frame %d, subframeP %d: Toggling Format1 NDI for UE %d (rnti %x/%d) oldNDI %d\n",
|
||||||
CC_id, frame, subframe, UE_id,
|
CC_id, frame, subframe, UE_id,
|
||||||
UE_list->UE_template[CC_id][UE_id].rnti,harq_pid, UE_list->UE_template[CC_id][UE_id].oldNDI[harq_pid]);
|
UE_list->UE_template[CC_id][UE_id].rnti,harq_pid, UE_list->UE_template[CC_id][UE_id].oldNDI[harq_pid]);
|
||||||
UE_list->UE_template[CC_id][UE_id].oldNDI[harq_pid]=1-UE_list->UE_template[CC_id][UE_id].oldNDI[harq_pid];
|
UE_list->UE_template[CC_id][UE_id].oldNDI[harq_pid]= 1 - UE_list->UE_template[CC_id][UE_id].oldNDI[harq_pid];
|
||||||
|
ndi = UE_list->UE_template[CC_id][UE_id].oldNDI[harq_pid];
|
||||||
|
|
||||||
// Increase the pointer for the number of scheduled UEs
|
// Increase the pointer for the number of scheduled UEs
|
||||||
num_ues_added++;
|
num_ues_added++;
|
||||||
|
|||||||
Reference in New Issue
Block a user