fix generation of frequency list (E-GSM vs. P-GSM 900)

This commit is contained in:
Harald Welte 2012-02-17 15:58:23 +01:00
parent c8ddf73c8f
commit 2935034b5e
1 changed files with 3 additions and 2 deletions

View File

@ -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++) {