From 8f8c2a621de1977c2684b2b70e06720ac850b858 Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Mon, 15 Jun 2015 00:33:37 -0400 Subject: 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. --- src/osmo-bts-trx/trx_if.c | 10 ++++++++-- 1 file 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) -- cgit v1.2.3