aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index aa233e37fc93..c3af3b87dbb5 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1674,7 +1674,7 @@ static int set_discoverable(struct sock *sk, struct hci_dev *hdev, void *data,
1674 * and so no need to check HCI_LIMITED_DISCOVERABLE. 1674 * and so no need to check HCI_LIMITED_DISCOVERABLE.
1675 */ 1675 */
1676 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { 1676 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) {
1677 change_bit(HCI_DISCOVERABLE, &hdev->dev_flags); 1677 hci_dev_change_flag(hdev, HCI_DISCOVERABLE);
1678 changed = true; 1678 changed = true;
1679 } 1679 }
1680 1680
@@ -2046,7 +2046,7 @@ static int set_link_security(struct sock *sk, struct hci_dev *hdev, void *data,
2046 bool changed = false; 2046 bool changed = false;
2047 2047
2048 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { 2048 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) {
2049 change_bit(HCI_LINK_SECURITY, &hdev->dev_flags); 2049 hci_dev_change_flag(hdev, HCI_LINK_SECURITY);
2050 changed = true; 2050 changed = true;
2051 } 2051 }
2052 2052
@@ -2301,7 +2301,7 @@ static int set_le(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
2301 bool changed = false; 2301 bool changed = false;
2302 2302
2303 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { 2303 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) {
2304 change_bit(HCI_LE_ENABLED, &hdev->dev_flags); 2304 hci_dev_change_flag(hdev, HCI_LE_ENABLED);
2305 changed = true; 2305 changed = true;
2306 } 2306 }
2307 2307
@@ -4689,7 +4689,7 @@ static int set_fast_connectable(struct sock *sk, struct hci_dev *hdev,
4689 } 4689 }
4690 4690
4691 if (!hdev_is_powered(hdev)) { 4691 if (!hdev_is_powered(hdev)) {
4692 change_bit(HCI_FAST_CONNECTABLE, &hdev->dev_flags); 4692 hci_dev_change_flag(hdev, HCI_FAST_CONNECTABLE);
4693 err = send_settings_rsp(sk, MGMT_OP_SET_FAST_CONNECTABLE, 4693 err = send_settings_rsp(sk, MGMT_OP_SET_FAST_CONNECTABLE,
4694 hdev); 4694 hdev);
4695 new_settings(hdev, sk); 4695 new_settings(hdev, sk);
@@ -4789,7 +4789,7 @@ static int set_bredr(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
4789 hci_dev_clear_flag(hdev, HCI_HS_ENABLED); 4789 hci_dev_clear_flag(hdev, HCI_HS_ENABLED);
4790 } 4790 }
4791 4791
4792 change_bit(HCI_BREDR_ENABLED, &hdev->dev_flags); 4792 hci_dev_change_flag(hdev, HCI_BREDR_ENABLED);
4793 4793
4794 err = send_settings_rsp(sk, MGMT_OP_SET_BREDR, hdev); 4794 err = send_settings_rsp(sk, MGMT_OP_SET_BREDR, hdev);
4795 if (err < 0) 4795 if (err < 0)