Commit 3fac50a2 authored by Robert Schmidt's avatar Robert Schmidt

Merge remote-tracking branch 'origin/ru_procedures_hotfix' into integration_2025_w52 (!3829)

Hotfix for handling the case where the number of physical antennas is larger than the number of logical antennas
parents 16a43f0e b0f402df
...@@ -199,10 +199,11 @@ void nr_feptx_prec(RU_t *ru, int frame_tx, int slot_tx) ...@@ -199,10 +199,11 @@ void nr_feptx_prec(RU_t *ru, int frame_tx, int slot_tx)
if (nr_slot_select(cfg,frame_tx,slot_tx) == NR_UPLINK_SLOT) if (nr_slot_select(cfg,frame_tx,slot_tx) == NR_UPLINK_SLOT)
return; return;
int Ptx = cfg->carrier_config.num_tx_ant.value;
// If there is no digital beamforming we just need to copy the data to RU // If there is no digital beamforming we just need to copy the data to RU
if (ru->config.dbt_config.num_dig_beams == 0 || ru->gNB_list[0]->common_vars.analog_bf) { if (ru->config.dbt_config.num_dig_beams == 0 || ru->gNB_list[0]->common_vars.analog_bf) {
for (int b = 0; b < ru->num_beams_period; b++) { for (int b = 0; b < ru->num_beams_period; b++) {
for (int i = 0; i < ru->nb_tx; ++i) { for (int i = 0; i < Ptx; ++i) {
int tx_idx = i + b * ru->nb_tx; int tx_idx = i + b * ru->nb_tx;
memcpy((void*)ru->common.txdataF_BF[tx_idx], memcpy((void*)ru->common.txdataF_BF[tx_idx],
(void*)&gNB->common_vars.txdataF[b][i][txdataF_offset], (void*)&gNB->common_vars.txdataF[b][i][txdataF_offset],
......
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