add warning about accept-all network on non-barred cells

This commit is contained in:
Harald Welte 2009-12-12 13:44:19 +01:00
parent 7bcb893eb7
commit d6aa52488a
1 changed files with 8 additions and 0 deletions

View File

@ -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;