diff --git a/executables/nr-gnb.c b/executables/nr-gnb.c index 2e9716c40c..6df84f2057 100644 --- a/executables/nr-gnb.c +++ b/executables/nr-gnb.c @@ -266,6 +266,7 @@ static void rx_func(processingData_L1_t *info) gNB->if_inst->NR_UL_indication(&gNB->UL_INFO); stop_meas(&gNB->ul_indication_stats); +#ifndef OAI_FHI72 notifiedFIFO_elt_t *res = newNotifiedFIFO_elt(sizeof(processingData_L1_t), 0, &gNB->L1_rx_out, NULL); processingData_L1_t *syncMsg = NotifiedFifoData(res); syncMsg->gNB = gNB; @@ -274,6 +275,7 @@ static void rx_func(processingData_L1_t *info) res->key = slot_rx; LOG_D(NR_PHY, "Signaling completion for %d.%d (mod_slot %d) on L1_rx_out\n", frame_rx, slot_rx, slot_rx % RU_RX_SLOT_DEPTH); pushNotifiedFIFO(&gNB->L1_rx_out, res); +#endif } stop_meas(&softmodem_stats_rxtx_sf); diff --git a/executables/nr-ru.c b/executables/nr-ru.c index 991c59e110..24a1ecd719 100644 --- a/executables/nr-ru.c +++ b/executables/nr-ru.c @@ -1146,8 +1146,9 @@ void *ru_thread( void *param ) { int initial_wait=0; int opp_enabled0 = opp_enabled; +#ifndef OAI_FHI72 bool rx_tti_busy[RU_RX_SLOT_DEPTH] = {false}; - nfapi_nr_config_request_scf_t *cfg = &ru->config; +#endif // set default return value ru_thread_status = 0; // set default return value @@ -1319,8 +1320,9 @@ void *ru_thread( void *param ) { if (ru->idx != 0) proc->frame_tx = (proc->frame_tx + proc->frame_offset) & 1023; +#ifndef OAI_FHI72 // do RX front-end processing (frequency-shift, dft) if needed - int slot_type = nr_slot_select(cfg, proc->frame_rx, proc->tti_rx); + int slot_type = nr_slot_select(&ru->config, proc->frame_rx, proc->tti_rx); if (slot_type == NR_UPLINK_SLOT || slot_type == NR_MIXED_SLOT) { if (ru->feprx) { if (rx_tti_busy[proc->tti_rx % RU_RX_SLOT_DEPTH]) { @@ -1393,6 +1395,7 @@ void *ru_thread( void *param ) { memset(&ru->rt_ru_profiling.return_RU_prachrx[rt_prof_idx],0,sizeof(struct timespec)); } } // end if (slot_type == NR_UPLINK_SLOT || slot_type == NR_MIXED_SLOT) { +#endif notifiedFIFO_elt_t *resTx = newNotifiedFIFO_elt(sizeof(processingData_L1tx_t), 0, &gNB->L1_tx_out, NULL); processingData_L1tx_t *syncMsgTx = NotifiedFifoData(resTx); diff --git a/radio/fhi_72/CMakeLists.txt b/radio/fhi_72/CMakeLists.txt index ba28d4c448..5794848afd 100644 --- a/radio/fhi_72/CMakeLists.txt +++ b/radio/fhi_72/CMakeLists.txt @@ -36,3 +36,6 @@ set_target_properties(oran_fhlib_5g PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_ add_custom_command(TARGET oran_fhlib_5g POST_BUILD COMMAND ${CMAKE_COMMAND} -E create_symlink liboran_fhlib_5g.so liboai_transpro.so WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) + +message(STATUS "Temporary added -DOAI_FHI72") +target_compile_definitions(nr-softmodem PUBLIC OAI_FHI72)