diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-05-31 10:57:08 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-05-31 10:57:40 +0200 |
commit | c513ded578b239b578d2f0e17d00a4a421951ff8 (patch) | |
tree | 808be59f965b5f1cec05bf17735f455b0ec655b4 /openbsc/src | |
parent | 3fab3fdd24024f9b6208cc4b04b5c6b2d9746218 (diff) |
vty / cfg_bts_tsc: TSC range is 0..7, not 0..255
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libbsc/bsc_vty.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c index ce493d7cc..e6d232794 100644 --- a/openbsc/src/libbsc/bsc_vty.c +++ b/openbsc/src/libbsc/bsc_vty.c @@ -1503,17 +1503,12 @@ DEFUN(cfg_bts_lac, DEFUN(cfg_bts_tsc, cfg_bts_tsc_cmd, - "training_sequence_code <0-255>", + "training_sequence_code <0-7>", "Set the Training Sequence Code (TSC) of this BTS\n") { struct gsm_bts *bts = vty->index; int tsc = atoi(argv[0]); - if (tsc < 0 || tsc > 0xff) { - vty_out(vty, "%% TSC %d is not in the valid range (0-255)%s", - tsc, VTY_NEWLINE); - return CMD_WARNING; - } bts->tsc = tsc; return CMD_SUCCESS; |