Commit b4764ee7 authored by Raymond Knopp's avatar Raymond Knopp

handle somehow txdadaF_BF

parent 33a2d3e1
......@@ -192,9 +192,14 @@ void nr_phy_free_RU(RU_t *ru)
free_and_zero(ru->common.txdataF);
// free IFFT input buffers (TX)
// invalid pointers in 7.2!
//for (i = 0; i < ru->nb_tx; i++) free_and_zero(ru->common.txdataF_BF[i]);
//free_and_zero(ru->common.txdataF_BF);
// nr_feptx_prec(): if no precoding, it just copies pointers instead of memory
// note that we still allocate that memory in nr_phy_init_RU(), otherwise
// we cannot execute in the first iteration because XYZ
bool no_precoding = ru->do_precoding == 0 || (ru->nb_tx == 1 && ru->nb_log_antennas == 1);
if (!no_precoding) {
for (i = 0; i < ru->nb_tx; i++) free_and_zero(ru->common.txdataF_BF[i]);
free_and_zero(ru->common.txdataF_BF);
}
// free FFT output buffers (RX)
for (i = 0; i < ru->nb_rx; i++) free_and_zero(ru->common.rxdataF[i]);
......
......@@ -189,8 +189,8 @@ void nr_feptx_prec(RU_t *ru,int frame_tx,int tti_tx) {
if (nr_slot_select(cfg,frame_tx,slot_tx) == NR_UPLINK_SLOT) return;
if (ru->do_precoding == 0 || (ru->nb_tx == 1 && ru->nb_log_antennas == 1)) {
for (i=0;i<ru->nb_log_antennas; ++i)
ru->common.txdataF_BF[i] = &gNB->common_vars.txdataF[i][txdataF_offset];
for (i = 0; i < ru->nb_log_antennas; ++i)
ru->common.txdataF_BF[i] = (int32_t *)&gNB->common_vars.txdataF[i][txdataF_offset];
}
else {
for(i=0; i<ru->nb_log_antennas; ++i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment