diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-12-31 17:43:18 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-01-02 16:22:04 -0500 |
commit | 05b3c3e7905d00a1fe2e9184fdd9b5eac427c736 (patch) | |
tree | 4251d1ca90974e4bee900fed331ecd23e8285c4c /net/bluetooth/mgmt.c | |
parent | 91389af67c3a8d8f9eca5f51deda58fae4d9326e (diff) |
Bluetooth: Remove no longer needed force_sc_support debugfs option
The force_sc_support debugfs option was introduced to easily work with
pre-production Bluetooth 4.1 silicon. This option is no longer needed
since controllers supporting BR/EDR Secure Connections feature are now
available.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 3d2f7ad1e655..6b3f5537e441 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -570,8 +570,7 @@ static u32 get_supported_settings(struct hci_dev *hdev) | |||
570 | settings |= MGMT_SETTING_HS; | 570 | settings |= MGMT_SETTING_HS; |
571 | } | 571 | } |
572 | 572 | ||
573 | if (lmp_sc_capable(hdev) || | 573 | if (lmp_sc_capable(hdev)) |
574 | test_bit(HCI_FORCE_SC, &hdev->dbg_flags)) | ||
575 | settings |= MGMT_SETTING_SECURE_CONN; | 574 | settings |= MGMT_SETTING_SECURE_CONN; |
576 | } | 575 | } |
577 | 576 | ||
@@ -4727,8 +4726,8 @@ static int set_secure_conn(struct sock *sk, struct hci_dev *hdev, | |||
4727 | 4726 | ||
4728 | BT_DBG("request for %s", hdev->name); | 4727 | BT_DBG("request for %s", hdev->name); |
4729 | 4728 | ||
4730 | if (!test_bit(HCI_LE_ENABLED, &hdev->dev_flags) && | 4729 | if (!lmp_sc_capable(hdev) && |
4731 | !lmp_sc_capable(hdev) && !test_bit(HCI_FORCE_SC, &hdev->dbg_flags)) | 4730 | !test_bit(HCI_LE_ENABLED, &hdev->dev_flags)) |
4732 | return cmd_status(sk, hdev->id, MGMT_OP_SET_SECURE_CONN, | 4731 | return cmd_status(sk, hdev->id, MGMT_OP_SET_SECURE_CONN, |
4733 | MGMT_STATUS_NOT_SUPPORTED); | 4732 | MGMT_STATUS_NOT_SUPPORTED); |
4734 | 4733 | ||
@@ -4738,9 +4737,7 @@ static int set_secure_conn(struct sock *sk, struct hci_dev *hdev, | |||
4738 | 4737 | ||
4739 | hci_dev_lock(hdev); | 4738 | hci_dev_lock(hdev); |
4740 | 4739 | ||
4741 | if (!hdev_is_powered(hdev) || | 4740 | if (!hdev_is_powered(hdev) || !lmp_sc_capable(hdev) || |
4742 | (!lmp_sc_capable(hdev) && | ||
4743 | !test_bit(HCI_FORCE_SC, &hdev->dbg_flags)) || | ||
4744 | !test_bit(HCI_BREDR_ENABLED, &hdev->dev_flags)) { | 4741 | !test_bit(HCI_BREDR_ENABLED, &hdev->dev_flags)) { |
4745 | bool changed; | 4742 | bool changed; |
4746 | 4743 | ||