]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Rename mgmt_to_le to bdaddr_to_le
authorAndre Guedes <andre.guedes@openbossa.org>
Wed, 25 Apr 2012 00:02:51 +0000 (21:02 -0300)
committerGustavo Padovan <gustavo@padovan.org>
Sun, 29 Apr 2012 20:27:41 +0000 (17:27 -0300)
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: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c

index 40c75148f41743cab69d2706a8e7e04ace0675a6..6d80cb3547b3b2d20590e165e22c5d18a44ae36d 100644 (file)
@@ -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;
 
@@ -2664,7 +2664,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);
        }