From: Andre Guedes Date: Tue, 24 Jul 2012 18:03:49 +0000 (-0300) Subject: Bluetooth: Use lmp_esco_capable where applicable X-Git-Tag: next-20120725~59^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d57f34281c461b5d59257adb4f445f7ebc6d61bd;p=karo-tx-linux.git Bluetooth: Use lmp_esco_capable where applicable This patch replaces all LMP_ESCO bit checking by the helper macro lmp_esco_capable. Signed-off-by: Andre Guedes Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index b120388678fd..5722a388ada1 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -686,7 +686,7 @@ static void hci_cc_read_local_features(struct hci_dev *hdev, hdev->esco_type |= (ESCO_HV3); } - if (hdev->features[3] & LMP_ESCO) + if (lmp_esco_capable(hdev)) hdev->esco_type |= (ESCO_EV3); if (hdev->features[4] & LMP_EV4)