Commit 2778fd56 authored by Cedric Roux's avatar Cedric Roux

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.
parent f8f9f8ac
...@@ -1115,6 +1115,12 @@ int device_init(openair0_device *device, ...@@ -1115,6 +1115,12 @@ int device_init(openair0_device *device,
// calibrate // 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 || 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_TX_LPF)) != 0 ||
(status=bladerf_calibrate_dc(brf->dev, BLADERF_DC_CAL_RX_LPF)) != 0 || (status=bladerf_calibrate_dc(brf->dev, BLADERF_DC_CAL_RX_LPF)) != 0 ||
...@@ -1123,6 +1129,7 @@ int device_init(openair0_device *device, ...@@ -1123,6 +1129,7 @@ int device_init(openair0_device *device,
brf_error(status); brf_error(status);
} else } else
printf("[BRF] calibration OK\n"); printf("[BRF] calibration OK\n");
#endif
bladerf_log_set_verbosity(get_brf_log_level(openair0_cfg->log_level)); bladerf_log_set_verbosity(get_brf_log_level(openair0_cfg->log_level));
......
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