aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-09-11 18:31:08 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-09-12 14:39:20 +0700
commit4d4368419427b04bb689f45840bab79e3dc04328 (patch)
tree401638712b3919c0392ffbda35b37cb44773b768
parent54bde5a8bac92fd285ec51734dab6ae38742b26e (diff)
vty: add multi-ARFCN specific warning for chan N > 0
-rw-r--r--CommonLibs/trx_vty.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/CommonLibs/trx_vty.c b/CommonLibs/trx_vty.c
index 1cf4f5a..3fcf888 100644
--- a/CommonLibs/trx_vty.c
+++ b/CommonLibs/trx_vty.c
@@ -520,6 +520,12 @@ DEFUN(cfg_chan_rx_path, cfg_chan_rx_path_cmd,
{
struct trx_chan *chan = vty->index;
+ if (chan->trx->cfg.multi_arfcn && chan->idx > 0) {
+ vty_out(vty, "%% Setting 'rx-path' for chan %u in multi-ARFCN mode "
+ "does not make sense, because only chan 0 is used%s",
+ chan->idx, VTY_NEWLINE);
+ }
+
osmo_talloc_replace_string(chan->trx, &chan->rx_path, argv[0]);
return CMD_SUCCESS;
@@ -532,6 +538,12 @@ DEFUN(cfg_chan_tx_path, cfg_chan_tx_path_cmd,
{
struct trx_chan *chan = vty->index;
+ if (chan->trx->cfg.multi_arfcn && chan->idx > 0) {
+ vty_out(vty, "%% Setting 'tx-path' for chan %u in multi-ARFCN mode "
+ "does not make sense, because only chan 0 is used%s",
+ chan->idx, VTY_NEWLINE);
+ }
+
osmo_talloc_replace_string(chan->trx, &chan->tx_path, argv[0]);
return CMD_SUCCESS;