Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256407
b: refs/heads/master
c: 34918cd
h: refs/heads/master
i:
  256405: 8909b97
  256403: 3b5a3d5
  256399: 3f23c25
v: v3
  • Loading branch information
Vinicius Costa Gomes authored and Gustavo F. Padovan committed Jul 8, 2011
1 parent 367acb2 commit 79da047
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7034b911af1aa571995b56db3ed71a25daf00373
refs/heads/master: 34918cd71b953905e5f832537ead436bcd57e8f9
4 changes: 4 additions & 0 deletions trunk/include/net/bluetooth/hci.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ enum {
#define HCI_LK_UNAUTH_COMBINATION 0x04
#define HCI_LK_AUTH_COMBINATION 0x05
#define HCI_LK_CHANGED_COMBINATION 0x06
/* The spec doesn't define types for SMP keys */
#define HCI_LK_SMP_LTK 0x81
#define HCI_LK_SMP_IRK 0x82
#define HCI_LK_SMP_CSRK 0x83

/* ----- HCI Commands ---- */
#define HCI_OP_NOP 0x0000
Expand Down
16 changes: 16 additions & 0 deletions trunk/include/net/bluetooth/hci_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,28 @@ struct bt_uuid {
u8 svc_hint;
};

struct key_master_id {
__le16 ediv;
u8 rand[8];
} __packed;

struct link_key_data {
bdaddr_t bdaddr;
u8 type;
u8 val[16];
u8 pin_len;
u8 dlen;
u8 data[0];
} __packed;

struct link_key {
struct list_head list;
bdaddr_t bdaddr;
u8 type;
u8 val[16];
u8 pin_len;
u8 dlen;
u8 data[0];
};

struct oob_data {
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/net/bluetooth/mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ struct mgmt_key_info {
u8 type;
u8 val[16];
u8 pin_len;
u8 dlen;
u8 data[0];
} __packed;

#define MGMT_OP_LOAD_KEYS 0x000D
Expand Down

0 comments on commit 79da047

Please sign in to comment.