7.2 xran: notification generation code in ru_thread excluded from compilation
This commit is contained in:
@@ -266,6 +266,7 @@ static void rx_func(processingData_L1_t *info)
|
|||||||
gNB->if_inst->NR_UL_indication(&gNB->UL_INFO);
|
gNB->if_inst->NR_UL_indication(&gNB->UL_INFO);
|
||||||
stop_meas(&gNB->ul_indication_stats);
|
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);
|
notifiedFIFO_elt_t *res = newNotifiedFIFO_elt(sizeof(processingData_L1_t), 0, &gNB->L1_rx_out, NULL);
|
||||||
processingData_L1_t *syncMsg = NotifiedFifoData(res);
|
processingData_L1_t *syncMsg = NotifiedFifoData(res);
|
||||||
syncMsg->gNB = gNB;
|
syncMsg->gNB = gNB;
|
||||||
@@ -274,6 +275,7 @@ static void rx_func(processingData_L1_t *info)
|
|||||||
res->key = slot_rx;
|
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);
|
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);
|
pushNotifiedFIFO(&gNB->L1_rx_out, res);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_meas(&softmodem_stats_rxtx_sf);
|
stop_meas(&softmodem_stats_rxtx_sf);
|
||||||
|
|||||||
+5
-2
@@ -1146,8 +1146,9 @@ void *ru_thread( void *param ) {
|
|||||||
int initial_wait=0;
|
int initial_wait=0;
|
||||||
int opp_enabled0 = opp_enabled;
|
int opp_enabled0 = opp_enabled;
|
||||||
|
|
||||||
|
#ifndef OAI_FHI72
|
||||||
bool rx_tti_busy[RU_RX_SLOT_DEPTH] = {false};
|
bool rx_tti_busy[RU_RX_SLOT_DEPTH] = {false};
|
||||||
nfapi_nr_config_request_scf_t *cfg = &ru->config;
|
#endif
|
||||||
// set default return value
|
// set default return value
|
||||||
ru_thread_status = 0;
|
ru_thread_status = 0;
|
||||||
// set default return value
|
// set default return value
|
||||||
@@ -1319,8 +1320,9 @@ void *ru_thread( void *param ) {
|
|||||||
if (ru->idx != 0)
|
if (ru->idx != 0)
|
||||||
proc->frame_tx = (proc->frame_tx + proc->frame_offset) & 1023;
|
proc->frame_tx = (proc->frame_tx + proc->frame_offset) & 1023;
|
||||||
|
|
||||||
|
#ifndef OAI_FHI72
|
||||||
// do RX front-end processing (frequency-shift, dft) if needed
|
// 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 (slot_type == NR_UPLINK_SLOT || slot_type == NR_MIXED_SLOT) {
|
||||||
if (ru->feprx) {
|
if (ru->feprx) {
|
||||||
if (rx_tti_busy[proc->tti_rx % RU_RX_SLOT_DEPTH]) {
|
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));
|
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) {
|
} // 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);
|
notifiedFIFO_elt_t *resTx = newNotifiedFIFO_elt(sizeof(processingData_L1tx_t), 0, &gNB->L1_tx_out, NULL);
|
||||||
processingData_L1tx_t *syncMsgTx = NotifiedFifoData(resTx);
|
processingData_L1tx_t *syncMsgTx = NotifiedFifoData(resTx);
|
||||||
|
|||||||
@@ -36,3 +36,6 @@ set_target_properties(oran_fhlib_5g PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_
|
|||||||
add_custom_command(TARGET oran_fhlib_5g POST_BUILD
|
add_custom_command(TARGET oran_fhlib_5g POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E create_symlink liboran_fhlib_5g.so liboai_transpro.so
|
COMMAND ${CMAKE_COMMAND} -E create_symlink liboran_fhlib_5g.so liboai_transpro.so
|
||||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
|
|
||||||
|
message(STATUS "Temporary added -DOAI_FHI72")
|
||||||
|
target_compile_definitions(nr-softmodem PUBLIC OAI_FHI72)
|
||||||
|
|||||||
Reference in New Issue
Block a user