diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-16 23:56:27 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-17 11:27:11 +0200 |
commit | 33ef95ed30283eb17c686a815caf1d33e966fe4a (patch) | |
tree | a989ac26b6f9c47fcf6bac5664806af2459455f6 /net/bluetooth/hci_event.c | |
parent | 7bb895d68e0c18b730bd89f2ed7e58de0e3a591a (diff) | |
download | linux-stable-33ef95ed30283eb17c686a815caf1d33e966fe4a.tar.gz linux-stable-33ef95ed30283eb17c686a815caf1d33e966fe4a.tar.bz2 linux-stable-33ef95ed30283eb17c686a815caf1d33e966fe4a.zip |
Bluetooth: mgmt: Add support for Set Link Security command
The Set Link Security mgmt command is used to enable or disable link
level security, also known as Security Mode 3. This is rarely enabled in
modern systems but the command needs to be available for completeness,
qualification purposes and those few systems that actually want to
enable it.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index b0784ee5f8b9..239e9fb8f7c5 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -254,6 +254,9 @@ static void hci_cc_write_auth_enable(struct hci_dev *hdev, struct sk_buff *skb) clear_bit(HCI_AUTH, &hdev->flags); } + if (test_bit(HCI_MGMT, &hdev->dev_flags)) + mgmt_auth_enable_complete(hdev, status); + hci_req_complete(hdev, HCI_OP_WRITE_AUTH_ENABLE, status); } |