]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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 5c71c85c87a742de0e4f732f4dc3b1a267eb1b46..eb9024a8684c97003b94507bb1ea1130c48aa559 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;