summaryrefslogtreecommitdiff
path: root/emulator
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-12-05 15:16:20 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-12-05 15:16:20 +0100
commit920b1bb844559da08cbda7be5ca0447df3004ba5 (patch)
treee13b375bba3d98c63e2ee45e8cdc1ff37f8f201c /emulator
parentf5ff8c497ac186e6d9ef892f1184623235ba5ba4 (diff)
downloadbluez-920b1bb844559da08cbda7be5ca0447df3004ba5.tar.gz
emulator: Enable LE Extended Scanner Filter Policies feature
Diffstat (limited to 'emulator')
-rw-r--r--emulator/le.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/emulator/le.c b/emulator/le.c
index 578874efd..3318e866e 100644
--- a/emulator/le.c
+++ b/emulator/le.c
@@ -153,6 +153,11 @@ static void reset_defaults(struct bt_le *hci)
hci->le_event_mask[0] |= 0x08; /* LE Read Remote Used Features Complete */
hci->le_event_mask[0] |= 0x10; /* LE Long Term Key Request */
//hci->le_event_mask[0] |= 0x20; /* LE Remote Connection Parameter Request */
+ //hci->le_event_mask[0] |= 0x40; /* LE Data Length Change */
+ //hci->le_event_mask[0] |= 0x80; /* LE Read Local P-256 Public Key Complete */
+ //hci->le_event_mask[1] |= 0x01; /* LE Generate DHKey Complete */
+ //hci->le_event_mask[1] |= 0x02; /* LE Enhanced Connection Complete */
+ //hci->le_event_mask[1] |= 0x04; /* LE Direct Advertising Report */
hci->le_mtu = 64;
hci->le_max_pkt = 1;
@@ -163,6 +168,9 @@ static void reset_defaults(struct bt_le *hci)
//hci->le_features[0] |= 0x04; /* Extended Reject Indication */
//hci->le_features[0] |= 0x08; /* Slave-initiated Features Exchange */
//hci->le_features[0] |= 0x10; /* LE Ping */
+ //hci->le_features[0] |= 0x20; /* LE Data Packet Length Extension */
+ //hci->le_features[0] |= 0x40; /* LL Privacy */
+ hci->le_features[0] |= 0x80; /* Extended Scanner Filter Policies */
memset(hci->le_random_addr, 0, sizeof(hci->le_random_addr));