aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_init.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-02-09 15:44:14 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-09 15:44:14 +0100
commitdd2c9fdbcfa5ead8867d750b0fe7fa20d94e1d5e (patch)
tree65feb23d83fc9690892b0376ee6e5257d1b6a9b8 /openbsc/src/bsc_init.c
parent9991421cfb113d9c17aa5d3b2cdcbb2095135cd9 (diff)
[bsc] Allow to set a EGSM900, RGSM900 ARFCN
For R-GSM900 the channels 955-1023 are within the 900er band. The System Information Type generation can not cope with these channels yet.
Diffstat (limited to 'openbsc/src/bsc_init.c')
-rw-r--r--openbsc/src/bsc_init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c
index 10b8fd1b5..c87750d77 100644
--- a/openbsc/src/bsc_init.c
+++ b/openbsc/src/bsc_init.c
@@ -802,8 +802,10 @@ static int bootstrap_bts(struct gsm_bts *bts)
}
break;
case GSM_BAND_900:
- if (bts->c0->arfcn < 1 || bts->c0->arfcn > 124) {
- LOGP(DNM, LOGL_ERROR, "GSM900 channel must be between 1-124.\n");
+ if (bts->c0->arfcn < 1 ||
+ (bts->c0->arfcn > 124 && bts->c0->arfcn < 955) ||
+ bts->c0->arfcn > 1023) {
+ LOGP(DNM, LOGL_ERROR, "GSM900 channel must be between 1-124, 955-1023.\n");
return -EINVAL;
}
break;