]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Rename create_ad into create_adv_data
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 16 Oct 2013 07:16:46 +0000 (00:16 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Oct 2013 07:29:41 +0000 (10:29 +0300)
Rename the create_ad function into create_adv_data to make it clear
that it is used to create the advertising data. This is important
since later on a function adding the scan response data will be
added.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c

index 90d9353734496bd97727b48880c90f65170c40e3..54f14547259bd49a5bf12996f7f3cd02b3712e6f 100644 (file)
@@ -536,7 +536,7 @@ static u8 *create_uuid128_list(struct hci_dev *hdev, u8 *data, ptrdiff_t len)
        return ptr;
 }
 
-static u8 create_ad(struct hci_dev *hdev, u8 *ptr)
+static u8 create_adv_data(struct hci_dev *hdev, u8 *ptr)
 {
        u8 ad_len = 0, flags = 0;
        size_t name_len;
@@ -605,7 +605,7 @@ static void update_ad(struct hci_request *req)
 
        memset(&cp, 0, sizeof(cp));
 
-       len = create_ad(hdev, cp.data);
+       len = create_adv_data(hdev, cp.data);
 
        if (hdev->adv_data_len == len &&
            memcmp(cp.data, hdev->adv_data, len) == 0)