bsc: Move the rf_ctl into the msc data struct
diff --git a/openbsc/src/bsc/osmo_bsc_main.c b/openbsc/src/bsc/osmo_bsc_main.c
index a79d7ea..649f0a5 100644
--- a/openbsc/src/bsc/osmo_bsc_main.c
+++ b/openbsc/src/bsc/osmo_bsc_main.c
@@ -216,9 +216,9 @@
}
if (rf_ctl) {
- struct osmo_bsc_rf *rf;
- rf = osmo_bsc_rf_create(rf_ctl, bsc_gsmnet);
- if (!rf) {
+ struct osmo_msc_data *data = bsc_gsmnet->msc_data;
+ data->rf_ctl = osmo_bsc_rf_create(rf_ctl, bsc_gsmnet);
+ if (!data->rf_ctl) {
fprintf(stderr, "Failed to create the RF service.\n");
exit(1);
}