aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-12-21 17:02:32 +0100
committerHarald Welte <laforge@netfilter.org>2009-12-21 19:10:55 +0100
commit6a22c0135a6ac49d716d38a92c9d9c9a329da980 (patch)
tree6ba5d6e77f93f5e54a90b93c2ea0125ff5d206ba
parent31b0347e7221375ff811c0cb2842505816b543c2 (diff)
[gprs] SI 13 should only be generated on C0 (BCCH-carrying TRX)
-rw-r--r--openbsc/src/bsc_init.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c
index 8450af6d0..48d90d700 100644
--- a/openbsc/src/bsc_init.c
+++ b/openbsc/src/bsc_init.c
@@ -681,15 +681,16 @@ static int set_system_infos(struct gsm_bts_trx *trx)
DEBUGP(DRR, "SI%2u: %s\n", i, hexdump(si_tmp, rc));
rsl_bcch_info(trx, i, si_tmp, sizeof(si_tmp));
}
- }
#ifdef GPRS
- i = 13
- rc = gsm_generate_si(si_tmp, trx->bts, RSL_SYSTEM_INFO_13);
- if (rc < 0)
- goto err_out;
- DEBUGP(DRR, "SI%2u: %s\n", i, hexdump(si_tmp, rc));
- rsl_bcch_info(trx, RSL_SYSTEM_INFO_13, si_tmp, rc);
+ i = 13
+ rc = gsm_generate_si(si_tmp, trx->bts, RSL_SYSTEM_INFO_13);
+ if (rc < 0)
+ goto err_out;
+ DEBUGP(DRR, "SI%2u: %s\n", i, hexdump(si_tmp, rc));
+ rsl_bcch_info(trx, RSL_SYSTEM_INFO_13, si_tmp, rc);
#endif
+ }
+
i = 5;
rc = gsm_generate_si(si_tmp, trx->bts, RSL_SYSTEM_INFO_5);
if (rc < 0)