Bluetooth: Use lmp_esco_capable where applicable
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 24 Jul 2012 18:03:49 +0000 (15:03 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 6 Aug 2012 18:02:57 +0000 (15:02 -0300)
This patch replaces all LMP_ESCO bit checking by the helper macro
lmp_esco_capable.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_event.c

index b120388678fdbc6d6f0aca644a7cf5a1f29ea9c1..5722a388ada18590567f23b145023e53f4603ca4 100644 (file)
@@ -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)