diff options
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/include/openbsc/osmo_msc_data.h | 3 | ||||
-rw-r--r-- | openbsc/src/libcommon/gsm_data.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/osmo_msc_data.h b/openbsc/include/openbsc/osmo_msc_data.h index 6f437b756..a35e6f244 100644 --- a/openbsc/include/openbsc/osmo_msc_data.h +++ b/openbsc/include/openbsc/osmo_msc_data.h @@ -36,6 +36,9 @@ struct gsm_audio_support { }; struct osmo_msc_data { + /* Back pointer */ + struct gsm_network *network; + /* Connection data */ char *bsc_token; int msc_port; diff --git a/openbsc/src/libcommon/gsm_data.c b/openbsc/src/libcommon/gsm_data.c index 081605f65..fa75654e4 100644 --- a/openbsc/src/libcommon/gsm_data.c +++ b/openbsc/src/libcommon/gsm_data.c @@ -267,6 +267,9 @@ struct gsm_network *gsm_network_init(uint16_t country_code, uint16_t network_cod return NULL; } + /* Init back pointer */ + net->msc_data->network = net; + net->country_code = country_code; net->network_code = network_code; net->num_bts = 0; |