diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-29 18:57:10 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-07-29 18:57:10 +0800 |
commit | 1a9ffe85ebd40264ff69cf70ab50e89c9877241e (patch) | |
tree | c79a68b18a4de2edf7c9842bf86b7b19e1df6ed8 /openbsc | |
parent | c94b9c4eb4ab6a5165a325d8f250d93da29df6d9 (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')
-rw-r--r-- | openbsc/include/openbsc/gsm_data.h | 2 | ||||
-rw-r--r-- | openbsc/src/bsc_msc_ip.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index be5158bbb..1b5d6dc6c 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -88,6 +88,7 @@ typedef int gsm_cbfn(unsigned int hooknum, struct msgb *msg, void *data, void *param); +struct bsc_msc_rf; struct sccp_connection; /* Real authentication information containing Ki */ @@ -696,6 +697,7 @@ struct gsm_network { struct bsc_msc_connection *msc_con; int ping_timeout; int pong_timeout; + struct bsc_msc_rf *rf; }; #define SMS_HDR_SIZE 128 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); } |