diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-09-11 18:31:08 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-09-12 14:39:20 +0700 |
commit | 4d4368419427b04bb689f45840bab79e3dc04328 (patch) | |
tree | 401638712b3919c0392ffbda35b37cb44773b768 | |
parent | 54bde5a8bac92fd285ec51734dab6ae38742b26e (diff) |
vty: add multi-ARFCN specific warning for chan N > 0
Change-Id: I12d7c466a9a428a384233c4377627e262f165401
Related: OS#4636
-rw-r--r-- | CommonLibs/trx_vty.c | 12 |
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; |