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.
This commit is contained in:
Holger Hans Peter Freyther
2010-07-29 19:11:51 +08:00
parent 0dcacda194
commit 9ad1f2404f

View File

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