Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306906
b: refs/heads/master
c: 378b5b7
h: refs/heads/master
v: v3
  • Loading branch information
Andre Guedes authored and Gustavo Padovan committed May 9, 2012
1 parent 0cf33c5 commit a2858d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 43ef0b8b8d95c7aab7bb3778351e3591502bf355
refs/heads/master: 378b5b7e8426f65a0ecb81b83a050c6a0c119e1f
6 changes: 3 additions & 3 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1644,9 +1644,9 @@ static u8 link_to_bdaddr(u8 link_type, u8 addr_type)
}
}

static u8 mgmt_to_le(u8 mgmt_type)
static u8 bdaddr_to_le(u8 bdaddr_type)
{
switch (mgmt_type) {
switch (bdaddr_type) {
case BDADDR_LE_PUBLIC:
return ADDR_LE_DEV_PUBLIC;

Expand Down Expand Up @@ -2665,7 +2665,7 @@ static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev,
type = HCI_SMP_LTK_SLAVE;

hci_add_ltk(hdev, &key->addr.bdaddr,
mgmt_to_le(key->addr.type),
bdaddr_to_le(key->addr.type),
type, 0, key->authenticated, key->val,
key->enc_size, key->ediv, key->rand);
}
Expand Down

0 comments on commit a2858d2

Please sign in to comment.