Bluetooth: Use lmp_sniff_capable where applicable
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sat Sep 29 10:59:21 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=6eded1004abb060fbdf69611abc560c717f2bb8b
Commit: 6eded1004abb060fbdf69611abc560c717f2bb8b
Parent: 9f92ebf6c72de444801ab4a922965bd1f90834ae
Author: Andre Guedes <andre.guedes at openbossa.org>
AuthorDate: Tue Jul 24 15:03:51 2012 -0300
Committer: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
CommitDate: Mon Aug 6 15:02:57 2012 -0300
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 <andre.guedes at openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
---
net/bluetooth/hci_event.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 5c71c85..eb9024a 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;
More information about the linux-mtd-cvs
mailing list