diff options
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 632d43d0980b..605a35b284fe 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -1644,9 +1644,9 @@ static u8 link_to_bdaddr(u8 link_type, u8 addr_type) | |||
1644 | } | 1644 | } |
1645 | } | 1645 | } |
1646 | 1646 | ||
1647 | static u8 mgmt_to_le(u8 mgmt_type) | 1647 | static u8 bdaddr_to_le(u8 bdaddr_type) |
1648 | { | 1648 | { |
1649 | switch (mgmt_type) { | 1649 | switch (bdaddr_type) { |
1650 | case BDADDR_LE_PUBLIC: | 1650 | case BDADDR_LE_PUBLIC: |
1651 | return ADDR_LE_DEV_PUBLIC; | 1651 | return ADDR_LE_DEV_PUBLIC; |
1652 | 1652 | ||
@@ -2665,7 +2665,7 @@ static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev, | |||
2665 | type = HCI_SMP_LTK_SLAVE; | 2665 | type = HCI_SMP_LTK_SLAVE; |
2666 | 2666 | ||
2667 | hci_add_ltk(hdev, &key->addr.bdaddr, | 2667 | hci_add_ltk(hdev, &key->addr.bdaddr, |
2668 | mgmt_to_le(key->addr.type), | 2668 | bdaddr_to_le(key->addr.type), |
2669 | type, 0, key->authenticated, key->val, | 2669 | type, 0, key->authenticated, key->val, |
2670 | key->enc_size, key->ediv, key->rand); | 2670 | key->enc_size, key->ediv, key->rand); |
2671 | } | 2671 | } |