From 10ff80815f43f30f11693e3558cd3c4d9e4056ca Mon Sep 17 00:00:00 2001 From: Laurent THOMAS Date: Fri, 27 Jun 2025 15:21:13 +0200 Subject: [PATCH] when we try to detect a specific PCI, and it fails, the SSS detection return successful detection, with wrong frequency offset --- openair1/PHY/NR_UE_TRANSPORT/sss_nr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair1/PHY/NR_UE_TRANSPORT/sss_nr.c b/openair1/PHY/NR_UE_TRANSPORT/sss_nr.c index 0a13462d8c..da27ca8603 100644 --- a/openair1/PHY/NR_UE_TRANSPORT/sss_nr.c +++ b/openair1/PHY/NR_UE_TRANSPORT/sss_nr.c @@ -499,7 +499,7 @@ bool rx_sss_nr(const NR_DL_FRAME_PARMS *frame_parms, int re = 0; int im = 0; - if (Nid1 == N_ID_1_NUMBER) { + if (Nid1 == Nid1_end) { LOG_D(PHY, "Failed to detect SSS after PSS, metric of SSS %d, threshold to consider SSS valid %d, detected PCI: %d\n", *tot_metric,