aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-12 18:33:15 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-05-12 18:33:15 +0800
commit6e1c3412aea2ae249ca2a5c1d1322b2df1e72c9b (patch)
treefbc3e963d7885b0bc4c26f9c104dd779253d5468 /openbsc
parentbff54b3e0005989a6d0ddfecde6699458aecfb39 (diff)
bssap: Use libosmocore to create GSM0808 Reset
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bsc_msc_ip.c3
-rw-r--r--openbsc/src/bssap.c16
2 files changed, 2 insertions, 17 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c
index 8bb50eb9a..12d4c8bf3 100644
--- a/openbsc/src/bsc_msc_ip.c
+++ b/openbsc/src/bsc_msc_ip.c
@@ -52,6 +52,7 @@
#include <osmocore/select.h>
#include <osmocore/talloc.h>
#include <osmocore/write_queue.h>
+#include <osmocore/gsm0808.h>
#include <sccp/sccp.h>
@@ -830,7 +831,7 @@ static void initialize_if_needed(void)
if (!bsc_gsmnet->msc_con->is_authenticated) {
/* send a gsm 08.08 reset message from here */
- msg = bssmap_create_reset();
+ msg = gsm0808_create_reset();
if (!msg) {
LOGP(DMSC, LOGL_ERROR, "Failed to create the reset message.\n");
return;
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c
index 110f15497..0d8e0f13e 100644
--- a/openbsc/src/bssap.c
+++ b/openbsc/src/bssap.c
@@ -765,22 +765,6 @@ struct msgb *bssmap_create_layer3(struct msgb *msg_l3)
return msg;
}
-struct msgb *bssmap_create_reset(void)
-{
- struct msgb *msg = msgb_alloc(30, "bssmap: reset");
- if (!msg)
- return NULL;
-
- msg->l3h = msgb_put(msg, 6);
- msg->l3h[0] = BSSAP_MSG_BSS_MANAGEMENT;
- msg->l3h[1] = 0x04;
- msg->l3h[2] = 0x30;
- msg->l3h[3] = 0x04;
- msg->l3h[4] = 0x01;
- msg->l3h[5] = 0x20;
- return msg;
-}
-
struct msgb *bssmap_create_clear_complete(void)
{
struct msgb *msg = msgb_alloc(30, "bssmap: clear complete");