aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-29 19:11:51 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-07-29 19:11:51 +0800
commit9ad1f2404fa35ffa0b66a6d6aabfd0b744d1a251 (patch)
tree48e43e212017b2a3c52d37b262695d356e3914dc /openbsc
parent0dcacda1943591be9785cd5ea9063519a600cb9f (diff)
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.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bsc_msc_grace.c4
1 files changed, 3 insertions, 1 deletions
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 <openbsc/bsc_msc_grace.h>
+#include <openbsc/bsc_msc_rf.h>
+#include <openbsc/signal.h>
int bsc_grace_allow_new_connection(struct gsm_network *network)
{
- return 1;
+ return network->rf->policy == S_RF_ON;
}