summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorMarcel Holtmann2014-01-10 11:07:21 +0100
committerJohan Hedberg2014-02-13 08:51:32 +0100
commit40c59fcbcdc25d5b1aafef23b94167c2376b0dce (patch)
treebece7896235b1150b0ece47d356701dd3c40ef63 /net/bluetooth/hci_core.c
parentBluetooth: Add support for handling P-256 derived link keys (diff)
downloadkernel-qcow2-linux-40c59fcbcdc25d5b1aafef23b94167c2376b0dce.tar.gz
kernel-qcow2-linux-40c59fcbcdc25d5b1aafef23b94167c2376b0dce.tar.xz
kernel-qcow2-linux-40c59fcbcdc25d5b1aafef23b94167c2376b0dce.zip
Bluetooth: Enable Authenticated Payload Timeout Expired event
With Secure Connections capable controllers, the authenticated payload timeout can trigger. Enable the event so the controller informs the host when this happens. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r--net/bluetooth/hci_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 5e8663c194c1..52e398f37129 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1288,6 +1288,10 @@ static void hci_set_event_mask_page_2(struct hci_request *req)
events[2] |= 0x08; /* Truncated Page Complete */
}
+ /* Enable Authenticated Payload Timeout Expired event if supported */
+ if (lmp_ping_capable(hdev))
+ events[2] |= 0x80;
+
hci_req_add(req, HCI_OP_SET_EVENT_MASK_PAGE_2, sizeof(events), events);
}