summaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-08-06 17:41:19 +0200
committerHarald Welte <laforge@netfilter.org>2009-08-06 17:41:19 +0200
commitd158605db1d5c406b55d3a1636c3e45dcd19decb (patch)
treeee887c161d0ea6f4ce86a13ffa4a5b407f4304aa /openbsc/src
parentac56e8b442cedade58afe56405f1117969890246 (diff)
only set BCCH INFO on first TRX (C0) of BTS
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/bsc_hack.c10
1 files changed, 6 insertions, 4 deletions
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));