Commit 3217b512 authored by WANG Tsu-Han's avatar WANG Tsu-Han

simulation fix

parent 860d4069
...@@ -2341,20 +2341,23 @@ void init_RU_proc(RU_t *ru) { ...@@ -2341,20 +2341,23 @@ void init_RU_proc(RU_t *ru) {
LOG_I(PHY,"%s() DJP - added creation of pthread_prach\n", __FUNCTION__); LOG_I(PHY,"%s() DJP - added creation of pthread_prach\n", __FUNCTION__);
pthread_create( &proc->pthread_prach, attr_prach, ru_thread_prach, (void *)ru ); pthread_create( &proc->pthread_prach, attr_prach, ru_thread_prach, (void *)ru );
ru->state=RU_RUN; ru->state=RU_RUN;
/*fill_rf_config(ru,ru->rf_config_file); if(!get_softmodem_params()->emulate_rf)
init_frame_parms(ru->frame_parms,1); {
ru->frame_parms->nb_antennas_rx = ru->nb_rx; fill_rf_config(ru,ru->rf_config_file);
phy_init_RU(ru); init_frame_parms(ru->frame_parms,1);
ret = openair0_device_load(&ru->rfdevice,&ru->openair0_cfg); ru->frame_parms->nb_antennas_rx = ru->nb_rx;
if (ret < 0) { phy_init_RU(ru);
LOG_I(PHY,"Exiting, cannot load device. Make sure that your SDR board is connected!\n"); ret = openair0_device_load(&ru->rfdevice,&ru->openair0_cfg);
exit(1); if (ret < 0) {
} LOG_I(PHY,"Exiting, cannot load device. Make sure that your SDR board is connected!\n");
exit(1);
}
if (setup_RU_buffers(ru)!=0) { if (setup_RU_buffers(ru)!=0) {
LOG_I(PHY,"Exiting, cannot initialize RU Buffers\n"); LOG_I(PHY,"Exiting, cannot initialize RU Buffers\n");
exit(1); exit(1);
}*/ }
}
} }
if (get_thread_worker_conf() == WORKER_ENABLE) { if (get_thread_worker_conf() == WORKER_ENABLE) {
......
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