diff --git a/lte/phy/examples/pdsch_ue.c b/lte/phy/examples/pdsch_ue.c index 2d6c0af73..f56da5ccb 100644 --- a/lte/phy/examples/pdsch_ue.c +++ b/lte/phy/examples/pdsch_ue.c @@ -647,7 +647,7 @@ int main(int argc, char **argv) { /* Initialize variables */ frame_cnt = 0; frame_number = -1; - + /* The number of samples read from the USRP or file corresponds to 1 ms (subframe) */ sf_n_samples = 1920 * lte_symbol_sz(sampling_nof_prb)/128; @@ -665,6 +665,8 @@ int main(int argc, char **argv) { } else { ret = sync_frame_push(&sframe, input_buffer, sf_buffer); in_ptr = sf_buffer; + cell_id = 0; + sf_idx = 0; } switch(ret ) { case 0: diff --git a/lte/phy/lib/ch_estimation/test/chest_test.c b/lte/phy/lib/ch_estimation/test/chest_test.c index 3408ce553..4fda0a1a9 100644 --- a/lte/phy/lib/ch_estimation/test/chest_test.c +++ b/lte/phy/lib/ch_estimation/test/chest_test.c @@ -125,6 +125,7 @@ int main(int argc, char **argv) { float mse_mag, mse_phase; lte_cell_t cell; + cell.nof_ports = 1; parse_args(argc,argv); if (output_matlab) { diff --git a/lte/phy/lib/phch/src/pdsch.c b/lte/phy/lib/phch/src/pdsch.c index 483f93589..524477730 100644 --- a/lte/phy/lib/phch/src/pdsch.c +++ b/lte/phy/lib/phch/src/pdsch.c @@ -64,7 +64,7 @@ int pdsch_cp(pdsch_t *q, cf_t *input, cf_t *output, ra_prb_t *prb_alloc, uint32_t s, n, l, lp, lstart, lend, nof_refs; bool is_pbch, is_sss; cf_t *in_ptr = input, *out_ptr = output; - uint32_t offset; + uint32_t offset = 0; INFO("%s %d RE from %d PRB\n", put ? "Putting" : "Getting", prb_alloc->re_sf[nsubframe], prb_alloc->slot[0].nof_prb);