Bluetooth: Use explicit check for BR/EDR device type
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Use explicit check for BR/EDR device type
The BR/EDR and LE setup procedures apply only to BR/EDR device types and so check for that explicitly. Checking that it is not an AMP controller is dangerous in case there will be ever a third device type.
Signed-off-by Marcel Holtmann <[email protected]>
--- net/bluetooth/hci_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/hci_core.c +1 -1
@@ -2360,7 +2360,7 @@ int hci_register_dev(struct hci_dev *hdev)set_bit (HCI_SETUP , &hdev->dev_flags); -if (hdev->dev_type !=HCI_AMP ) { +if (hdev->dev_type ==HCI_BREDR ) {set_bit (HCI_AUTO_OFF , &hdev->dev_flags);/* Assume BR/EDR support until proven otherwise (such as * through reading supported features during init.
Signature · 1 line
1.8.3.1
Johan Hedberg
AppliedHi Marcel,
Quoted 9 lines · Marcel Holtmann
The BR/EDR and LE setup procedures apply only to BR/EDR device types and so check for that explicitly. Checking that it is not an AMP controller is dangerous in case there will be ever a third device type.
Signed-off-by Marcel Holtmann <[email protected]>--- net/bluetooth/hci_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to bluetooth-next. Thanks.
Johan