diff --git a/Makefile.tools b/Makefile.tools
index f7fbc40..0509e68 100644
--- a/Makefile.tools
+++ b/Makefile.tools
monitor/vendor.h monitor/vendor.c \
monitor/l2cap.h monitor/l2cap.c \
monitor/uuid.h monitor/uuid.c \
- monitor/sdp.h monitor/sdp.c
+ monitor/sdp.h monitor/sdp.c \
+ monitor/ll.h monitor/ll.c
monitor_btmon_LDADD = lib/libbluetooth-internal.la
endif
diff --git a/monitor/ll.c b/monitor/ll.c
new file mode 100644
index 0000000..95fed72
--- /dev/null
+++ b/monitor/ll.c
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2011-2012 Intel Corporation
+ * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "packet.h"
+#include "ll.h"
+
+void ll_packet(uint16_t frequency, const void *data, uint8_t size)
+{
+ packet_hexdump(data, size);
+}
diff --git a/monitor/ll.h b/monitor/ll.h
new file mode 100644
index 0000000..496bc22
--- /dev/null
+++ b/monitor/ll.h
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2011-2012 Intel Corporation
+ * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#include <stdint.h>
+
+void ll_packet(uint16_t frequency, const void *data, uint8_t size);
diff --git a/monitor/packet.c b/monitor/packet.c
index 1d69c17..4070e60 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
#include "display.h"
#include "bt.h"
+#include "ll.h"
#include "uuid.h"
#include "l2cap.h"
#include "control.h"
print_packet(tv, 0, '*', COLOR_PHY_PACKET, label, NULL, extra);
- packet_hexdump(data, size);
+ ll_packet(frequency, data, size);
}
static void null_cmd(const void *data, uint8_t size)