aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-06-15 00:33:37 -0400
committerHarald Welte <laforge@gnumonks.org>2015-09-22 16:41:31 +0200
commitae525a8761d9651e2824fd7c84f0c7db8aaa37fd (patch)
treecd924864383c0de71245b0c1da698335922a7afa
parent29ea40f5387c18a0aeb906039750bbf3a9828e7e (diff)
trx: Send POWERON/OFF commands to osmo-bts only for the first channel.
osmo-trx never supported separate power control for trx's, but now it started to be more strict about it.
-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 8993de6..5b1125a 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)