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*/