aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-29 18:57:10 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-07-29 18:57:10 +0800
commit1a9ffe85ebd40264ff69cf70ab50e89c9877241e (patch)
treec79a68b18a4de2edf7c9842bf86b7b19e1df6ed8 /openbsc/src
parentc94b9c4eb4ab6a5165a325d8f250d93da29df6d9 (diff)
bsc_rf: Embed the rf status inside the GSM Network.
Right now we have a network-wide RF lock, in the future one BSC might have multiple BTSs at different positions and a global state will not make sense anymore and need to be moved over to the BTS struct..
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/bsc_msc_ip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c
index 30b07b541..37b6e7f50 100644
--- a/openbsc/src/bsc_msc_ip.c
+++ b/openbsc/src/bsc_msc_ip.c
@@ -1245,9 +1245,8 @@ int main(int argc, char **argv)
}
if (rf_ctl) {
- struct bsc_msc_rf *rf;
- rf = bsc_msc_rf_create(rf_ctl, bsc_gsmnet);
- if (!rf) {
+ bsc_gsmnet->rf = bsc_msc_rf_create(rf_ctl, bsc_gsmnet);
+ if (!bsc_gsmnet->rf) {
fprintf(stderr, "Failed to create the RF service.\n");
exit(1);
}