aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-09-27 13:38:51 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-09-27 13:38:51 +0200
commitc91997b2cc1b21b8a87116cffb651b8051f6ae79 (patch)
tree23617514a48877b44f3da568433abcf6c7e9e43b
parent474eeed78d83dad756e5ee0bd4064affeda73d1a (diff)
bts-trx: vty: Use API to get poweron state
-rw-r--r--src/osmo-bts-trx/trx_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/trx_vty.c b/src/osmo-bts-trx/trx_vty.c
index c52908e0..250d1805 100644
--- a/src/osmo-bts-trx/trx_vty.c
+++ b/src/osmo-bts-trx/trx_vty.c
@@ -71,7 +71,7 @@ DEFUN(show_transceiver, show_transceiver_cmd, "show transceiver",
vty_out(vty, "TRX %d %s%s", trx->nr, sname, VTY_NEWLINE);
talloc_free(sname);
vty_out(vty, " %s%s",
- (l1h->config.poweron) ? "poweron":"poweroff",
+ trx_if_powered(l1h) ? "poweron":"poweroff",
VTY_NEWLINE);
if (l1h->config.arfcn_valid)
vty_out(vty, " arfcn : %d%s%s",