Take the long PRACH into account in queues

Fixes the commit ID: 03096dd495

Signed-off-by: Teodora Vladić <teodora.vladic@openairinterface.org>
This commit is contained in:
Robert Schmidt
2026-04-21 12:11:35 +02:00
committed by Teodora Vladić
parent 38dc378224
commit 57c4633fd6
+4 -2
View File
@@ -34,7 +34,8 @@ static bool drop_old_prach(const void *data, void *user)
{
const prach_item_t *p = data;
const fsn_t *now = user;
const fsn_t t = {p->frame, p->slot, now->mu};
// account for long PRACH over more than 1 slot
const fsn_t t = {p->frame, p->slot + p->num_slots - 1, now->mu};
bool drop = fsn_in_the_past(t, *now);
if (drop)
LOG_E(NR_PHY, "%4d.%2d PRACH job is in the past (%4d.%2d)\n", now->f, now->s, t.f, t.s);
@@ -45,7 +46,8 @@ static bool get_current_prach(const void *data, void *user)
{
const prach_item_t *p = data;
const fsn_t *now = user;
const fsn_t t = {p->frame, p->slot, now->mu};
// account for long PRACH over more than 1 slot
const fsn_t t = {p->frame, p->slot + p->num_slots - 1, now->mu};
return fsn_equal(t, *now);
}