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>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user