From d158605db1d5c406b55d3a1636c3e45dcd19decb Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 6 Aug 2009 17:41:19 +0200 Subject: only set BCCH INFO on first TRX (C0) of BTS --- openbsc/src/bsc_hack.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'openbsc/src') diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c index 14920d577..343131028 100644 --- a/openbsc/src/bsc_hack.c +++ b/openbsc/src/bsc_hack.c @@ -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)); -- cgit v1.2.3