aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-12 18:34:20 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-05-12 18:34:20 +0800
commite174061d1780ba62bc83c7500c2fcdacca54be6a (patch)
tree1c95a39745cc95c1b0a5a5756be0f3faaa9c8689
parent6e1c3412aea2ae249ca2a5c1d1322b2df1e72c9b (diff)
bssap: Use libosmocore for message creation.
-rw-r--r--openbsc/src/bssap.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c
index 0d8e0f13e..dd0346e29 100644
--- a/openbsc/src/bssap.c
+++ b/openbsc/src/bssap.c
@@ -174,7 +174,7 @@ static int bssmap_handle_clear_command(struct sccp_connection *conn,
}
/* send the clear complete message */
- resp = bssmap_create_clear_complete();
+ resp = gsm0808_create_clear_complete();
if (!resp) {
LOGP(DMSC, LOGL_ERROR, "Sending clear complete failed.\n");
return -1;
@@ -765,20 +765,6 @@ struct msgb *bssmap_create_layer3(struct msgb *msg_l3)
return msg;
}
-struct msgb *bssmap_create_clear_complete(void)
-{
- struct msgb *msg = msgb_alloc(30, "bssmap: clear complete");
- if (!msg)
- return NULL;
-
- msg->l3h = msgb_put(msg, 3);
- msg->l3h[0] = BSSAP_MSG_BSS_MANAGEMENT;
- msg->l3h[1] = 1;
- msg->l3h[2] = BSS_MAP_MSG_CLEAR_COMPLETE;
-
- return msg;
-}
-
struct msgb *bssmap_create_cipher_complete(struct msgb *layer3)
{
struct msgb *msg = msgb_alloc_headroom(BSSMAP_MSG_SIZE, BSSMAP_MSG_HEADROOM,