Bluetooth: Fix enabling fast connectable on LE-only controllers
Subsystems (2)
PATCH 1/1 Bluetooth: Fix enabling fast connectable on LE-only controllers
From: Johan Hedberg <[email protected]>
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 <[email protected]>
--- net/bluetooth/mgmt.c | 3 +++ 1 file changed, 3 insertions(+)
net/bluetooth/mgmt.c +3 -0
@@ -1307,6 +1307,9 @@ static void write_fast_connectable(struct hci_request *req, bool enable)struct hci_cp_write_page_scan_activity acp;u8 type; +if (!test_bit (HCI_BREDR_ENABLED , &hdev->dev_flags)) +return ; +if (hdev->hci_ver <BLUETOOTH_VER_1_2 )return ;
Signature · 1 line
1.8.3.1
Marcel Holtmann
maintainerHi Johan,
Quoted 8 lines
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 <[email protected]>---
net/bluetooth/mgmt.c| 3 +++1 file changed, 3 insertions(+)
patch has been applied to bluetooth-next tree.
Regards
Marcel