From 6a757f4e8b857dcaa58f0f4856037030e8b1d5d3 Mon Sep 17 00:00:00 2001 From: Andre Guedes Date: Thu, 4 Apr 2013 20:21:01 -0300 Subject: [PATCH] --- yaml --- r: 369559 b: refs/heads/master c: 525e296a28561659d85a63befb694f36e6ec3429 h: refs/heads/master i: 369557: 8609d923a1ea13cae2344cad25eda31ce4c78d2a 369555: d726f1c378e4949b7c43b4f4beb39e172763817c 369551: c74e543747bd2b4b3890f159c0ac8d3360eb8e3b v: v3 --- [refs] | 2 +- trunk/include/net/bluetooth/hci.h | 2 ++ trunk/net/bluetooth/hci_core.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 47708f96c77c..5ecadddce5da 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5df480b56e427d83830576862463226c8fcc95d7 +refs/heads/master: 525e296a28561659d85a63befb694f36e6ec3429 diff --git a/trunk/include/net/bluetooth/hci.h b/trunk/include/net/bluetooth/hci.h index 3f4266b3c3ba..84c37abc48c1 100644 --- a/trunk/include/net/bluetooth/hci.h +++ b/trunk/include/net/bluetooth/hci.h @@ -998,6 +998,8 @@ struct hci_cp_le_set_scan_param { #define LE_SCANNING_DISABLED 0x00 #define LE_SCANNING_ENABLED 0x01 +#define LE_SCAN_FILTER_DUP_DISABLE 0x00 +#define LE_SCAN_FILTER_DUP_ENABLE 0x01 #define HCI_OP_LE_SET_SCAN_ENABLE 0x200c struct hci_cp_le_set_scan_enable { diff --git a/trunk/net/bluetooth/hci_core.c b/trunk/net/bluetooth/hci_core.c index 00dcb74954d3..d0ae237ff819 100644 --- a/trunk/net/bluetooth/hci_core.c +++ b/trunk/net/bluetooth/hci_core.c @@ -1990,7 +1990,7 @@ static void le_scan_enable_req(struct hci_request *req, unsigned long opt) memset(&cp, 0, sizeof(cp)); cp.enable = 1; - cp.filter_dup = 1; + cp.filter_dup = LE_SCAN_FILTER_DUP_ENABLE; hci_req_add(req, HCI_OP_LE_SET_SCAN_ENABLE, sizeof(cp), &cp); }