aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-12-05 10:20:12 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2014-12-05 11:15:33 -0500
commit4b71bba45c420065044bf040b2284893ab900d03 (patch)
tree8a9cc08dd673cd748e5e7002d3419140ef052d0c /net/bluetooth/hci_core.c
parent32c9d43fa5deac40eee5a689428367982f147044 (diff)
Bluetooth: Enabled LE Direct Advertising Report event if supported
When the controller supports the Extended Scanner Filter Policies, it supports the LE Direct Advertising Report event. However by default that event is blocked by the LE event mask. It is required to enable it during controller setup. 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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 523700eefdd1..da8969e08b0c 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1735,6 +1735,14 @@ static void hci_init3_req(struct hci_request *req, unsigned long opt)
1735 * Parameter Request 1735 * Parameter Request
1736 */ 1736 */
1737 1737
1738 /* If the controller supports Extended Scanner Filter
1739 * Policies, enable the correspondig event.
1740 */
1741 if (hdev->le_features[0] & HCI_LE_EXT_SCAN_POLICY)
1742 events[1] |= 0x04; /* LE Direct Advertising
1743 * Report
1744 */
1745
1738 hci_req_add(req, HCI_OP_LE_SET_EVENT_MASK, sizeof(events), 1746 hci_req_add(req, HCI_OP_LE_SET_EVENT_MASK, sizeof(events),
1739 events); 1747 events);
1740 1748