summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
authorAndre Guedes2012-07-24 20:03:52 +0200
committerGustavo Padovan2012-08-06 20:02:57 +0200
commit999dcd10a88243ab304966a506b4975ce5f1e3bb (patch)
tree175ca3ab8426869bfeeb18be95a7153b704fd7ce /net/bluetooth/hci_event.c
parentBluetooth: Use lmp_sniff_capable where applicable (diff)
downloadkernel-qcow2-linux-999dcd10a88243ab304966a506b4975ce5f1e3bb.tar.gz
kernel-qcow2-linux-999dcd10a88243ab304966a506b4975ce5f1e3bb.tar.xz
kernel-qcow2-linux-999dcd10a88243ab304966a506b4975ce5f1e3bb.zip
Bluetooth: Use lmp_sniffsubr_capable where applicable
This patch replaces all LMP_SNIFF_SUBR bit checking by the helper macro lmp_sniffsubr_capable. Signed-off-by: Andre Guedes <andre.guedes@openbossa.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r--net/bluetooth/hci_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index eb9024a8684c..060780c40ba1 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -513,7 +513,7 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
if (hdev->features[3] & LMP_RSSI_INQ)
events[4] |= 0x02; /* Inquiry Result with RSSI */
- if (hdev->features[5] & LMP_SNIFF_SUBR)
+ if (lmp_sniffsubr_capable(hdev))
events[5] |= 0x20; /* Sniff Subrating */
if (hdev->features[5] & LMP_PAUSE_ENC)