From 603adf6a57d3b65fa16bd508a9f23f530988f0c2 Mon Sep 17 00:00:00 2001 From: Guy De Souza Date: Thu, 8 Nov 2018 14:13:35 +0100 Subject: [PATCH] ilv init update --- openair1/PHY/NR_TRANSPORT/nr_pbch.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/openair1/PHY/NR_TRANSPORT/nr_pbch.c b/openair1/PHY/NR_TRANSPORT/nr_pbch.c index 4d6f31bc24..6a857b699e 100644 --- a/openair1/PHY/NR_TRANSPORT/nr_pbch.c +++ b/openair1/PHY/NR_TRANSPORT/nr_pbch.c @@ -194,15 +194,17 @@ uint8_t nr_init_pbch_interleaver(uint8_t *interleaver) { uint8_t j_sfn=0, j_hrf=10, j_ssb=11, j_other=14; memset((void*)interleaver,0, NR_POLAR_PBCH_PAYLOAD_BITS); - for (int i=0; i28) // Ssb bits - *(interleaver+j_ssb++) = *(nr_pbch_payload_interleaving_pattern+i); - else - *(interleaver+j_other++) = *(nr_pbch_payload_interleaving_pattern+i); + *(interleaver+i) = *(nr_pbch_payload_interleaving_pattern+j_hrf); + else // Ssb bits + *(interleaver+i) = *(nr_pbch_payload_interleaving_pattern+j_ssb++); } /*This pattern takes into account the adjustments for the field specific counters j_sfn, j_hrf, j_ssb and j_other*/