Commit 113621db authored by Robert Schmidt's avatar Robert Schmidt

REMOVE Add some logs for HARQ debugging

parent dfd943aa
...@@ -642,6 +642,15 @@ void nr_schedule_ue_spec(module_id_t module_id, ...@@ -642,6 +642,15 @@ void nr_schedule_ue_spec(module_id_t module_id,
harq->round, harq->round,
harq->ndi); harq->ndi);
} else { /* initial transmission */ } else { /* initial transmission */
LOG_I(MAC,
"%d.%2d new DL transmission RNTI %04x HARQ PID %d round %d NDI %d feedback_slot %d\n",
frame,
slot,
rnti,
current_harq_pid,
harq->round,
harq->ndi,
harq->feedback_slot);
/* reserve space for timing advance of UE if necessary, /* reserve space for timing advance of UE if necessary,
* nr_generate_dlsch_pdu() checks for ta_apply and add TA CE if necessary */ * nr_generate_dlsch_pdu() checks for ta_apply and add TA CE if necessary */
......
...@@ -328,9 +328,10 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id, ...@@ -328,9 +328,10 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id,
// toggle NDI and reset round // toggle NDI and reset round
sched_ctrl->harq_processes[harq_idx].ndi ^= 1; sched_ctrl->harq_processes[harq_idx].ndi ^= 1;
sched_ctrl->harq_processes[harq_idx].round = 0; sched_ctrl->harq_processes[harq_idx].round = 0;
} } else {
else LOG_E(MAC, "%4d.%2d HARQ not received or bad confidence for harq_idx %d (feedback_slot %d)\n", frame, slot, harq_idx, sched_ctrl->harq_processes[harq_idx].feedback_slot);
sched_ctrl->harq_processes[harq_idx].round++; sched_ctrl->harq_processes[harq_idx].round++;
}
sched_ctrl->harq_processes[harq_idx].is_waiting = 0; sched_ctrl->harq_processes[harq_idx].is_waiting = 0;
harq_idx_s = harq_idx + 1; harq_idx_s = harq_idx + 1;
// if the max harq rounds was reached // if the max harq rounds was reached
...@@ -345,6 +346,7 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id, ...@@ -345,6 +346,7 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id,
else if (sched_ctrl->harq_processes[harq_idx].feedback_slot != -1 else if (sched_ctrl->harq_processes[harq_idx].feedback_slot != -1
&& (slot - 1) > sched_ctrl->harq_processes[harq_idx].feedback_slot && (slot - 1) > sched_ctrl->harq_processes[harq_idx].feedback_slot
&& sched_ctrl->harq_processes[harq_idx].is_waiting) { && sched_ctrl->harq_processes[harq_idx].is_waiting) {
LOG_E(MAC, "%4d.%2d HARQ not discarded for harq_idx %d (feedback_slot %d)\n", frame, slot, harq_idx, sched_ctrl->harq_processes[harq_idx].feedback_slot);
sched_ctrl->harq_processes[harq_idx].feedback_slot = -1; sched_ctrl->harq_processes[harq_idx].feedback_slot = -1;
sched_ctrl->harq_processes[harq_idx].round++; sched_ctrl->harq_processes[harq_idx].round++;
if (sched_ctrl->harq_processes[harq_idx].round == max_harq_rounds) { if (sched_ctrl->harq_processes[harq_idx].round == max_harq_rounds) {
......
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