aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-06-20 23:05:58 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-06-20 23:06:03 +0200
commit63051b96cca0295b5d5f8bd1712e10410211e0a4 (patch)
tree5b261b3deec7b0493b053ef9204d44506f16e9c9 /src/osmo-bts-sysmo
parent31b113774bcbcc1c0f0fc5d6d43184914ffc6ded (diff)
l1_if.c: Move decl of vars used in conditional macro
Nowadays, with latest versions of superfemto, those variables are unused. Change-Id: Iec6c28840745e1bd99406b777ea5db66ca1d6fd9
Diffstat (limited to 'src/osmo-bts-sysmo')
-rw-r--r--src/osmo-bts-sysmo/l1_if.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index 57e2d5c5..f1c6602c 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -1387,11 +1387,8 @@ static int mute_rf_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp,
/* mute/unmute RF time slots */
int l1if_mute_rf(struct femtol1_hdl *hdl, uint8_t mute[8], l1if_compl_cb *cb)
{
- const uint8_t unmuted[8] = { 0,0,0,0,0,0,0,0 };
struct msgb *msg = sysp_msgb_alloc();
SuperFemto_Prim_t *sysp = msgb_sysprim(msg);
- struct gsm_bts_trx *trx = hdl->phy_inst->trx;
- int i;
LOGP(DL1C, LOGL_INFO, "Tx RF-MUTE.req (%d, %d, %d, %d, %d, %d, %d, %d)\n",
mute[0], mute[1], mute[2], mute[3],
@@ -1399,6 +1396,9 @@ int l1if_mute_rf(struct femtol1_hdl *hdl, uint8_t mute[8], l1if_compl_cb *cb)
);
#if SUPERFEMTO_API_VERSION < SUPERFEMTO_API(3,6,0)
+ const uint8_t unmuted[8] = { 0,0,0,0,0,0,0,0 };
+ struct gsm_bts_trx *trx = hdl->phy_inst->trx;
+ int i;
LOGP(DL1C, LOGL_ERROR, "RF-MUTE.req not supported by SuperFemto\n");
msgb_free(msg);
/* always acknowledge an un-MUTE (which is a no-op if MUTE is not supported */