diff options
author | Tom Tsou <tom.tsou@ettus.com> | 2019-04-01 07:55:48 +0700 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-04-11 07:33:40 +0000 |
commit | d280045884f5878c393c1786ff518567d0ea0593 (patch) | |
tree | 9a5830c9ca8cfa3078e8fcb154b03a80a34b02f4 /Transceiver52M/osmo-trx.cpp | |
parent | 5e6f3e0cadf7859ae90073cd07afec550892a448 (diff) |
multi-ARFCN: fix maximum number of carriers limitation
Maximum number of carriers is fixed to 3 channels on a single
physical RF channel in multi-ARFCN mode. For some reason, it
was limited to 5.
Let's fix this, and also follow this limitation in the
following VTY command handlers:
- cfg_multi_arfcn_cmd,
- cfg_chan_cmd.
Change-Id: I66a1462f368458afd313ee6f0bc0abc496dde817
Diffstat (limited to 'Transceiver52M/osmo-trx.cpp')
-rw-r--r-- | Transceiver52M/osmo-trx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp index b252d0c..7489e7c 100644 --- a/Transceiver52M/osmo-trx.cpp +++ b/Transceiver52M/osmo-trx.cpp @@ -411,7 +411,7 @@ bad_config: int trx_validate_config(struct trx_ctx *trx) { - if (trx->cfg.multi_arfcn && trx->cfg.num_chans > 5) { + if (trx->cfg.multi_arfcn && trx->cfg.num_chans > TRX_MCHAN_MAX) { LOG(ERROR) << "Unsupported number of channels"; return -1; } |