aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-04 19:58:26 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-05-02 19:24:28 +0200
commit522676b9a8eb56d235b5a66f641bd1b0a918b676 (patch)
treee4ceca564c95e1f489a97ea00c26774813d756c0 /openbsc/src/osmo-bsc/osmo_bsc_ctrl.c
parent1cd6c789cf4fcd5ac76e1ad72aac85dc987f191c (diff)
bsc: Prepare to have multiple MSC connections
We now have a list of MSCs but in the code we will try to access the MSC with the nr 0.
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_ctrl.c')
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_ctrl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c b/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c
index 889f85a30..123e538e0 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c
@@ -287,6 +287,8 @@ static int set_bts_loc(struct ctrl_cmd *cmd, void *data)
int ret;
struct gsm_network *gsmnet = (struct gsm_network *)data;
struct gsm_bts *bts = (struct gsm_bts *) cmd->node;
+ struct osmo_msc_data *msc;
+
if (!bts) {
cmd->reply = "bts not found.";
return CTRL_CMD_ERROR;
@@ -324,8 +326,10 @@ static int set_bts_loc(struct ctrl_cmd *cmd, void *data)
ret = get_bts_loc(cmd, data);
- if (!location_equal(curloc, lastloc))
- generate_location_state_trap(bts, gsmnet->bsc_data->msc.msc_con);
+ if (!location_equal(curloc, lastloc)) {
+ llist_for_each_entry(msc, &gsmnet->bsc_data->mscs, entry)
+ generate_location_state_trap(bts, msc->msc_con);
+ }
cleanup_locations(&bts->loc_list);