Commit 6eded100 authored by Andre Guedes's avatar Andre Guedes Committed by Gustavo Padovan

Bluetooth: Use lmp_sniff_capable where applicable

This patch replaces all LMP_SNIFF bit checking by the helper macro
lmp_sniff_capable.
Signed-off-by: default avatarAndre Guedes <andre.guedes@openbossa.org>
Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
parent 9f92ebf6
...@@ -627,7 +627,7 @@ static void hci_setup_link_policy(struct hci_dev *hdev) ...@@ -627,7 +627,7 @@ static void hci_setup_link_policy(struct hci_dev *hdev)
link_policy |= HCI_LP_RSWITCH; link_policy |= HCI_LP_RSWITCH;
if (hdev->features[0] & LMP_HOLD) if (hdev->features[0] & LMP_HOLD)
link_policy |= HCI_LP_HOLD; link_policy |= HCI_LP_HOLD;
if (hdev->features[0] & LMP_SNIFF) if (lmp_sniff_capable(hdev))
link_policy |= HCI_LP_SNIFF; link_policy |= HCI_LP_SNIFF;
if (hdev->features[1] & LMP_PARK) if (hdev->features[1] & LMP_PARK)
link_policy |= HCI_LP_PARK; link_policy |= HCI_LP_PARK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment