From: Andre Guedes Date: Tue, 24 Jul 2012 18:03:51 +0000 (-0300) Subject: Bluetooth: Use lmp_sniff_capable where applicable X-Git-Tag: MMI-PSA29.97-13-9~15795^2~42^2~37^2~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6eded1004abb060fbdf69611abc560c717f2bb8b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Andre Guedes Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 5c71c85c87a7..eb9024a8684c 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -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;