From: Johan Hedberg Date: Wed, 24 Oct 2012 18:11:59 +0000 (+0300) Subject: Bluetooth: Fix updating host feature bits for LE X-Git-Tag: next-20121025~59^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d0414adc7de67bbf87ba9f9e8f2e1e8919f2068a;p=karo-tx-linux.git 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 Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 0b9e646d1758..aa325eec40db 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -1287,6 +1287,11 @@ static void hci_cc_write_le_host_supported(struct hci_dev *hdev, hdev->host_features[0] |= LMP_HOST_LE; else hdev->host_features[0] &= ~LMP_HOST_LE; + + if (sent->simul) + hdev->host_features[0] |= LMP_HOST_LE_BREDR; + else + hdev->host_features[0] &= ~LMP_HOST_LE_BREDR; } if (test_bit(HCI_MGMT, &hdev->dev_flags) &&