Commit 378b5b7e authored by Andre Guedes's avatar Andre Guedes Committed by Gustavo Padovan

Bluetooth: Rename mgmt_to_le to bdaddr_to_le

Since address type macros are not only related to Management
Interface anymore, it makes sense to rename the helper function
mgmt_to_le to bdaddr_to_le.
Signed-off-by: default avatarAndre Guedes <andre.guedes@openbossa.org>
Acked-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 43ef0b8b
...@@ -1644,9 +1644,9 @@ static u8 link_to_bdaddr(u8 link_type, u8 addr_type) ...@@ -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: case BDADDR_LE_PUBLIC:
return ADDR_LE_DEV_PUBLIC; return ADDR_LE_DEV_PUBLIC;
...@@ -2665,7 +2665,7 @@ static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev, ...@@ -2665,7 +2665,7 @@ static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev,
type = HCI_SMP_LTK_SLAVE; type = HCI_SMP_LTK_SLAVE;
hci_add_ltk(hdev, &key->addr.bdaddr, 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, type, 0, key->authenticated, key->val,
key->enc_size, key->ediv, key->rand); key->enc_size, key->ediv, key->rand);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment