summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-12-19 22:26:00 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-12-19 22:06:37 +0100
commit2cf22218b00f46f93b39a9355b830e9e8e4fd077 (patch)
tree8baa3725b8712eab8c446c431ad73840bd69f038 /net/bluetooth/hci_request.h
parent0857dd3bed62d8f905f61a399d1ed76464b5270f (diff)
downloadlinux-stable-2cf22218b00f46f93b39a9355b830e9e8e4fd077.tar.gz
linux-stable-2cf22218b00f46f93b39a9355b830e9e8e4fd077.tar.bz2
linux-stable-2cf22218b00f46f93b39a9355b830e9e8e4fd077.zip
Bluetooth: Add hci_request support for hci_update_background_scan
Many places using hci_update_background_scan() try to synchronize whatever they're doing with the help of hci_request callbacks. However, since the hci_update_background_scan() function hasn't so far accepted a hci_request pointer any commands triggered by it have been left out by the synchronization. This patch modifies the API in a similar way as was done for hci_update_page_scan, i.e. there's a variant that takes a hci_request and another one that takes a hci_dev. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_request.h')
-rw-r--r--net/bluetooth/hci_request.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_request.h b/net/bluetooth/hci_request.h
index 1793a46fea65..adf074d33544 100644
--- a/net/bluetooth/hci_request.h
+++ b/net/bluetooth/hci_request.h
@@ -49,3 +49,6 @@ void __hci_update_page_scan(struct hci_request *req);
int hci_update_random_address(struct hci_request *req, bool require_privacy,
u8 *own_addr_type);
+
+void hci_update_background_scan(struct hci_dev *hdev);
+void __hci_update_background_scan(struct hci_request *req);