summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/bsc_init.c
diff options
context:
space:
mode:
authorMichael McTernan <mike.mcternan@wavemobile.com>2015-06-19 20:51:43 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-06-19 20:51:43 +0200
commitc58a1e573b4eedc213f210b97f6a3d82ffdc056f (patch)
tree84afff64e8350987b556846a7c9eef3bb99d1de0 /openbsc/src/libbsc/bsc_init.c
parentce97a06fa385c97715bb52b34cc571789e9c79e5 (diff)
Fix GSM900 ARFCN range check
Allow ARFCN 0 to be used in GSM900 band.
Diffstat (limited to 'openbsc/src/libbsc/bsc_init.c')
-rw-r--r--openbsc/src/libbsc/bsc_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libbsc/bsc_init.c b/openbsc/src/libbsc/bsc_init.c
index 374ad7b77..a63528c87 100644
--- a/openbsc/src/libbsc/bsc_init.c
+++ b/openbsc/src/libbsc/bsc_init.c
@@ -397,10 +397,10 @@ static int bootstrap_bts(struct gsm_bts *bts)
}
break;
case GSM_BAND_900:
- if (bts->c0->arfcn < 1 ||
+ if (bts->c0->arfcn < 0 ||
(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");
+ LOGP(DNM, LOGL_ERROR, "GSM900 channel must be between 0-124, 955-1023.\n");
return -EINVAL;
}
break;