From 9ad1f2404fa35ffa0b66a6d6aabfd0b744d1a251 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 29 Jul 2010 19:11:51 +0800 Subject: osmo_grace: Allow new connections when the network policy is S_RF_ON. In case of S_RF_OFF and S_RF_GRACE we will allow new connections. --- openbsc/src/bsc_msc_grace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbsc/src/bsc_msc_grace.c b/openbsc/src/bsc_msc_grace.c index 20b9c3206..29423041b 100644 --- a/openbsc/src/bsc_msc_grace.c +++ b/openbsc/src/bsc_msc_grace.c @@ -20,8 +20,10 @@ */ #include +#include +#include int bsc_grace_allow_new_connection(struct gsm_network *network) { - return 1; + return network->rf->policy == S_RF_ON; } -- cgit v1.2.3