diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-21 09:51:53 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-10-21 10:18:27 -0400 |
commit | 547003b114bcb96555cf73ec7f45ab64b2dcaf67 (patch) | |
tree | 1dfd0aeae3aa9d4e3182cd6ba0a113796e3a98bd /net/bluetooth | |
parent | 9a43e25fff07a94f40d4a9e1081458e30c840256 (diff) |
Bluetooth: Fix enabling fast connectable on LE-only controllers
The current "fast connectable" feature is BR/EDR-only, so add a proper
check for BR/EDR support before proceeding with the associated HCI
commands.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/mgmt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index bd91ee5f130c..074d83690a41 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -1307,6 +1307,9 @@ static void write_fast_connectable(struct hci_request *req, bool enable) | |||
1307 | struct hci_cp_write_page_scan_activity acp; | 1307 | struct hci_cp_write_page_scan_activity acp; |
1308 | u8 type; | 1308 | u8 type; |
1309 | 1309 | ||
1310 | if (!test_bit(HCI_BREDR_ENABLED, &hdev->dev_flags)) | ||
1311 | return; | ||
1312 | |||
1310 | if (hdev->hci_ver < BLUETOOTH_VER_1_2) | 1313 | if (hdev->hci_ver < BLUETOOTH_VER_1_2) |
1311 | return; | 1314 | return; |
1312 | 1315 | ||