aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_init.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-12-21 23:08:18 +0100
committerHarald Welte <laforge@netfilter.org>2009-12-21 23:08:18 +0100
commit713550120cb9231de49090c01abb6e867a93137d (patch)
treeeb3826d7fdade3d9b0cbf8f49dc374ee4a24b944 /openbsc/src/bsc_init.c
parent1394fea03f888408616cac3a669191f2e6923c8f (diff)
remove duplicate flag for cell barring
it's sufficient if we keep the state of cell barring in one place
Diffstat (limited to 'openbsc/src/bsc_init.c')
-rw-r--r--openbsc/src/bsc_init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c
index 48d90d700..86a93a1a9 100644
--- a/openbsc/src/bsc_init.c
+++ b/openbsc/src/bsc_init.c
@@ -804,7 +804,7 @@ static int bootstrap_bts(struct gsm_bts *bts)
}
if (bts->network->auth_policy == GSM_AUTH_POLICY_ACCEPT_ALL &&
- !bts->cell_barred)
+ !bts->si_common.rach_control.cell_bar)
LOGP(DNM, LOG_ERROR, "\nWARNING: You are running an 'accept-all' "
"network on a BTS that is not barred. This "
"configuration is likely to interfere with production "
@@ -815,8 +815,6 @@ static int bootstrap_bts(struct gsm_bts *bts)
bts->si_common.chan_desc.att = 1;
bts->si_common.chan_desc.ccch_conf = RSL_BCCH_CCCH_CONF_1_C;
bts->si_common.chan_desc.bs_pa_mfrms = RSL_BS_PA_MFRMS_5;
- if (bts->cell_barred)
- bts->si_common.rach_control.cell_bar = 1;
/* T3212 is set from vty/config */
/* some defaults for our system information */