fix acknack scheduling compilation
This commit is contained in:
@@ -1462,7 +1462,7 @@ void nr_generate_Msg4(module_id_t module_idP, int CC_id, frame_t frameP, sub_fra
|
|||||||
const int delta_PRI=0;
|
const int delta_PRI=0;
|
||||||
int r_pucch = ((CCEIndex<<1)/N_cce)+(delta_PRI<<1);
|
int r_pucch = ((CCEIndex<<1)/N_cce)+(delta_PRI<<1);
|
||||||
|
|
||||||
int alloc = nr_acknack_scheduling(module_idP, UE_id, frameP, slotP, r_pucch);
|
int alloc = nr_acknack_scheduling(module_idP, UE_id, frameP, slotP, r_pucch, 1);
|
||||||
AssertFatal(alloc>=0,"Couldn't find a pucch allocation for ack nack (msg4)\n");
|
AssertFatal(alloc>=0,"Couldn't find a pucch allocation for ack nack (msg4)\n");
|
||||||
NR_sched_pucch_t *pucch = &sched_ctrl->sched_pucch[alloc];
|
NR_sched_pucch_t *pucch = &sched_ctrl->sched_pucch[alloc];
|
||||||
harq->feedback_slot = pucch->ul_slot;
|
harq->feedback_slot = pucch->ul_slot;
|
||||||
|
|||||||
@@ -518,7 +518,7 @@ bool allocate_dl_retransmission(module_id_t module_id,
|
|||||||
|
|
||||||
/* Find PUCCH occasion: if it fails, undo CCE allocation (undoing PUCCH
|
/* Find PUCCH occasion: if it fails, undo CCE allocation (undoing PUCCH
|
||||||
* allocation after CCE alloc fail would be more complex) */
|
* allocation after CCE alloc fail would be more complex) */
|
||||||
const int alloc = nr_acknack_scheduling(module_id, UE_id, frame, slot, -1);
|
const int alloc = nr_acknack_scheduling(module_id, UE_id, frame, slot, -1, 0);
|
||||||
if (alloc<0) {
|
if (alloc<0) {
|
||||||
LOG_D(MAC,
|
LOG_D(MAC,
|
||||||
"%s(): could not find PUCCH for UE %d/%04x@%d.%d\n",
|
"%s(): could not find PUCCH for UE %d/%04x@%d.%d\n",
|
||||||
@@ -653,7 +653,7 @@ void pf_dl(module_id_t module_id,
|
|||||||
|
|
||||||
/* Find PUCCH occasion: if it fails, undo CCE allocation (undoing PUCCH
|
/* Find PUCCH occasion: if it fails, undo CCE allocation (undoing PUCCH
|
||||||
* allocation after CCE alloc fail would be more complex) */
|
* allocation after CCE alloc fail would be more complex) */
|
||||||
const int alloc = nr_acknack_scheduling(module_id, UE_id, frame, slot, -1);
|
const int alloc = nr_acknack_scheduling(module_id, UE_id, frame, slot, -1, 0);
|
||||||
if (alloc<0) {
|
if (alloc<0) {
|
||||||
LOG_D(NR_MAC,
|
LOG_D(NR_MAC,
|
||||||
"%s(): could not find PUCCH for UE %d/%04x@%d.%d\n",
|
"%s(): could not find PUCCH for UE %d/%04x@%d.%d\n",
|
||||||
|
|||||||
@@ -342,7 +342,7 @@ void nr_preprocessor_phytest(module_id_t module_id,
|
|||||||
__func__,
|
__func__,
|
||||||
UE_id);
|
UE_id);
|
||||||
|
|
||||||
const int alloc = nr_acknack_scheduling(module_id, UE_id, frame, slot, -1);
|
const int alloc = nr_acknack_scheduling(module_id, UE_id, frame, slot, -1, 0);
|
||||||
if (alloc < 0) {
|
if (alloc < 0) {
|
||||||
LOG_D(MAC,
|
LOG_D(MAC,
|
||||||
"%s(): could not find PUCCH for UE %d/%04x@%d.%d\n",
|
"%s(): could not find PUCCH for UE %d/%04x@%d.%d\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user