projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f92ebf
)
Bluetooth: Use lmp_sniff_capable where applicable
author
Andre Guedes
<andre.guedes@openbossa.org>
Tue, 24 Jul 2012 18:03:51 +0000
(15:03 -0300)
committer
Gustavo 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
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_event.c
b/net/bluetooth/hci_event.c
index
5c71c85
..
eb9024a
100644
(file)
--- 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;