From 2864a26f74085a8d580c20a70a2cac76ad515f90 Mon Sep 17 00:00:00 2001 From: Paul Sutton Date: Tue, 26 May 2015 12:26:37 +0100 Subject: [PATCH] Fix for prach tests --- srslte/lib/phch/src/prach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srslte/lib/phch/src/prach.c b/srslte/lib/phch/src/prach.c index e2dadc78e..b2da3c0c2 100644 --- a/srslte/lib/phch/src/prach.c +++ b/srslte/lib/phch/src/prach.c @@ -477,7 +477,7 @@ int srslte_prach_detect(srslte_prach_t *p, uint32_t N_rb_ul = prach_get_rb_ul(p->N_ifft_ul); uint32_t k_0 = freq_offset*N_RB_SC - N_rb_ul*N_RB_SC/2 + p->N_ifft_ul/2; uint32_t K = DELTA_F/DELTA_F_RA; - uint32_t begin = PHI + (K*k_0) + (K/2); + uint32_t begin = PHI + (K*k_0) + (K/2) + 1; for(int i=0;iN_zc;i++){ p->prach_bins[i] = signal[begin+i];