Merge remote-tracking branch 'origin/variable_nb_rx_ant_for_rach' into integration_2026_w12 (!3957)
replace static allocation of max antennas in a dynamic structure for gnb rach NB_ANTENNAS_RX was used in 5G by mistake there was also a error in O-RU implementation, with no consequences (index not in right order)
This commit is contained in:
+3
-8
@@ -998,9 +998,10 @@ void *ru_thread(void *param)
|
||||
proc->tti_rx * gNB->frame_parms.samples_per_slot_wCP);
|
||||
|
||||
// Do PRACH RU processing
|
||||
prach_item_t *p = find_nr_prach(&gNB->prach_list, proc->frame_rx, proc->tti_rx, SEARCH_EXIST);
|
||||
prach_item_t *p =
|
||||
find_nr_prach(&gNB->prach_list, proc->frame_rx, proc->tti_rx, gNB->frame_parms.nb_antennas_rx, SEARCH_EXIST);
|
||||
if (p) {
|
||||
// need to extract RACH data for lqter processing by rx_nr_prach()
|
||||
// need to extract RACH data for later processing by rx_nr_prach()
|
||||
rx_nr_prach_ru(p, ru->common.rxdata, ru->nr_frame_parms, ru->N_TA_offset);
|
||||
} // end if (prach_id >= 0)
|
||||
} // end if (ru->feprx)
|
||||
@@ -1458,13 +1459,7 @@ static void NRRCconfig_RU(configmodule_interface_t *cfg)
|
||||
} /* strcmp(local_rf, "yes") != 0 */
|
||||
|
||||
ru->nb_tx = *param[RU_NB_TX_IDX].uptr;
|
||||
AssertFatal(ru->nb_tx <= NB_ANTENNAS_TX,
|
||||
"Config file has %d TX antennas set, but the compile time max value in NB_ANTENNAS_TX\n",
|
||||
ru->nb_tx);
|
||||
ru->nb_rx = *param[RU_NB_RX_IDX].uptr;
|
||||
AssertFatal(ru->nb_rx <= NB_ANTENNAS_RX,
|
||||
"Config file has %d RX antennas set, but the compile time max value in NB_ANTENNAS_RX\n",
|
||||
ru->nb_rx);
|
||||
ru->att_tx = *param[RU_ATT_TX_IDX].uptr;
|
||||
ru->att_rx = *param[RU_ATT_RX_IDX].uptr;
|
||||
ru->if_frequency = *param[RU_IF_FREQUENCY].u64ptr;
|
||||
|
||||
@@ -211,12 +211,6 @@ void nrue_set_ru_params(configmodule_interface_t *cfg)
|
||||
if (RUParamList.numelt <= 0) {
|
||||
nrue_ru_count = 1;
|
||||
nrue_rus = calloc_or_fail(nrue_ru_count, sizeof(nrUE_RU_params_t));
|
||||
AssertFatal(get_nrUE_params()->nb_antennas_tx <= NB_ANTENNAS_TX,
|
||||
"Config file has %d TX antennas set, but the compile time max value in NB_ANTENNAS_TX\n",
|
||||
get_nrUE_params()->nb_antennas_tx);
|
||||
AssertFatal(get_nrUE_params()->nb_antennas_rx <= NB_ANTENNAS_RX,
|
||||
"Config file has %d RX antennas set, but the compile time max value in NB_ANTENNAS_RX\n",
|
||||
get_nrUE_params()->nb_antennas_tx);
|
||||
nrue_rus[0] = (nrUE_RU_params_t){.nb_tx = get_nrUE_params()->nb_antennas_tx,
|
||||
.nb_rx = get_nrUE_params()->nb_antennas_rx,
|
||||
.att_tx = get_nrUE_params()->tx_gain,
|
||||
|
||||
Reference in New Issue
Block a user