[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.
This commit is contained in:
Holger Hans Peter Freyther 2010-02-09 15:44:14 +01:00
parent d3d5be1cde
commit fb0b6fcaea
1 changed files with 4 additions and 2 deletions

View File

@ -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;