Bug in ofdm.c
authorokcsampson <okcsampson@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 19 Jun 2017 15:52:47 +0000 (15:52 +0000)
committerokcsampson <okcsampson@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 19 Jun 2017 15:52:47 +0000 (15:52 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3222 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/src/ofdm.c

index 8b45d412dd0aaf7d2509a4bbab3d396597ae50e1..e0211b6ee6e14d2905baccba3815390af5ee871f 100644 (file)
@@ -628,7 +628,7 @@ void ofdm_demod(struct OFDM *ofdm, int *rx_bits, COMP *rxbuf_in) {
                 rx_corr = ofdm->rx_sym[rr+2][i];
             }
 
-            ofdm->rx_np[(rr * OFDM_ROWSPERFRAME) + (i - 1)] = rx_corr;
+            ofdm->rx_np[(rr * OFDM_NC) + (i - 1)] = rx_corr;
 
             /* note even though amp ests are the same for each col,
                the FEC decoder likes to have one amplitude per symbol
@@ -648,9 +648,7 @@ void ofdm_demod(struct OFDM *ofdm, int *rx_bits, COMP *rxbuf_in) {
                 rx_bits[bit_index++] = abit[1];
                 rx_bits[bit_index++] = abit[0];
             }
-
        }
-
     }
 
     /* Adjust nin to take care of sample clock offset */