Skip to content

Commit 53b2caa

Browse files
jhedbergGustavo Padovan
authored andcommitted
Bluetooth: Fix updating host feature bits for LE
When LE has been enabled with the simultaneous BR/EDR & LE parameter set to true we should also update the host features stored in struct hci_dev accordingly. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
1 parent 33c525c commit 53b2caa

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎net/bluetooth/hci_event.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,11 @@ static void hci_cc_write_le_host_supported(struct hci_dev *hdev,
12871287
hdev->host_features[0] |= LMP_HOST_LE;
12881288
else
12891289
hdev->host_features[0] &= ~LMP_HOST_LE;
1290+
1291+
if (sent->simul)
1292+
hdev->host_features[0] |= LMP_HOST_LE_BREDR;
1293+
else
1294+
hdev->host_features[0] &= ~LMP_HOST_LE_BREDR;
12901295
}
12911296

12921297
if (test_bit(HCI_MGMT, &hdev->dev_flags) &&

0 commit comments

Comments
 (0)