only set BCCH INFO on first TRX (C0) of BTS

This commit is contained in:
Harald Welte 2009-08-06 17:41:19 +02:00
parent ac56e8b442
commit d158605db1
1 changed files with 6 additions and 4 deletions

View File

@ -907,10 +907,12 @@ static int set_system_infos(struct gsm_bts_trx *trx)
{
int i;
for (i = 0; i < ARRAY_SIZE(bcch_infos); i++) {
rsl_bcch_info(trx, bcch_infos[i].type,
bcch_infos[i].data,
bcch_infos[i].len);
if (trx == trx->bts->c0) {
for (i = 0; i < ARRAY_SIZE(bcch_infos); i++) {
rsl_bcch_info(trx, bcch_infos[i].type,
bcch_infos[i].data,
bcch_infos[i].len);
}
}
rsl_sacch_filling(trx, RSL_SYSTEM_INFO_5, si5, sizeof(si5));
rsl_sacch_filling(trx, RSL_SYSTEM_INFO_6, si6, sizeof(si6));