aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/osmo_bsc_rf.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-16 00:10:18 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-16 00:10:18 +0800
commit7a1591b3cf96e612943fa56ec225658260f19bc2 (patch)
treec86770798260a88c0838bdc87020363d1f480ef9 /openbsc/include/openbsc/osmo_bsc_rf.h
parent9a8b5ae9775430fba1861321b0e9e964ec13db0f (diff)
osmo_rf: Keep the current policy inside the RF struct..
Keep a back pointer to the rf struct inside the connection, resolve the network through the back pointer. Also assume that the RF is on. In case we start with RF locked, the policy is on but we will not see any MS talking to us.
Diffstat (limited to 'openbsc/include/openbsc/osmo_bsc_rf.h')
-rw-r--r--openbsc/include/openbsc/osmo_bsc_rf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/osmo_bsc_rf.h b/openbsc/include/openbsc/osmo_bsc_rf.h
index 163e55cc8..dec9572fc 100644
--- a/openbsc/include/openbsc/osmo_bsc_rf.h
+++ b/openbsc/include/openbsc/osmo_bsc_rf.h
@@ -6,13 +6,15 @@
struct gsm_network;
struct osmo_bsc_rf {
+ /* the value of signal.h */
+ int policy;
struct bsc_fd listen;
struct gsm_network *gsm_network;
};
struct osmo_bsc_rf_conn {
struct write_queue queue;
- struct gsm_network *gsm_network;
+ struct osmo_bsc_rf *rf;
};
struct osmo_bsc_rf *osmo_bsc_rf_create(const char *path, struct gsm_network *net);