aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2011-01-10 06:44:55 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-02-07 22:40:06 -0500
commitb0916ea0d9e6ea3ed46bb7a61c13a2b357b0248b (patch)
tree69f7d2ef2a09a9004de49e2203ea82bf644d3fd0 /include/net/bluetooth
parenta5040efa2017f3e4f1b4d5f40fd989567f3994c1 (diff)
Bluetooth: Add controller side link key clearing to hci_init_req
The controller may have link keys in its own memory and these keys could be used for secure connections. However, since the interface to access these keys doesn't provide information about the key types (which would be needed to infer the level of security each key provides) using these keys is rather useless. Therefore, simply clear the controller side list in the initialization procedure. Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 65cab137e19f..4e2f008d32e1 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -487,6 +487,12 @@ struct hci_cp_set_event_flt {
487#define HCI_CONN_SETUP_AUTO_OFF 0x01 487#define HCI_CONN_SETUP_AUTO_OFF 0x01
488#define HCI_CONN_SETUP_AUTO_ON 0x02 488#define HCI_CONN_SETUP_AUTO_ON 0x02
489 489
490#define HCI_OP_DELETE_STORED_LINK_KEY 0x0c12
491struct hci_cp_delete_stored_link_key {
492 bdaddr_t bdaddr;
493 __u8 delete_all;
494} __packed;
495
490#define HCI_OP_WRITE_LOCAL_NAME 0x0c13 496#define HCI_OP_WRITE_LOCAL_NAME 0x0c13
491struct hci_cp_write_local_name { 497struct hci_cp_write_local_name {
492 __u8 name[248]; 498 __u8 name[248];