This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/16653 )
Change subject: osmo-bts-trx/vty: ensure backwards compatibility with older config files
......................................................................
osmo-bts-trx/vty: ensure backwards compatibility with older config files
osmo-bts-trx used to have its own (low-level) MS Power Control loop,
but recently it has been ripped out. Since [1], the process fails to
start if the configuration file still contains 'ms-power-control dsp'.
Let's be more tolerant: override 'dsp' by 'osmo' and print a warning.
[1] I49706926b1e962b18791174627bc3cc0cd0cd9d5
Change-Id: I4facd21bca3d8cb80d21e83ea267bc013e474533
---
M src/common/vty.c
1 file changed, 12 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/53/16653/1
diff --git a/src/common/vty.c b/src/common/vty.c
index 8b947a7..e7af520 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -792,8 +792,18 @@
bool soft = !strcmp(argv[0], "osmo");
if (!soft && !gsm_bts_has_feature(trx->bts, BTS_FEAT_MS_PWR_CTRL_DSP)) {
- vty_out(vty, "This BTS model has no DSP/HW MS Power Control support%s", VTY_NEWLINE);
- return CMD_WARNING;
+ /* NOTE: osmo-bts-trx used to have its own (low-level) MS Power Control loop,
+ * which has been ripped out recently. Configuration files may still contain
+ * 'dsp', so let's be tolerant: override 'dsp' by 'osmo' and print a warning. */
+ if (trx->bts->variant == BTS_OSMO_TRX && vty->type == VTY_FILE) {
+ vty_out(vty, "BTS model 'osmo-bts-trx' has no DSP/HW MS Power Control support, "
+ "consider updating your configuration file!%s", VTY_NEWLINE);
+ soft = true; /* override */
+ return CMD_SUCCESS;
+ } else {
+ vty_out(vty, "This BTS model has no DSP/HW MS Power Control support%s", VTY_NEWLINE);
+ return CMD_WARNING;
+ }
}
trx->ms_pwr_ctl_soft = soft;
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/16653
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I4facd21bca3d8cb80d21e83ea267bc013e474533
Gerrit-Change-Number: 16653
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191219/b007221d/attachment.htm>