diff --git a/lte/lib/mimo/src/precoding.c b/lte/lib/mimo/src/precoding.c index 340ef2f0d..4bb5176eb 100644 --- a/lte/lib/mimo/src/precoding.c +++ b/lte/lib/mimo/src/precoding.c @@ -46,10 +46,10 @@ int precoding_diversity(cf_t *x[MAX_LAYERS], cf_t *y[MAX_PORTS], int nof_ports, if (nof_ports == 2) { /* FIXME: Use VOLK here */ for (i=0;i MAX_PORTS || nof_layers > MAX_LAYERS) { + fprintf(stderr, "Invalid number of layers or ports\n"); + exit(-1); + } + if (lte_str2mimotype(mimo_type_name, &type)) { fprintf(stderr, "Invalid MIMO type %s\n", mimo_type_name); exit(-1); } - if (nof_cw > 1) { - n[0] = nof_layers / nof_cw; - n[1] = nof_layers - n[0]; - nof_symb_cw[0] = nof_symbols * n[0]; - nof_symb_cw[1] = nof_symbols * n[1]; - } else { - nof_symb_cw[0] = nof_symbols; - nof_symb_cw[1] = 0; - } - - for (i=0;i MSE_THRESHOLD) { + printf("MSE: %f\n", mse); exit(-1); } else { printf("Ok\n");