diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2011-03-03 13:48:28 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-04-26 09:33:47 +0200 |
commit | 163f6123265de45404e5420853e4263493c7de8a (patch) | |
tree | ea25edd6789c57b269ee725529fa471f4f50bbc6 /openbsc | |
parent | de2b860dffd5e55b52ecf0db36b326f17cf70e10 (diff) |
bsc: Point back from struct osmo_msc_data to struct gsm_network
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; |