Commit a07a830a authored by Thomas Dreibholz's avatar Thomas Dreibholz

Check result of openair0_device_load() and exit when loading the device fails.

parent f8037ab6
...@@ -2342,7 +2342,11 @@ void init_RU_proc(RU_t *ru) { ...@@ -2342,7 +2342,11 @@ void init_RU_proc(RU_t *ru) {
init_frame_parms(ru->frame_parms,1); init_frame_parms(ru->frame_parms,1);
ru->frame_parms->nb_antennas_rx = ru->nb_rx; ru->frame_parms->nb_antennas_rx = ru->nb_rx;
phy_init_RU(ru); phy_init_RU(ru);
openair0_device_load(&ru->rfdevice,&ru->openair0_cfg); ret = openair0_device_load(&ru->rfdevice,&ru->openair0_cfg);
if (ret < 0) {
LOG_I(PHY,"Exiting, cannot load device\n");
exit(1);
}
if (setup_RU_buffers(ru)!=0) { if (setup_RU_buffers(ru)!=0) {
printf("Exiting, cannot initialize RU Buffers\n"); printf("Exiting, cannot initialize RU Buffers\n");
......
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