diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-02-07 19:49:14 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-02-14 17:31:27 +0000 |
commit | 6b4c6aa375bfe1d49594d8a43345dc6b5df917c3 (patch) | |
tree | 44473576d31700938b077e6b493a99cf7f4e94d1 /src/osmo-bts-sysmo/sysmobts_vty.c | |
parent | c4ac69dcc2bd3825e73f2a026dccc8813dcbe592 (diff) |
sysmobts: fully support trx_power_params
The simplistic approach of sysmobts_get_nominal_power() is insufficient
to cope for devices that have an internal PA. The Actual transceiver
board is driven to a certain level (0..23 dBm typically), and the
external PA must be handled independent of that. Increasing the return
value of sysmobts_get_nominal_power() would result in the sysmoBTS
mainboard attempting to reach a higher power, which is wrong.
This change affects sysmoBTS 1020 and 1100. It causes power-ramping to
be used by default. For 1002 and 2050, no behavior change is expected.
Change-Id: Ieff75d5becaa80a2097b6e744c75c2d16259c9a4
Diffstat (limited to 'src/osmo-bts-sysmo/sysmobts_vty.c')
-rw-r--r-- | src/osmo-bts-sysmo/sysmobts_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/sysmobts_vty.c b/src/osmo-bts-sysmo/sysmobts_vty.c index 330c9ce8..b5940dcf 100644 --- a/src/osmo-bts-sysmo/sysmobts_vty.c +++ b/src/osmo-bts-sysmo/sysmobts_vty.c @@ -438,7 +438,7 @@ void bts_model_config_write_bts(struct vty *vty, struct gsm_bts *bts) void bts_model_config_write_trx(struct vty *vty, struct gsm_bts_trx *trx) { - if (trx->nominal_power != sysmobts_get_nominal_power(trx)) + if (trx->nominal_power != get_p_max_out_mdBm(trx)) vty_out(vty, " nominal-tx-power %d%s", trx->nominal_power, VTY_NEWLINE); } |