bsc: Point back from struct osmo_msc_data to struct gsm_network

This commit is contained in:
Daniel Willmann 2011-03-03 13:48:28 +01:00 committed by Holger Hans Peter Freyther
parent de2b860dff
commit 163f612326
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;