From 8d0447537d57db9138c1b3b6816bb7013bfa4119 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Mon, 13 Jun 2016 16:50:15 +0200 Subject: [PATCH] sss: fixed incorrect m0 and m1 check for N_id_1 --- srslte/lib/sync/sss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srslte/lib/sync/sss.c b/srslte/lib/sync/sss.c index 771c2758f..d64c0db1d 100644 --- a/srslte/lib/sync/sss.c +++ b/srslte/lib/sync/sss.c @@ -139,7 +139,7 @@ uint32_t srslte_sss_synch_subframe(uint32_t m0, uint32_t m1) { /** Returns the N_id_1 value based on the m0 and m1 values */ int srslte_sss_synch_N_id_1(srslte_sss_synch_t *q, uint32_t m0, uint32_t m1) { - if (m0==m1 || m0 > 29 || m1 > 29) { + if (m0==m1 || m0 > 30 || m1 > 30) { return SRSLTE_ERROR; } int N_id_1;