From 2778fd560fd7263a3520fd390ccbb941e8b89ef9 Mon Sep 17 00:00:00 2001 From: Cedric Roux Date: Thu, 15 Jun 2023 17:11:07 +0200 Subject: [PATCH] bladerf: have it functional (lte only, no nr) At Eurecom now we only have Nuand bladeRF 2.0 (bladerf2) and those calibration calls fail, so let's remove them. Maybe they are needed for other boards, but we can't test at Eurecom. In case of problems with other boards, contact us. --- radio/BLADERF/USERSPACE/LIB/bladerf_lib.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/radio/BLADERF/USERSPACE/LIB/bladerf_lib.c b/radio/BLADERF/USERSPACE/LIB/bladerf_lib.c index e79f1e5f47..d832a932d2 100644 --- a/radio/BLADERF/USERSPACE/LIB/bladerf_lib.c +++ b/radio/BLADERF/USERSPACE/LIB/bladerf_lib.c @@ -1115,6 +1115,12 @@ int device_init(openair0_device *device, // calibrate +#if 0 + /* those calls fail for "Nuand bladeRF 2.0 (bladerf2)", so commented, + * but let's keep the code in case it's needed (for other boards, + * for anything, unfortunately we don't have other boards to test + * right now) + */ if ((status=bladerf_calibrate_dc(brf->dev, BLADERF_DC_CAL_LPF_TUNING)) != 0 || (status=bladerf_calibrate_dc(brf->dev, BLADERF_DC_CAL_TX_LPF)) != 0 || (status=bladerf_calibrate_dc(brf->dev, BLADERF_DC_CAL_RX_LPF)) != 0 || @@ -1123,6 +1129,7 @@ int device_init(openair0_device *device, brf_error(status); } else printf("[BRF] calibration OK\n"); +#endif bladerf_log_set_verbosity(get_brf_log_level(openair0_cfg->log_level));