aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bsc/osmo_bsc_ctrl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo-bsc/osmo_bsc_ctrl.c b/src/osmo-bsc/osmo_bsc_ctrl.c
index 8c9dfe7a9..4460288e6 100644
--- a/src/osmo-bsc/osmo_bsc_ctrl.c
+++ b/src/osmo-bsc/osmo_bsc_ctrl.c
@@ -62,7 +62,10 @@ static int msc_connection_status = 0;
static int get_msc_connection_status(struct ctrl_cmd *cmd, void *data)
{
- if (msc_connection_status)
+ struct gsm_network *gsmnet = data;
+ struct bsc_msc_data *msc = osmo_msc_data_find(gsmnet, 0);
+
+ if (msc->msc_con->is_connected)
cmd->reply = "connected";
else
cmd->reply = "disconnected";