diff --git a/emulator/main.c b/emulator/main.c
index 536f265..a11fdd8 100644
--- a/emulator/main.c
+++ b/emulator/main.c
struct server *server4;
struct server *server5;
bool enable_vhci = false;
+ enum vhci_type vhci_type = VHCI_TYPE_BREDRLE;
sigset_t mask;
mainloop_init();
for (;;) {
int opt;
- opt = getopt_long(argc, argv, "lvh", main_options, NULL);
+ opt = getopt_long(argc, argv, "lLBvh", main_options, NULL);
if (opt < 0)
break;
case 'l':
enable_vhci = true;
break;
+ case 'L':
+ vhci_type = VHCI_TYPE_LE;
+ break;
+ case 'B':
+ vhci_type = VHCI_TYPE_BREDR;
+ break;
case 'v':
printf("%s\n", VERSION);
return EXIT_SUCCESS;
printf("Bluetooth emulator ver %s\n", VERSION);
if (enable_vhci) {
- vhci = vhci_open(VHCI_TYPE_BREDRLE);
+ vhci = vhci_open(vhci_type);
if (!vhci)
fprintf(stderr, "Failed to open Virtual HCI device\n");
}