diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-03-10 16:34:40 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-03-10 16:42:05 -0400 |
commit | 55e76b38986a61259f3079afd0f9a865651a34fe (patch) | |
tree | 896a09d711e70975b996268dea4d77c60a5bd47a /include/net | |
parent | 406ef2a67bd0bb13d77d5e5d700e36a2caea09ae (diff) |
Bluetooth: Add 'Already Paired' error for Pair Device command
To make the behavior predictable when attempting to pair with a device
for which we already have a Link Key or Long Term Key, this patch adds a
new 'Already Paired' error which gets sent in such a scenario.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 | ||||
-rw-r--r-- | include/net/bluetooth/mgmt.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index afc641c5e55c..5cc5a192359d 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -967,6 +967,8 @@ struct smp_irk *hci_add_irk(struct hci_dev *hdev, bdaddr_t *bdaddr, | |||
967 | void hci_remove_irk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type); | 967 | void hci_remove_irk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type); |
968 | void hci_smp_irks_clear(struct hci_dev *hdev); | 968 | void hci_smp_irks_clear(struct hci_dev *hdev); |
969 | 969 | ||
970 | bool hci_bdaddr_is_paired(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); | ||
971 | |||
970 | void hci_remote_oob_data_clear(struct hci_dev *hdev); | 972 | void hci_remote_oob_data_clear(struct hci_dev *hdev); |
971 | struct oob_data *hci_find_remote_oob_data(struct hci_dev *hdev, | 973 | struct oob_data *hci_find_remote_oob_data(struct hci_dev *hdev, |
972 | bdaddr_t *bdaddr, u8 bdaddr_type); | 974 | bdaddr_t *bdaddr, u8 bdaddr_type); |
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 0c737e4b8f57..5bf6af9cee78 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -43,6 +43,7 @@ | |||
43 | #define MGMT_STATUS_CANCELLED 0x10 | 43 | #define MGMT_STATUS_CANCELLED 0x10 |
44 | #define MGMT_STATUS_INVALID_INDEX 0x11 | 44 | #define MGMT_STATUS_INVALID_INDEX 0x11 |
45 | #define MGMT_STATUS_RFKILLED 0x12 | 45 | #define MGMT_STATUS_RFKILLED 0x12 |
46 | #define MGMT_STATUS_ALREADY_PAIRED 0x13 | ||
46 | 47 | ||
47 | struct mgmt_hdr { | 48 | struct mgmt_hdr { |
48 | __le16 opcode; | 49 | __le16 opcode; |