diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-06-15 00:33:37 -0400 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-09-06 14:48:33 +0200 |
commit | 713e847a131a9df07196df44ee4fa44bc3445476 (patch) | |
tree | 0357f4b74b377fcb975a87178eebbd73d2ec8119 | |
parent | d5ef08e19630ad1a1f7aa32df2a82156d35dae7f (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.c | 10 |
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) |