diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-08 11:31:13 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-06-08 20:00:40 -0400 |
commit | 1c2e004183178e1947882cd2e74f37826f45230e (patch) | |
tree | a0a5e7ed54d89392bb77ae7175a9c63bbfc7b9f1 /include/net/bluetooth | |
parent | 4dab786482d706a2a41cd16cf174671d640a9870 (diff) |
Bluetooth: Add support for encryption key refresh
With LE/SMP the completion of a security level elavation from medium to
high is indicated by a HCI Encryption Key Refresh Complete event. The
necessary behavior upon receiving this event is a mix of what's done for
auth_complete and encryption_change, which is also where most of the
event handling code has been copied from.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/hci.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 66a7b579e31c..3def64ba77fa 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -1144,6 +1144,12 @@ struct extended_inquiry_info { | |||
1144 | __u8 data[240]; | 1144 | __u8 data[240]; |
1145 | } __packed; | 1145 | } __packed; |
1146 | 1146 | ||
1147 | #define HCI_EV_KEY_REFRESH_COMPLETE 0x30 | ||
1148 | struct hci_ev_key_refresh_complete { | ||
1149 | __u8 status; | ||
1150 | __le16 handle; | ||
1151 | } __packed; | ||
1152 | |||
1147 | #define HCI_EV_IO_CAPA_REQUEST 0x31 | 1153 | #define HCI_EV_IO_CAPA_REQUEST 0x31 |
1148 | struct hci_ev_io_capa_request { | 1154 | struct hci_ev_io_capa_request { |
1149 | bdaddr_t bdaddr; | 1155 | bdaddr_t bdaddr; |