From 40ca16766d3820385d26bb06856fdb5b94f9e33e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 22 Jun 2013 18:41:11 +0200 Subject: calib: Add fixup for incompatible calib data / firmware version For certain sysmoBTS units, a fixup to the calibration table is needed, if the firmware is >= 3.3.0. --- src/osmo-bts-sysmo/l1_if.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/osmo-bts-sysmo/l1_if.c') diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c index f9aa7eb8..ea78a53d 100644 --- a/src/osmo-bts-sysmo/l1_if.c +++ b/src/osmo-bts-sysmo/l1_if.c @@ -1116,6 +1116,14 @@ static int info_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp) LOGP(DL1C, LOGL_FATAL, "BTS band %s not supported by hw\n", gsm_band_name(trx->bts->band)); +#if SUPERFEMTO_API_VERSION >= SUPERFEMTO_API(2,4,0) + /* load calibration tables (if we know their path) */ + if (fl1h->calib_path) + calib_load(fl1h); + else +#endif + LOGP(DL1C, LOGL_NOTICE, "Operating without calibration tables!\n"); + /* FIXME: clock related */ return 0; } @@ -1156,14 +1164,6 @@ static int reset_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp) /* obtain version information on DSP/FPGA and band capabilities */ l1if_get_info(fl1h); -#if SUPERFEMTO_API_VERSION >= SUPERFEMTO_API(2,4,0) - /* load calibration tables (if we know their path) */ - if (fl1h->calib_path) - calib_load(fl1h); - else -#endif - LOGP(DL1C, LOGL_NOTICE, "Operating without calibration tables!\n"); - /* otherwise, request activation of RF board */ l1if_activate_rf(fl1h, 1); -- cgit v1.2.3