[system_information] fix BCCH list generation for GSM900

We have to make sure to skip the global list header
This commit is contained in:
Harald Welte 2009-12-05 11:58:24 +05:30
parent 1dfd0e254a
commit a897bf3ded
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ static int generate_bcch_chan_list(u_int8_t *chan_list, const struct gsm_bts *bt
if (bts->band == GSM_BAND_900) {
chan_list[0] = 0;
llist_for_each_entry(cur_bts, &bts->list, list) {
if (&cur_bts->list == &bts->network->bts_list)
continue;
trx = cur_bts->c0;
rc = cchan_list_bm0_set_arfcn(chan_list, trx->arfcn);
if (rc < 0)