summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-17 00:56:28 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-17 11:27:11 +0200
commited2c4ee360709ca838efa0ea4d6295590aff3d24 (patch)
tree1503b376c8845f87941a06985850b5409b0b88ec /net/bluetooth/hci_event.c
parent33ef95ed30283eb17c686a815caf1d33e966fe4a (diff)
downloadop-kernel-dev-ed2c4ee360709ca838efa0ea4d6295590aff3d24.zip
op-kernel-dev-ed2c4ee360709ca838efa0ea4d6295590aff3d24.tar.gz
Bluetooth: mgmt: Add support for Set SSP command
The Set SSP mgmt command can be used for enabling and disabling Secure Simple Pairing support for controllers that support 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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 239e9fb..179d127 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -447,7 +447,7 @@ static void hci_cc_write_ssp_mode(struct hci_dev *hdev, struct sk_buff *skb)
BT_DBG("%s status 0x%x", hdev->name, status);
if (status)
- return;
+ goto done;
sent = hci_sent_cmd_data(hdev, HCI_OP_WRITE_SSP_MODE);
if (!sent)
@@ -457,6 +457,10 @@ static void hci_cc_write_ssp_mode(struct hci_dev *hdev, struct sk_buff *skb)
set_bit(HCI_SSP_ENABLED, &hdev->dev_flags);
else
clear_bit(HCI_SSP_ENABLED, &hdev->dev_flags);
+
+done:
+ if (test_bit(HCI_MGMT, &hdev->dev_flags))
+ mgmt_ssp_enable_complete(hdev, status);
}
static u8 hci_get_inquiry_mode(struct hci_dev *hdev)
OpenPOWER on IntegriCloud