diff options
-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); } |