From d6aa52488a19674fb142e9619b579f600b2fec9a Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 12 Dec 2009 13:44:19 +0100 Subject: [PATCH] add warning about accept-all network on non-barred cells --- openbsc/src/bsc_init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c index d21f71a0c..c46fb2cdc 100644 --- a/openbsc/src/bsc_init.c +++ b/openbsc/src/bsc_init.c @@ -795,6 +795,14 @@ static int bootstrap_bts(struct gsm_bts *bts) return -EINVAL; } + if (bts->network->auth_policy == GSM_AUTH_POLICY_ACCEPT_ALL && + !bts->cell_barred) + fprintf(stderr, "\nWARNING: You are running an 'accept-all' " + "network on a BTS that is not barred. This " + "configuration is likely to interfere with production " + "GSM networks and should only be used in a RF " + "shielded environment such as a faraday cage!\n\n"); + /* Control Channel Description */ bts->si_common.chan_desc.att = 1; bts->si_common.chan_desc.ccch_conf = RSL_BCCH_CCCH_CONF_1_C;