aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/l1_if.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-10 21:12:39 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-10 21:12:39 +0200
commitac3fc27257c16a74c524a1c070ce029d10ca7815 (patch)
tree72bdeccaa3d62746032062653df7a23d05719caf /src/osmo-bts-sysmo/l1_if.c
parentad142f84b36e12aac834c90e9d98637b7768b15c (diff)
sysmobts: Attempt to fix the compilation for the v1 hardware
Diffstat (limited to 'src/osmo-bts-sysmo/l1_if.c')
-rw-r--r--src/osmo-bts-sysmo/l1_if.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index 7b72d1d5..3dbcd537 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -1044,6 +1044,9 @@ static int activate_rf_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp)
static int get_clk_cal(struct femtol1_hdl *hdl)
{
+#ifdef FEMTOBTS_API_VERSION
+ return hdl->clk_cal;
+#else
switch (hdl->clk_src) {
case SuperFemto_ClkSrcId_Ocxo:
case SuperFemto_ClkSrcId_Tcxo:
@@ -1058,6 +1061,7 @@ static int get_clk_cal(struct femtol1_hdl *hdl)
get_value_string(femtobts_clksrc_names, hdl->clk_src));
return 0;
}
+#endif
}
/* activate or de-activate the entire RF-Frontend */