diff --git a/tools/btproxy.c b/tools/btproxy.c
index 6c8f29b..47cffa9 100644
--- a/tools/btproxy.c
+++ b/tools/btproxy.c
#include "src/shared/mainloop.h"
#include "monitor/bt.h"
+#define HCI_BREDR 0x00
+#define HCI_AMP 0x01
+
#define BTPROTO_HCI 1
struct sockaddr_hci {
sa_family_t hci_family;
const char *server_address = NULL;
const char *unix_path = NULL;
unsigned short tcp_port = 0xb1ee; /* 45550 */
+ uint8_t type = HCI_BREDR;
const char *str;
sigset_t mask;
for (;;) {
int opt;
- opt = getopt_long(argc, argv, "c:l::u::p:i:dvh",
+ opt = getopt_long(argc, argv, "ac:l::u::p:i:dvh",
main_options, NULL);
if (opt < 0)
break;
switch (opt) {
+ case 'a':
+ type = HCI_AMP;
+ break;
case 'c':
connect_address = optarg;
break;
printf("Opening virtual device\n");
- host_fd = open_vhci(0x00);
+ host_fd = open_vhci(type);
if (host_fd < 0) {
close(dev_fd);
return EXIT_FAILURE;