summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorAndre Guedes2012-07-24 20:03:47 +0200
committerGustavo Padovan2012-08-06 20:02:56 +0200
commitc383ddc481a1774702473b4bb0d2927aab3f2d5a (patch)
treede4d37fd9a2a61aa6a8ff4323adffc6bf5b79d6b /net/bluetooth/mgmt.c
parentBluetooth: Use lmp_bredr_capable where applicable (diff)
downloadkernel-qcow2-linux-c383ddc481a1774702473b4bb0d2927aab3f2d5a.tar.gz
kernel-qcow2-linux-c383ddc481a1774702473b4bb0d2927aab3f2d5a.tar.xz
kernel-qcow2-linux-c383ddc481a1774702473b4bb0d2927aab3f2d5a.zip
Bluetooth: Use lmp_le_capable where applicable
This patch replaces all LMP_LE bit checking by the helper macro lmp_le_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/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 990ec6affca5..0351bf27f2bb 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -391,7 +391,7 @@ static u32 get_supported_settings(struct hci_dev *hdev)
if (enable_hs)
settings |= MGMT_SETTING_HS;
- if (hdev->features[4] & LMP_LE)
+ if (lmp_le_capable(hdev))
settings |= MGMT_SETTING_LE;
return settings;
@@ -1205,7 +1205,7 @@ static int set_le(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
hci_dev_lock(hdev);
- if (!(hdev->features[4] & LMP_LE)) {
+ if (!lmp_le_capable(hdev)) {
err = cmd_status(sk, hdev->id, MGMT_OP_SET_LE,
MGMT_STATUS_NOT_SUPPORTED);
goto unlock;