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>
This commit is contained in:
parent
a5040efa20
commit
b0916ea0d9
3 changed files with 25 additions and 0 deletions
|
@ -487,6 +487,12 @@ struct hci_cp_set_event_flt {
|
|||
#define HCI_CONN_SETUP_AUTO_OFF 0x01
|
||||
#define HCI_CONN_SETUP_AUTO_ON 0x02
|
||||
|
||||
#define HCI_OP_DELETE_STORED_LINK_KEY 0x0c12
|
||||
struct hci_cp_delete_stored_link_key {
|
||||
bdaddr_t bdaddr;
|
||||
__u8 delete_all;
|
||||
} __packed;
|
||||
|
||||
#define HCI_OP_WRITE_LOCAL_NAME 0x0c13
|
||||
struct hci_cp_write_local_name {
|
||||
__u8 name[248];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue