removing constant max number of xlsch

This commit is contained in:
francescomani
2023-03-27 15:26:52 +02:00
parent 48d19391e2
commit f3126586f3
10 changed files with 92 additions and 81 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ void rx_func(void *param)
stats->active = false;
}
// disactivate ULSCH structure if it is inactive for a given number of frames
for (int i = 0; i < NUMBER_OF_NR_ULSCH_MAX; i++) {
for (int i = 0; i < gNB->max_nb_pusch; i++) {
NR_gNB_ULSCH_t *ulsch = gNB->ulsch[i];
if (ulsch->active && (((frame_rx - ulsch->harq_process->frame + 1024) % 1024) > NUMBER_FRAMES_PHY_UE_INACTIVE))
ulsch->active = false;