From 57c4633fd6c5e424fd855c959e2c3ca887a63294 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 21 Apr 2026 10:34:07 +0200 Subject: [PATCH] Take the long PRACH into account in queues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the commit ID: 03096dd4957a8254400c74f8a2999a11bf5d7439 Signed-off-by: Teodora Vladić --- openair1/PHY/NR_TRANSPORT/nr_prach.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openair1/PHY/NR_TRANSPORT/nr_prach.c b/openair1/PHY/NR_TRANSPORT/nr_prach.c index dc3cb1950d..efcc3dae1b 100644 --- a/openair1/PHY/NR_TRANSPORT/nr_prach.c +++ b/openair1/PHY/NR_TRANSPORT/nr_prach.c @@ -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); }