diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-10-28 10:58:41 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-10-28 10:58:41 +0100 |
commit | d1335d878b34eb67d75a6f7ff22e305a573c827f (patch) | |
tree | 5f07825dbc56dda26db9c054143672d8c9c96115 /src/osmo-bts-sysmo/l1_if.c | |
parent | 98a440427968d60163ccace88aa11763649eefa5 (diff) |
sysmobts: Add support for reading calibration tables0.1.0
'trx-calibration-path' is the new VTY command indicating the path
name where the calibration files can be found.
Calibration is only implemented for SUPERFEMTO API version 2.4.0 or
later.
Diffstat (limited to 'src/osmo-bts-sysmo/l1_if.c')
-rw-r--r-- | src/osmo-bts-sysmo/l1_if.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c index 8bc7a28a..b9c16c9a 100644 --- a/src/osmo-bts-sysmo/l1_if.c +++ b/src/osmo-bts-sysmo/l1_if.c @@ -1074,6 +1074,14 @@ static int reset_compl_cb(struct msgb *resp, void *data) /* obtain version information on DSP/FPGA and band capabilities */ l1if_get_info(fl1h); +#if SUPERFEMTO_API_VERSION >= SUPERFEMTO_API(2,1,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); |