summaryrefslogtreecommitdiff
path: root/emulator/hciemu.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2016-07-04 19:21:44 +0200
committerMarcel Holtmann <marcel@holtmann.org>2016-07-04 19:21:44 +0200
commit12cd2eda1a7648833ddfa39c0d02c90693fd2d99 (patch)
treea35fa517d2f8137b3dad160f1fd60660962db7bf /emulator/hciemu.c
parent03f0497691537681a75fe498a6ca97e3f9dfbb64 (diff)
downloadbluez-12cd2eda1a7648833ddfa39c0d02c90693fd2d99.tar.gz
lib: Define HCI_PRIMARY and use it instead of HCI_BREDR
Diffstat (limited to 'emulator/hciemu.c')
-rw-r--r--emulator/hciemu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/emulator/hciemu.c b/emulator/hciemu.c
index 6a534990b..ea1e3cf79 100644
--- a/emulator/hciemu.c
+++ b/emulator/hciemu.c
@@ -243,7 +243,8 @@ static bool create_vhci(struct hciemu *hciemu)
}
create_req[0] = HCI_VENDOR_PKT;
- create_req[1] = HCI_BREDR;
+ create_req[1] = HCI_PRIMARY;
+
written = write(fd, create_req, sizeof(create_req));
if (written < 0) {
close(fd);