Fix GSM900 ARFCN range check
Allow ARFCN 0 to be used in GSM900 band.
This commit is contained in:
parent
ce97a06fa3
commit
c58a1e573b
|
@ -397,10 +397,10 @@ static int bootstrap_bts(struct gsm_bts *bts)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GSM_BAND_900:
|
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 > 124 && bts->c0->arfcn < 955) ||
|
||||||
bts->c0->arfcn > 1023) {
|
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;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue