aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osmo-bts-trx/trx_if.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index 8993de64..5b1125ad 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -231,12 +231,18 @@ static int trx_ctrl_cmd(struct trx_l1h *l1h, int critical, const char *cmd,
int trx_if_cmd_poweroff(struct trx_l1h *l1h)
{
- return trx_ctrl_cmd(l1h, 1, "POWEROFF", "");
+ if (l1h->trx->nr == 0)
+ return trx_ctrl_cmd(l1h, 1, "POWEROFF", "");
+ else
+ return 0;
}
int trx_if_cmd_poweron(struct trx_l1h *l1h)
{
- return trx_ctrl_cmd(l1h, 1, "POWERON", "");
+ if (l1h->trx->nr == 0)
+ return trx_ctrl_cmd(l1h, 1, "POWERON", "");
+ else
+ return 0;
}
int trx_if_cmd_settsc(struct trx_l1h *l1h, uint8_t tsc)