aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-04 15:12:57 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-03-16 11:56:10 +0100
commitf936fb4086b073ca72b9e77e437b908acd0288f6 (patch)
tree4ac21d8684c37041e129685e3649867d83f92a69 /openbsc/src/osmo-bsc/osmo_bsc_bssap.c
parent4cdb050d132cb4a9f35f0ab1165f58f040132afe (diff)
bsc: Move the bsc_filter to use the osmo_bsc_sccp_con
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_bssap.c')
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_bssap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
index a4a544759..42a389791 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
@@ -297,7 +297,6 @@ static int bssmap_handle_assignm_req(struct osmo_bsc_sccp_con *conn,
{
struct msgb *resp;
struct osmo_msc_data *msc;
- struct gsm_network *network;
struct tlv_parsed tp;
uint8_t *data;
uint16_t cic;
@@ -311,7 +310,6 @@ static int bssmap_handle_assignm_req(struct osmo_bsc_sccp_con *conn,
return -1;
}
- network = conn->conn->bts->network;
tlv_parse(&tp, gsm0808_att_tlvdef(), msg->l4h + 1, length - 1, 0, 0);
if (!TLVP_PRESENT(&tp, GSM0808_IE_CHANNEL_TYPE)) {
@@ -358,7 +356,7 @@ static int bssmap_handle_assignm_req(struct osmo_bsc_sccp_con *conn,
* the correct value.
*/
full_rate = 0;
- msc = &network->bsc_data->msc;
+ msc = conn->msc;
for (supported = 0;
chan_mode == GSM48_CMODE_SIGN && supported < msc->audio_length;
++supported) {