From bbce7bc65a47fa559194331e86fb420bc8db3efe Mon Sep 17 00:00:00 2001 From: Hongzhi Wang Date: Thu, 13 Sep 2018 08:55:27 +0200 Subject: [PATCH] nr minor fix ldpc interleaving --- openair1/PHY/CODING/nr_rate_matching.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openair1/PHY/CODING/nr_rate_matching.c b/openair1/PHY/CODING/nr_rate_matching.c index 591de90f86..502fda3fa5 100644 --- a/openair1/PHY/CODING/nr_rate_matching.c +++ b/openair1/PHY/CODING/nr_rate_matching.c @@ -54,7 +54,7 @@ void nr_deinterleaving_ldpc(uint32_t E, uint8_t Qm, uint8_t *e,uint8_t *f) uint32_t EQm; EQm = E/Qm; - memset(f,0,E*sizeof(uint8_t)); + memset(e,0,E*sizeof(uint8_t)); for (int j = 0; j< EQm; j++){ for (int i = 0; i< Qm; i++){ @@ -100,8 +100,6 @@ uint32_t nr_rate_matching_ldpc(uint8_t Ilbrm, Cprime = C; //assume CBGTI not present - printf("comp r %d\n", Cprime - ((G/(Nl*Qm))%Cprime) - 1); - if (r <= Cprime - ((G/(Nl*Qm))%Cprime) - 1) E = Nl*Qm*(G/(Nl*Qm*Cprime)); else