aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-02-17 15:58:23 +0100
committerHarald Welte <laforge@gnumonks.org>2012-02-17 15:59:25 +0100
commit2935034b5eca87c53f05e98bba2e05f91577a662 (patch)
tree998e4dd350ca2f95d486c8f22574f4a4603aee8d /openbsc
parentc8ddf73c8ff6bd9c9950876e231f8cf5dbe2212b (diff)
fix generation of frequency list (E-GSM vs. P-GSM 900)
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/libbsc/system_information.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/libbsc/system_information.c b/openbsc/src/libbsc/system_information.c
index 1b0f5c9bc..9842a9dfd 100644
--- a/openbsc/src/libbsc/system_information.c
+++ b/openbsc/src/libbsc/system_information.c
@@ -100,8 +100,9 @@ static int bitvec2freq_list(uint8_t *chan_list, struct bitvec *bv,
memset(chan_list, 0, 16);
- /* GSM900-only handsets only support 'bit map 0 format' */
- if (bts->band == GSM_BAND_900) {
+ /* P-GSM-only handsets only support 'bit map 0 format' */
+ if (bts->band == GSM_BAND_900
+ && bts->c0->arfcn >= 1 && bts->c0->arfcn <= 124) {
chan_list[0] = 0;
for (i = 0; i < bv->data_len*8; i++) {