summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorAndre Guedes <andre.guedes@openbossa.org>2012-05-31 20:01:41 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-05 06:34:16 +0300
commit0431a43ca5ada5ffd3668116b64168f4a1a64286 (patch)
tree8403fa7bc7bbd525ded419ea0194b4db50db329e /net/bluetooth
parent7e1af8a3a51dbf5dc7392fb294a0830f7e853aa8 (diff)
downloadblackbird-op-linux-0431a43ca5ada5ffd3668116b64168f4a1a64286.tar.gz
blackbird-op-linux-0431a43ca5ada5ffd3668116b64168f4a1a64286.zip
Bluetooth: Filter duplicated reports in LE scan
This patch enables filtering duplicated advertising reports during LE scan. Some LE devices advertise using very small intervals generating lots of equal advertising report events to the host. Each event generates a mgmt_device_found event which is copied to userspace. Enabling this feature, duplicated advertising reports are filtered at controller's link layer. This way, the controller doesn't wake up the host to report duplicated advertising reports and, consequently, less data is copied to userspace. Signed-off-by: Andre Guedes <andre.guedes@openbossa.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 979556a2649a..cf39e95777fc 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1526,6 +1526,7 @@ static void le_scan_enable_req(struct hci_dev *hdev, unsigned long opt)
memset(&cp, 0, sizeof(cp));
cp.enable = 1;
+ cp.filter_dup = 1;
hci_send_cmd(hdev, HCI_OP_LE_SET_SCAN_ENABLE, sizeof(cp), &cp);
}
OpenPOWER on IntegriCloud