Commit 9f92ebf6 authored by Andre Guedes's avatar Andre Guedes Committed by Gustavo Padovan

Bluetooth: Use lmp_rswitch_capable where applicable

This patch replaces all LMP_RSWITCH bit checking by the helper macro
lmp_rswitch_capable.
Signed-off-by: default avatarAndre Guedes <andre.guedes@openbossa.org>
Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
parent 45db810f
...@@ -623,7 +623,7 @@ static void hci_setup_link_policy(struct hci_dev *hdev) ...@@ -623,7 +623,7 @@ static void hci_setup_link_policy(struct hci_dev *hdev)
struct hci_cp_write_def_link_policy cp; struct hci_cp_write_def_link_policy cp;
u16 link_policy = 0; u16 link_policy = 0;
if (hdev->features[0] & LMP_RSWITCH) if (lmp_rswitch_capable(hdev))
link_policy |= HCI_LP_RSWITCH; link_policy |= HCI_LP_RSWITCH;
if (hdev->features[0] & LMP_HOLD) if (hdev->features[0] & LMP_HOLD)
link_policy |= HCI_LP_HOLD; link_policy |= HCI_LP_HOLD;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment