aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/l1_if.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-07-22 22:42:36 +0200
committerHarald Welte <laforge@gnumonks.org>2012-07-22 22:42:36 +0200
commit678321d013c320c31a1820135f32cee63d0c0ae7 (patch)
treee782cd0500da4a06e36583fdadc619a27bc8b44b /src/osmo-bts-sysmo/l1_if.c
parente729a3d595baf4f3fb9bf572840c698fe71ec072 (diff)
determine (and use) the API version as indicated in the header files
From our header files v2.4 onwards, we include some macros that allow us to do compile-time checks for the API header version. As older headers don't have those macros, we have to fall back to assume it will be v2.2
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 3cf2955a..69c44246 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -965,6 +965,10 @@ int l1if_activate_rf(struct femtol1_hdl *hdl, int on)
/* Use clock from OCXO or whatever source is configured */
sysp->u.activateRfReq.rfTrx.clkSrc = hdl->clk_src;
sysp->u.activateRfReq.rfTrx.iClkCor = hdl->clk_cal;
+#if SUPERFEMTO_API_VERSION < SUPERFEMTO_API(2,4,0)
+ sysp->u.activateRfReq.rfRx.clkSrc = hdl->clk_src;
+ sysp->u.activateRfReq.rfRx.iClkCor = hdl->clk_cal;
+#endif /* API 2.4.0 */
#endif
} else {
sysp->id = SuperFemto_PrimId_DeactivateRfReq;