aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-06-15 00:33:37 -0400
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-07-20 18:43:50 -0400
commit8f8c2a621de1977c2684b2b70e06720ac850b858 (patch)
tree7e17ac4a516fe0cba619c225e63ad776f2328d55
parent5bb48d0c75fee2b2d4965a0a282f7daf8e711e38 (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 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)