summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2015-11-11 08:11:17 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-11-19 17:50:29 +0100
commit2e93e53b8f86fb38a9a3c3bd08e539c40b3f8d89 (patch)
tree2ba50e194a5d180a73ab911d3b8ba493475960cc /net/bluetooth/mgmt.c
parent5fc16cc4f3044551587dfee8e12422cbf59303e8 (diff)
downloadlinux-stable-2e93e53b8f86fb38a9a3c3bd08e539c40b3f8d89.tar.gz
linux-stable-2e93e53b8f86fb38a9a3c3bd08e539c40b3f8d89.tar.bz2
linux-stable-2e93e53b8f86fb38a9a3c3bd08e539c40b3f8d89.zip
Bluetooth: Run all background scan updates through req_workqueue
Instead of firing off a simple async request queue all background scan updates through req_workqueue and use hci_req_sync() there to ensure that no two updates overlap with each other. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 7f22119276f3..29c9fec814b4 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -2510,8 +2510,8 @@ static void le_enable_complete(struct hci_dev *hdev, u8 status, u16 opcode)
hci_req_init(&req, hdev);
update_adv_data(&req);
update_scan_rsp_data(&req);
- __hci_update_background_scan(&req);
hci_req_run(&req, NULL);
+ hci_update_background_scan(hdev);
}
unlock: