EXMIMO handling special case for device library
This commit is contained in:
@@ -151,14 +151,21 @@ int openair0_device_load(openair0_device *device, openair0_config_t *openair0_cf
|
|||||||
int openair0_transport_load(openair0_device *device, openair0_config_t *openair0_cfg, eth_params_t * eth_params) {
|
int openair0_transport_load(openair0_device *device, openair0_config_t *openair0_cfg, eth_params_t * eth_params) {
|
||||||
|
|
||||||
int rc;
|
int rc;
|
||||||
rc=load_lib(device, openair0_cfg, eth_params, BBU_REMOTE_RADIO_HEAD);
|
//ToDo: EXMIMO library is still not harmonized with rest of HW Targets (USRP, BladeRF).
|
||||||
if ( rc >= 0) {
|
if (device->type != EXMIMO_DEV)
|
||||||
if ( set_transport(device) < 0) {
|
{
|
||||||
|
rc=load_lib(device, openair0_cfg, eth_params, BBU_REMOTE_RADIO_HEAD);
|
||||||
|
if ( rc >= 0) {
|
||||||
|
if ( set_transport(device) < 0) {
|
||||||
fprintf(stderr, "%s %d:Unsupported transport protocol\n",__FILE__, __LINE__);
|
fprintf(stderr, "%s %d:Unsupported transport protocol\n",__FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
device_init(device, openair0_cfg);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user