|
@@ -707,7 +707,7 @@ struct hci_chan *hci_chan_lookup_handle(struct hci_dev *hdev, __u16 handle);
|
|
|
|
|
|
struct hci_conn *hci_connect_le(struct hci_dev *hdev, bdaddr_t *dst,
|
|
struct hci_conn *hci_connect_le(struct hci_dev *hdev, bdaddr_t *dst,
|
|
u8 dst_type, u8 sec_level, u16 conn_timeout,
|
|
u8 dst_type, u8 sec_level, u16 conn_timeout,
|
|
- bool master);
|
|
|
|
|
|
+ u8 role);
|
|
struct hci_conn *hci_connect_acl(struct hci_dev *hdev, bdaddr_t *dst,
|
|
struct hci_conn *hci_connect_acl(struct hci_dev *hdev, bdaddr_t *dst,
|
|
u8 sec_level, u8 auth_type);
|
|
u8 sec_level, u8 auth_type);
|
|
struct hci_conn *hci_connect_sco(struct hci_dev *hdev, int type, bdaddr_t *dst,
|
|
struct hci_conn *hci_connect_sco(struct hci_dev *hdev, int type, bdaddr_t *dst,
|
|
@@ -881,12 +881,12 @@ struct link_key *hci_add_link_key(struct hci_dev *hdev, struct hci_conn *conn,
|
|
bdaddr_t *bdaddr, u8 *val, u8 type,
|
|
bdaddr_t *bdaddr, u8 *val, u8 type,
|
|
u8 pin_len, bool *persistent);
|
|
u8 pin_len, bool *persistent);
|
|
struct smp_ltk *hci_find_ltk(struct hci_dev *hdev, __le16 ediv, __le64 rand,
|
|
struct smp_ltk *hci_find_ltk(struct hci_dev *hdev, __le16 ediv, __le64 rand,
|
|
- bool master);
|
|
|
|
|
|
+ u8 role);
|
|
struct smp_ltk *hci_add_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr,
|
|
struct smp_ltk *hci_add_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr,
|
|
u8 addr_type, u8 type, u8 authenticated,
|
|
u8 addr_type, u8 type, u8 authenticated,
|
|
u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand);
|
|
u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand);
|
|
struct smp_ltk *hci_find_ltk_by_addr(struct hci_dev *hdev, bdaddr_t *bdaddr,
|
|
struct smp_ltk *hci_find_ltk_by_addr(struct hci_dev *hdev, bdaddr_t *bdaddr,
|
|
- u8 addr_type, bool master);
|
|
|
|
|
|
+ u8 addr_type, u8 role);
|
|
int hci_remove_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 bdaddr_type);
|
|
int hci_remove_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 bdaddr_type);
|
|
void hci_smp_ltks_clear(struct hci_dev *hdev);
|
|
void hci_smp_ltks_clear(struct hci_dev *hdev);
|
|
int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr);
|
|
int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr);
|