Bluetooth: Use lmp_sniff_capable where applicable
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 24 Jul 2012 18:03:51 +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_SNIFF bit checking by the helper macro
lmp_sniff_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 5c71c85..eb9024a 100644 (file)
@@ -627,7 +627,7 @@ static void hci_setup_link_policy(struct hci_dev *hdev)
                link_policy |= HCI_LP_RSWITCH;
        if (hdev->features[0] & LMP_HOLD)
                link_policy |= HCI_LP_HOLD;
-       if (hdev->features[0] & LMP_SNIFF)
+       if (lmp_sniff_capable(hdev))
                link_policy |= HCI_LP_SNIFF;
        if (hdev->features[1] & LMP_PARK)
                link_policy |= HCI_LP_PARK;