diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-05-22 22:35:45 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-05-22 22:38:38 +0200 |
commit | d7be09caf8d49ac65ed626bca9de2fb738a365b6 (patch) | |
tree | 9b063758340a128548da22abbc36b3e8ccbd21e2 | |
parent | 57f9a279e0ae4f57b79440c9cac666a0d3baf4f8 (diff) |
sysmo: Fix "nominal power" / BS power display in VTY
The function get_p_max_out_mdBm() returns a value in 1/1000th of dBm,
"milli-dBm", while trx->nominal_power is only whole dBm. We were
missing the required divider of 1000 ever since Change-Id
Ieff75d5becaa80a2097b6e744c75c2d16259c9a4 was merged in February 2017.
The good news is that this really only affected the VTY output and
not any actual operational aspect of the system.
Change-Id: If92d0b15c48dafc63776b82c7ff5f3c2b3505f68
Closes: SYS#4570
-rw-r--r-- | src/osmo-bts-sysmo/l1_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c index 87cf25a0..6f61c67b 100644 --- a/src/osmo-bts-sysmo/l1_if.c +++ b/src/osmo-bts-sysmo/l1_if.c @@ -1883,7 +1883,7 @@ int bts_model_phy_link_open(struct phy_link *plink) LOGP(DL1C, LOGL_NOTICE, "Cannot determine nominal " "transmit power. Assuming 23dBm.\n"); } - bts->c0->nominal_power = rc; + bts->c0->nominal_power = rc / 1000; } hdl = pinst->u.sysmobts.hdl; |