bsc: Move the finding of a MSC into the filter code

For responding to paging on the right link we will need to
figure out if the msg is a paging response.
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_api.c b/openbsc/src/osmo-bsc/osmo_bsc_api.c
index 8fa17e6..7acb00a 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_api.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_api.c
@@ -81,25 +81,6 @@
 	queue_msg_or_return(resp);
 }
 
-static struct osmo_msc_data *find_msc(struct gsm_subscriber_connection *conn,
-				      struct msgb *msg)
-{
-	struct osmo_bsc_data *bsc;
-	struct osmo_msc_data *msc;
-
-	bsc = conn->bts->network->bsc_data;
-	llist_for_each_entry(msc, &bsc->mscs, entry) {
-		if (!msc->msc_con->is_authenticated)
-			continue;
-
-		/* force round robin by moving it to the end */
-		llist_move_tail(&msc->entry, &bsc->mscs);
-		return msc;
-	}
-
-	return NULL;
-}
-
 /*
  * Instruct to reserve data for a new connectiom, create the complete
  * layer three message, send it to open the connection.
@@ -115,7 +96,7 @@
 	LOGP(DMSC, LOGL_INFO, "Tx MSC COMPL L3\n");
 
 	/* find the MSC link we want to use */
-	msc = find_msc(conn, msg);
+	msc = bsc_find_msc(conn, msg);
 	if (!msc) {
 		LOGP(DMSC, LOGL_ERROR, "Failed to find a MSC for a connection.\n");
 		return -1;