diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-06-22 18:41:11 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-06-22 19:30:55 +0200 |
commit | 40ca16766d3820385d26bb06856fdb5b94f9e33e (patch) | |
tree | 6fd7e3217d1bb4c1d917e472a315cfb0fc93fb68 /src/osmo-bts-sysmo/l1_if.c | |
parent | 256326775781b6c46ebbe0ccf311e2d971b9de9a (diff) |
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.
Diffstat (limited to 'src/osmo-bts-sysmo/l1_if.c')
-rw-r--r-- | src/osmo-bts-sysmo/l1_if.c | 16 |
1 files changed, 8 insertions, 8 deletions
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); |