aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-10 09:31:41 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-15 20:06:49 +0100
commit863a55d44d3c38df6a46abc07e037ef1f92787b1 (patch)
tree5d65bd6a1f6910eb6c33c2bfc2ea91b482c21908 /openbsc/src/bsc
parent890dfc58edf29dce73f5d645945aaf562453f25a (diff)
bsc: Make bsc_queue_for_msc work on the osmo_bsc_sccp_con
The gsm_subscriber_connection can die before the SCCP connection so we should work on the osmo_bsc_sccp_con.
Diffstat (limited to 'openbsc/src/bsc')
-rw-r--r--openbsc/src/bsc/osmo_bsc_api.c4
-rw-r--r--openbsc/src/bsc/osmo_bsc_sccp.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/bsc/osmo_bsc_api.c b/openbsc/src/bsc/osmo_bsc_api.c
index 8ee857d11..196409973 100644
--- a/openbsc/src/bsc/osmo_bsc_api.c
+++ b/openbsc/src/bsc/osmo_bsc_api.c
@@ -42,7 +42,7 @@
LOGP(DMSC, LOGL_ERROR, "Failed to allocate response.\n"); \
return; \
} \
- bsc_queue_for_msc(conn, resp);
+ bsc_queue_for_msc(conn->sccp_con, resp);
static uint16_t get_network_code_for_msc(struct gsm_network *net)
{
@@ -155,7 +155,7 @@ static int bsc_clear_request(struct gsm_subscriber_connection *conn, uint32_t ca
return 0;
}
- bsc_queue_for_msc(conn, resp);
+ bsc_queue_for_msc(conn->sccp_con, resp);
return 0;
}
diff --git a/openbsc/src/bsc/osmo_bsc_sccp.c b/openbsc/src/bsc/osmo_bsc_sccp.c
index ad2ee5177..a7c51dd94 100644
--- a/openbsc/src/bsc/osmo_bsc_sccp.c
+++ b/openbsc/src/bsc/osmo_bsc_sccp.c
@@ -126,9 +126,9 @@ static int msc_sccp_read(struct msgb *msgb, unsigned int length, void *data)
return bsc_handle_udt(net, net->msc_data->msc_con, msgb, length);
}
-int bsc_queue_for_msc(struct gsm_subscriber_connection *conn, struct msgb *msg)
+int bsc_queue_for_msc(struct osmo_bsc_sccp_con *conn, struct msgb *msg)
{
- struct sccp_connection *sccp = conn->sccp_con->sccp;
+ struct sccp_connection *sccp = conn->sccp;
if (sccp->connection_state != SCCP_CONNECTION_STATE_ESTABLISHED) {
LOGP(DMSC, LOGL_ERROR, "The connection is not established.\n");