fix for PHY structure disactivation

This commit is contained in:
francescomani
2023-03-27 15:26:52 +02:00
parent 7c9b501310
commit 48d19391e2
2 changed files with 8 additions and 5 deletions
-3
View File
@@ -51,9 +51,6 @@ int16_t find_nr_ulsch(PHY_VARS_gNB *gNB, uint16_t rnti, int pid, int frame)
// if there is already an active ULSCH for this RNTI and HARQ_PID
if ((ulsch->harq_pid == pid) && (ulsch->rnti == rnti))
return i;
// remove inactive ULSCH (from disconnected UEs)
else if ((frame > (ulsch->harq_process->frame + NUMBER_FRAMES_PHY_UE_INACTIVE) % 1024))
ulsch->active = false;
}
}
return first_free_index;