From b8dde7ba912f8ae6d02daf563f21cc5b95076a6b Mon Sep 17 00:00:00 2001 From: Rohit Gupta <rohit.gupta@eurecom.fr> Date: Wed, 10 Feb 2016 10:36:22 +0100 Subject: [PATCH] EXMIMO handling special case for device library --- targets/ARCH/COMMON/common_lib.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/targets/ARCH/COMMON/common_lib.c b/targets/ARCH/COMMON/common_lib.c index bc886e807b..791fbbeda6 100644 --- a/targets/ARCH/COMMON/common_lib.c +++ b/targets/ARCH/COMMON/common_lib.c @@ -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 rc; - rc=load_lib(device, openair0_cfg, eth_params, BBU_REMOTE_RADIO_HEAD); - if ( rc >= 0) { - if ( set_transport(device) < 0) { + //ToDo: EXMIMO library is still not harmonized with rest of HW Targets (USRP, BladeRF). + if (device->type != EXMIMO_DEV) + { + 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__); return -1; - } + } + } } - + else + { + device_init(device, openair0_cfg); + } return 0; } -- GitLab