From 644e91e5df72ad39af77aacb3e29f9978087ba9c Mon Sep 17 00:00:00 2001 From: nodeuser Date: Fri, 28 Mar 2014 12:49:40 +0000 Subject: [PATCH] Fixed bug in sync --- lte/lib/sync/src/sync.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lte/lib/sync/src/sync.c b/lte/lib/sync/src/sync.c index de777e8ca..6e2172b46 100644 --- a/lte/lib/sync/src/sync.c +++ b/lte/lib/sync/src/sync.c @@ -41,6 +41,7 @@ int sync_init(sync_t *q, int frame_size) { q->threshold = 1.5; q->pss_mode = PEAK_MEAN; q->detect_cp = true; + q->sss_en = true; for (N_id_2=0;N_id_2<3;N_id_2++) { if (pss_synch_init(&q->pss[N_id_2], frame_size)) { @@ -207,7 +208,10 @@ int sync_run(sync_t *q, cf_t *input) { } } } - + N_id_1_e = -1; + N_id_1_n = -1; + slot_id_e = -1; + slot_id_n = -1; /* try Normal CP length */ if (q->detect_cp || CP_ISNORM(q->cp)) { sss_synch_m0m1(&q->sss[N_id_2], &input[sss_idx_n],