diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-24 14:11:59 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-11-01 18:26:56 -0400 |
commit | 53b2caabbe97193e6231dbcc0d48f7e1888fa38e (patch) | |
tree | 5bc35c5d2265a726c6351eb86facaccd09043dd7 /net/bluetooth | |
parent | 33c525c0a37abd136f014f473f5a2efddba58167 (diff) |
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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_event.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, | |||
1287 | hdev->host_features[0] |= LMP_HOST_LE; | 1287 | hdev->host_features[0] |= LMP_HOST_LE; |
1288 | else | 1288 | else |
1289 | hdev->host_features[0] &= ~LMP_HOST_LE; | 1289 | 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; | ||
1290 | } | 1295 | } |
1291 | 1296 | ||
1292 | if (test_bit(HCI_MGMT, &hdev->dev_flags) && | 1297 | if (test_bit(HCI_MGMT, &hdev->dev_flags) && |